Skip to main content
GameDev.net gamedev.net
🔒 Locked

Triangle Strips

Started by Goblin Jan 11, 2001 at 9:33 PM 1 replies 450+ views
Original Post
Goblin
Goblin
To my inexperienced, just-jumping-into-3D-ness... Triangle Strips appeared to be drawing triangles from the last 2 plus the one you next define so it would be: 1 3 | 5 7 | | | 2 4 | 6 8 | etc. (for sides of a cube) Something tells me I''m incredibly wrong, because then I wouldn''t be able to create an entire cube, just the sides around it, not the top/bottom. Help? ----------------- The Goblin ----------------- "Oh, God..." "Yes?" <- My Response
The Goblin (madgob@aol.com)
Seedload
Seedload
You are wrong, but you still can''t do a cube with a triangle strip without hiding some vertexes.

Assume 6 vertexes a,b,c,d,e,f

Then the triangles rendered, in order, are:

(a,b,c)
(b,d,c)
(c,d,e)
(d,f,e)

a---c---e
| /| /|
| / | / |
|/ |/ |
b---d---f

Each triangle is rendered using one additional vertex (not two) with the two previous.

Later,
Seedload
Seedload
Seedload
Damn font ruined my pretty picture... you get the idea anyway.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.