PDA

View Full Version : Creating spheres?



05-23-2000, 07:15 PM
How do you create spheres in opengl?
I tried making a program to generate the vertices of a sphere, but couldn't get the algorithm right, can someone help me find a way to make spheres?, thanks

05-23-2000, 07:23 PM
Look no further...

Try this :

void glutSolidSphere ( GLdouble radius, GLint slices, GLint stacks );

or

void glutWireSphere ( GLdouble radius, GLint slices, GLint stacks );

It's all done for you... http://www.opengl.org/discussion_boards/ubb/smile.gif

05-25-2000, 12:00 PM
cool thanks