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

This is the second demo in the OpenGL camera demo series and it builds on the previous demo. In this demo we modify the implementation of the Camera class so that it is quaternion based rather than vector based.

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