Jump to content
  • Advertisement


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


TrianleStrips in a Cube...

This topic is 6017 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 is the best way to assign the vertices of a triangle strip to get a cube? I already made a strip that goes all around the cube with 16 vertices, but not all of the vertices are in the correct rotation, so my culling messes up! Thanks to anyne who helps!

Share this post

Link to post
Share on other sites
Guest Anonymous Poster
Not sure if it helps, but check out http://www.cs.umd.edu/projects/gvil/papers/av_ts.pdf .


Share this post

Link to post
Share on other sites

Tutorial #5 uses Triangle Lists though. It is possible to draw a cube using Triangle Strips, but the small performance gain is out-weighed by the hassle.

Assuming you want to texture this cube, you probably don''t want 1 continuous texture across the whole thing, and if you do then you have to make sure your texture coordinates are setup properly which is difficult to do in this situation.

Cubes are evil. Most often you want different textures for each cube face so you need to duplicate the vertices anyway. Just about any object you would ever draw would have a continous texture across all the vertices. Cubes turn out to be the pathological cases for many optimized drawing methods.

Unless you have a really good reason not to, skip the strips and use a list.

NOTE: I''m really sleepy, so I hope the above is clear and understandable.

Stay Casual,

Drunken Hyena

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!