PDA

View Full Version : Help me in doing advanced topics



marysowdha
01-22-2002, 11:38 AM
Hi,

Can anybody please let me know how to draw a 3d figure, say a shpere(not the inbuilt one), in case if I want to draw my own sphere or some 3d object then how should i proceed.

Help me

Slotty
01-22-2002, 01:01 PM
Just think of your figure as lots of vertices an pass them to opengl with glVertex3f(, forming polygons

mikael_aronsson
01-22-2002, 01:21 PM
Hi !

Take a look at the source code for OpenGL and see how they do it, either download the SGI sample OpenGL implementation or download Mesa and have a look at the gluSphere sorce code.

Mikael

marysowdha
01-26-2002, 10:29 AM
Hi,
Thanks for your reply. Is ther any other way to rendera 3d object(i mean other than calculating all the vertices manually and so on).
Or this is the only way of rendering 3d objects,

help me guys
mary

Spartacus
01-26-2002, 12:12 PM
Well you could use some 3d modeller such as 3d studio or milkshape to create your 3d object, and then make proper file import code to extract vertices, texcoords, etc...