dhpoware logo
navbar
home products source demos contact us
navbar navbar
box top left corner box top right corner
 
 
OpenGL Camera Demo - Part 1 (Vectors).

This is the first demo in the OpenGL camera demo series. In this demo we implement the classic vector based camera. The camera supports 2 modes of operation: first person camera mode, and flight simulator camera mode. We don't implement the third person camera in this demo because its implementation is quite different compared to the first person and flight simulator camera models. A future demo will explore the implementation of the third person camera.

Note:
1. This demo requires OpenGL 1.3 or higher support.
2. This demo requires the Visual C++ 2010 Library Runtimes. Download instructions can be found here.

screenshot

zip file Download executable, source, and Visual C++ 2010 solution files.

Change History:

10 July 2010.
Added missing .vcxproj.filters file to the project.

13 June 2010.
Updated solution to Microsoft Visual Studio 2010.

2 February 2008.
Updated solution to Microsoft Visual Studio 2008.

17 January 2008.
camera.cpp: Fixed bug in updatePosition() where the displacement was being accidentally clamped to zero when the camera was no longer moving in a particular direction. This resulted in the camera abruptly stopping when it was no longer moving rather than slowly decelerating back to a stationary position.

15 January 2008.
This is a major rewrite of the demo. The format and structure of the demo now more closely matches the more recently released OpenGL demos. The Camera class has been updated with expanded functionality. Proper text rendering support has been added. Multisample anti-aliasing has been added. A spotlight (light map) texture has been added to the floor. The Mouse class has been completely rewritten to use normal Window messages rather than the Windows XP raw input model. The demo now allows you to adjust the mouse sensitivity as well as the camera rotation speed. The demo now supports Vista.

 
box bottom left corner content box box bottom right corner
logo logo