• Advertisement

Archived

This topic is now archived and is closed to further replies.

gluSphere

This topic is 5517 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

a simple question about gluSphere:am i right that the sphere is always drawn around (0,0,0) unless i use translatef ? but how can i the position them in a scene rotating with gltranslatef (if i want more than one..) ? i´m sure its easy but i can´t see it !

Share this post


Link to post
Share on other sites
Advertisement
nobody ? no sphere without translatef ?
no way to draw more than one sphere and still have an axis to draw around ?
or may i draw another sphere in an other way ?

Share this post


Link to post
Share on other sites

  
glPushMatrix();
// translate it

// draw it

glPopMatrix();


or


  
// translate it by [x, y, z]

// draw it

// translate it by [-x, -y, -z]

Share this post


Link to post
Share on other sites

  • Advertisement