Results 1 to 3 of 3

Thread: Rendering an object in more than one place

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2001
    Location
    Whangarei , New Zealand
    Posts
    29

    Rendering an object in more than one place

    How do I Render an object in more than one place and rotated to different angles,

  2. #2
    Member Contributor
    Join Date
    Oct 2000
    Location
    Helsinki, Finland
    Posts
    59

    Re: Rendering an object in more than one place

    Lets assume that we start from origin (0, 0, 0)...

    glPushMatrix();
    glTranslate(somewhere);
    glRotate(angle1);
    drawObject();
    glPopMatrix(); // back to origin

    glPushMatrix();
    glTranslate(somewhere else);
    glRotate(angle2);
    drawObject();
    glPopMatrix(); // again, back to origin

    ...and so forth.

    - Niko

  3. #3
    Junior Member Newbie
    Join Date
    Aug 2001
    Location
    Whangarei , New Zealand
    Posts
    29

    Re: Rendering an object in more than one place

    Originally posted by niko:
    Lets assume that we start from origin (0, 0, 0)...
    ...and so forth.

    - Niko
    Thankyou

Similar Threads

  1. no rendering of object on screen????
    By abhi1988 in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 07-01-2011, 11:56 PM
  2. Framebuffer object not rendering?
    By Adrian Hooper in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 03-25-2009, 09:20 AM
  3. place a 3d object of size 50 pixels at (x,y)
    By meahmeah in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 02-26-2004, 05:05 AM
  4. drag and place 3d object
    By adityask in forum OpenGL: Advanced Coding
    Replies: 5
    Last Post: 03-16-2002, 09:33 AM
  5. drag and place 3d object
    By adityask in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 03-15-2002, 05:35 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