Jump to content
  • Advertisement
Sign in to follow this  
GROUDON

3d vertices

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

what does a triangle strip look like when manually typed into your code? i know there's an x, y, and z coordinates, but what values connect the triangles to other triangles? I use DirectX 9.0c (-I think-) and C plus plus (the preview wont show the +plus sign) also... When does DirectX 10 come out?

Share this post


Link to post
Share on other sites
Advertisement
In a triangle strip the first 3 vertices are the first triangle and every vertex after that uses the last two vertices.

For example if you had a triangle strip with 3 triangles made out of 5 vertices it would be:


Vertices
Triangle 1: 1, 2, 3
Triangle 2: 2, 3, 4
Triangle 3: 3, 4, 5


Basically the order the vertices are in determines how they connect.

Share this post


Link to post
Share on other sites
Sign in to follow this  

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