PDA

View Full Version : Few questions on view matrices, camera, and best for games



Shawn B
08-12-2005, 05:45 PM
Let's start with the basic question:
Which view Matrix is the best for games (FPS mainly)? Why?
--If you could provide me with a link about OpenGL View matrices that would be great.

Which view mode is best for camera functions? Why?
How do you do things with the camera (for FPS)?
--Again a reference would be great

Finally, I'm developing a game engine and I'm going to embed all of these concepts into it. I just need to know which view matrix to use, and how to move the camera about areas. http://www.geocities.com/slooksterpsv/ under projects is my starting project.

Hlz
08-12-2005, 06:06 PM
http://fly.cc.fer.hr/~unreal/theredbook/chapter03.html

For a FPS you'll want a perspective projection. See gluPerspective or glFrustum (roll your own).