I'm looking for a simple yet complete camera implementation (library) for OpenGL. My use case is rendering volumetric models - which I'm visualizing with glut. But my current camera implementation is a bit buggy.
After googling I found a few implementations such as those found in NeHe however they don't have all the functionality I'm after, specifically:
Any DirectX solutions that can be easily converted into OpenGL will also be appreciated.
Have you tried http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=Quaternion_Camera_Class?
Since I'm not sure about the question, I'm going to tentatively answer with a tutorial of mine :
http://www.opengl-tutorial.org/beginners-tutorials/tutorial-6-keyboard-and-mouse/
(source code here)
Hope that helps. If it does not completely fulfills your needs, don't hesitate to explain exactly what is wrong, and I'll edit my post.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With