开发者

Rotating the view in openGL?

开发者 https://www.devze.com 2023-04-12 05:48 出处:网络
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

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

精彩评论

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