Advertisement

Rotate Object around "World" Axes

Started by January 05, 2001 02:04 AM
-1 comments, last by dbg 24 years, 1 month ago
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