Archived

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

Creating a torus?

This topic is 5817 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

Does anyone know a simple way to do a torus? I know how to make one with sin and cos values, but it seems like if they have quadrics in opengl to do a sphere, it should be able to do a torus. Or am I better off doing it myself?

Share this post


Link to post
Share on other sites
Do it yourself.
I don't know, maybe there is a built-in function to create toruses, but is it that hard to create? If you already got the sin/cos algorithm to create such one, why don't you ue it? Create the torus and store the vertexes in a good way, then just render from that array of vertexes.

Edited by - Electron on January 12, 2002 2:01:08 PM

Share this post


Link to post
Share on other sites
I know glut can do them, but it doesn''t make texture coordinates. I want to make a warp-tunnel type of effect simply with a torus, and make it look like you are moving down the tunnel by rotating the texture matrix. I suppose making it myself is better, but I still have to work on the drawing code. It doesn''t show at all!

Share this post


Link to post
Share on other sites