开发者

Simple OpenGL based Camera Class [closed]

Closed. This question is seeking recommendations for books, tools, software libraries, and more. It does not meet Stack Overflow guidelines guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 7 years ago.

Improve this question

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:

  1. Left, Right
  2. Strafe
  3. Rotation about viewing a开发者_如何学JAVAxis
  4. Arbitrary translation of viewing point

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜