I’ve been working on a demo/tutorial aimed at showing beginners how to implement a first person style and flight simulator style camera in OpenGL.
Two main C++ classes are provided: the Camera class, and the Mouse class. The Camera class contains all of the vector math, and the Mouse
class contains the logic to process raw mouse data (using the Windows XP raw input model APIs).
I’m hoping that beginners will find this demo useful. The included Camera is a solid foundation on which to build a full featured 3d camera that can be used in a game.
Note that since this demo is aimed at the beginner I decided not to include features such as camera collision detection, leaning, jumping,
The demo and source can be downloaded from here .