Results 1 to 2 of 2

Thread: Axis of rotation

  1. #1
    Junior Member Newbie
    Join Date
    Nov 2000

    Axis of rotation

    I have to rotate a cube and it is rotating all right. But I wish to find it's axis of rotation . What to do?

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Dec 2007

    Re: Axis of rotation

    Didn't completely understand what you mean, but if you're rotating it, you give it the angles around the axises. You can make it yourself. Simply use an identity matrix and rotate the matrix (which, I found out for rotations, are only the axises) like glRotate would do. At the end, it should contain your 3 local axises of the object.
    In fact, I'm doing it like that, I set up the matrix, and then I load it up to opengl. If it's only one time for an object, it shouldn't hurt performance too much.

Similar Threads

  1. Rotation About An Axis
    By California in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 10-06-2016, 05:24 AM
  2. Rotation not on the 0,0,0 axis
    By tzano in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 02-03-2004, 12:55 PM
  3. changing axis of rotation and center of rotation in openGL performer
    By ravishashi in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 07-08-2003, 04:42 AM
  4. Rotation around two fixed rotation axis
    By Roland in forum OpenGL: Basic Coding
    Replies: 7
    Last Post: 03-06-2002, 12:07 PM
  5. axis,rotation
    By amigos in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 08-15-2000, 12:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean