Results 1 to 2 of 2

Thread: quadric sphere movement

  1. #1
    Junior Member Newbie
    Join Date
    Jan 2011
    Posts
    17

    quadric sphere movement

    hey all,

    I have designed a solar system using quadric spheres (with alot of help from Mobeen I may add) and at the moment they are stationary....so how do i orbit them around the sun?

    I know to use the rotate function, but i need 2 - 3 planets to move clockwise and the others counter clockwise.

    I have using glTranslatef to move and position each planet so far but am willing for better ideas

    thanks

  2. #2
    Senior Member Frequent Contributor
    Join Date
    Mar 2009
    Location
    Karachi, Pakistan
    Posts
    810

    Re: quadric sphere movement

    You can use the glPushMatrix and glPopMatrix func. to create a hierarchy and add transform. matrices (glTranslate/glRotate/glScale) as necessary in between the push/pop matrices as given here http://salahuddin66.blogspot.com/200...in-opengl.html
    Some more useful links
    http://www.ugcs.caltech.edu/~hammer/cs11/index.html
    (look for week 2/3/4)

    Hope this helps,
    Mobeen
    Regards,
    Mobeen

Similar Threads

  1. Transform a quadric in another one
    By Greencoco in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 03-05-2017, 05:12 PM
  2. Vertices from quadric
    By lbrtuk in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 03-07-2003, 04:53 AM
  3. Texture Inside of Quadric Sphere???
    By delic in forum OpenGL: Basic Coding
    Replies: 9
    Last Post: 10-23-2002, 05:25 AM
  4. Trying to texture a quadric sphere..
    By delic in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 10-06-2002, 10:00 AM
  5. getting quadric verts
    By eckiller in forum OpenGL: Advanced Coding
    Replies: 8
    Last Post: 05-22-2000, 12:50 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