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
精彩评论