March 2017
Intermediate to advanced
480 pages
11h 3m
English
In the last section, we created a Frustum primitive. We know that a frustum is made up of six planes: near, far, top, bottom, left, and right. In this section, we will explore how to extract those six planes from a view-projection matrix.
We are going to add a new method to the Camera class. This new method will create a frustum from the camera. In order for the Camera class to know what a Frustum is, we need to include Geometry3D.h in Camera.h.
Follow these steps to build a frustum out of the camera's view and projection matrices:
GetFrustum function to the Camera class in Camera.h:class Camera { // Existing class implementation not listed // The GetFrusutm function is new Frustum GetFrustum(); ...Read now
Unlock full access