Archived

This topic is now archived and is closed to further replies.

simple objects in OpenGL...

This topic is 6280 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

glut is the only "interface" you can use that will produce primitives without using the gl utilities. you should use the primitives for testing, and eventually learn the gluquadrics.

a2k

Share this post


Link to post
Share on other sites
Does anyone have any code examples of importing a file format? I know NeHe had links off his site to import asc files and md2 files on the cd-rom, but does anyone have any working code examples so that I can see how this is done?

jay

Share this post


Link to post
Share on other sites
hmm... I can do loading from the file thing, what I need to figure out is drawing with ''parametrics'', like a cylinder would be defined as:
x = rcos(angle)
y = rsin(angle) from 0 to 2pi
z = height from 0 to 1
I know about quadrics, but I basically have to hard-code, gluSphere, gluCylinder, etc.

Share this post


Link to post
Share on other sites