PDA

View Full Version : Vertices from quadric



lbrtuk
03-06-2003, 01:31 PM
hello.

Is there a quick and easy way of whipping the vertices out of a gluSphere() for use by the rest of the program, or would I have to build my own sphere instead?

thankyou in advance etc etc....

JustHanging
03-07-2003, 02:10 AM
Hi,

You can draw the sphere if feedback mode and read the vertice from the feedback buffer. You should use ortho mode and an identity modelview matrix and make sure the entire sphere fits the viewing frustum... Arguably it's easier just to generate your own sphere.

-Ilkka

lbrtuk
03-07-2003, 04:53 AM
great. thanks a lot.