PDA

View Full Version : GLUT-coordinates



Tux
02-28-2002, 06:33 AM
How read out the coordinates for example from a gluSphere (the midpoint)?

nexusone
02-28-2002, 10:08 AM
When you use glusphere midpoint or origin is the center of the sphere.
If you have translated the sphere say to 1,1,1, that is where the center of the sphere will be located. I hope this is what you wanted to know?


Originally posted by Tux:
How read out the coordinates for example from a gluSphere (the midpoint)?

Tux
03-01-2002, 05:01 AM
Yeah, that's clear.
But if there are many transformations it take great pains to update the coordinates of mipdoint.

or not?!

nexusone
03-01-2002, 06:06 AM
For the purpose of using rotation it is best that you use the midpoint of the object.

If the objects origin was say at a corner, then the object when rotated would revalve around that corner.

No not really pain, really makes it easy....
Once you start making multiple objects or complex objects built from simple objects.
You will see that is it the best way.


Originally posted by Tux:
Yeah, that's clear.
But if there are many transformations it take great pains to update the coordinates of mipdoint.

or not?!

Tux
03-03-2002, 07:24 AM
Think it's really the best way.

Thanks!