Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: rotation

  1. #1
    Guest

    rotation

    Hi,

    I've a 3D object which is transformed correctly (I believe) to be rotated
    by keeping the co-ordinate axis fixed. Please let me know how to do this.
    Any information related to this is appreciated.

    Thanks.

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    2,982

    Re: rotation

    Hello

    Not sure if I get you right here, but you want to translate an object, then rotate it about it's own local coordinate system?

    If so, you have to FIRST rotate, THEN translate. Like this.

    glRotatef(insert_rotation_here);
    glTranslatef(insert_translation_here);

    Bob

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •