#### Archived

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.

## 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 on other sites
Not sure if it helps, but check out http://www.cs.umd.edu/projects/gvil/papers/av_ts.pdf .

lemming

##### Share on other sites
You can also check out Drunken Hyena. He has some DX8 tutorial and tutorial #5 is making a cube.

---
Make it work.
Make it fast.

##### Share on other sites
G''day!

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,

Ken
Drunken Hyena

1. 1
2. 2
Rutin
19
3. 3
4. 4
5. 5

• 14
• 13
• 9
• 12
• 9
• ### Forum Statistics

• Total Topics
631437
• Total Posts
3000063
×