PDA

View Full Version : Cameras in FPSs: how do they work


Legion
09-Aug-2004, 04:33
wrt to the HL, Quake1-3 and Doom3 engines how does the FOV command work? When the FOV angle is determined how is the image on the screen derived from what you can see?


edit: Fixed the title

Nick
09-Aug-2004, 05:28
The FOV is a parameter in the camera's projection matrix. Both DirectX and OpenGL have functions to set up a projection matrix. I suggest a book like Real-Time Rendering (http://www.realtimerendering.com/) for the in-depth math.