Rotate Object around "World" Axes
Hey all,
In most of the glut and NeHe examples that support
mouse rotation of objects, the rotations
are not strictly around the "world" X and Y axes.
For example, in many cube samples, and in the glut
"dinospin," moving the mouse "up" or "left" works
as you might expect, until the object has been
rotated ~180 degrees. After then, say after flipping
an object upside-down, move the mouse to the left
rotates the object to the right, presumably about
it''s own Y axis, rather than the "screen" or "world
view" Y axis.
Is there a simple recipe for "world view" axis
rotations? I''ve seen this effect in molecular
modeling packages, but my simple-minded attempts
don''t seem to be getting me there.
Thanks!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement