Jump to content
  • Advertisement

Archived

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

hooded_paladin

Creating a torus?

This topic is 6094 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
Advertisement
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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!