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,978

    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

Similar Threads

  1. Rotation of an object by rotation matrix
    By MrFoil in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 03-02-2015, 04:41 PM
  2. Matrix Rotation loses 1 axes of rotation
    By Benzino in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 02-15-2011, 06:53 AM
  3. Replies: 1
    Last Post: 04-16-2010, 02:59 PM
  4. 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
  5. world rotation v. body rotation
    By cosmicGirl in forum OpenGL: Basic Coding
    Replies: 31
    Last Post: 03-11-2003, 12:10 PM

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