Jump to content
  • Advertisement

Archived

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

adamy

How can I draw a cylinder between two nodes?

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

Now there are two nodes (x1,y1,z1), (x2,y2,z2). I would like to draw a cylinder. The base''s center is (x1,y1,z1), the top''s center is (x2,y2,z2). How can I do that? I glTransfer(x1,y1,z1) and then glRotatef an angle. and then gluCylinder. but I don''t know how to caculate the angle. Thank you.

Share this post


Link to post
Share on other sites
Advertisement

  • 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!