PDA

View Full Version : Sphere



sirlestat
03-09-2001, 10:21 AM
I would like to know how build 3D solids ( spheres, cones, etc ) using only triangles and and/or rectangles. Anyone can give me some good link or info?
I know I can use some gl functions to make them but I wanna learn how to make them myself.

penry
03-11-2001, 03:04 AM
gluQuadratic is probably the easiest way to draw a sphere, but if you want to do it yourself, Ammeraal has some source code to generate data sets for spheres, toruses etc, here

ftp://ftp.expa.fnt.hvu.nl/pub/ammeraal/English/older/

Its from his great little book Programming Principles in Computer Graphics, 2nd ed. I think the code from the newer Java edition is also there somewhere.

sirlestat
03-11-2001, 06:42 AM
Thanks ! http://www.opengl.org/discussion_boards/ubb/smile.gif

Fastian
03-11-2001, 07:37 AM
You may wanna check glut source code. It has a lot ofexamples on how to create sphere, toros etc. from triangles or quads.

outRider
03-11-2001, 07:39 AM
you may wanna check glut source code, it has a lot of examples on drawing spheres and toruses etc. from triangles and quads.