开发者

Rotating the view in openGL?

I'm new to working with openGL and am attempting to create a mouse-look camera.

I'm not so much looking for code as much a开发者_JS百科s the method openGL uses for managing roll, pitch, and yaw of the view. I checked out gluLookAt but it looks to be more for observing an individual object, rather than manipulating the view.

Rotating around the Y axis works fine for yaw. But when I rotate around X and Z based on the yaw, things go haywire.


There are different methods for rotation, from my personal experience I would suggest arcball rotation, see this

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜