Jump to content
  • Advertisement

Archived

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

Buster

Triangle Strip Grid??

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

Ok, this is going to sound really stupid, but I''m having a problem with it anyway! How can I get a triangle strip (Direct 3D) to layout in a gridlike pattern for a landscape? I can do one row just fine...
B   D   F   H
|\  |\  |\  |
| \ | \ | \ |  [ etc. ---> ]
|  \|  \|  \|
A   C   E   G
 
The problem comes when I try to start forming the second row. I can''t seem to make the "turn" to the next row. Can anyone help my retardation?

Share this post


Link to post
Share on other sites
Advertisement
G''day!

B D F
|\ |\ |
| \| \|
AK CI EG
|\ |\ |
| \| \|
L J H

Does that make sense? I think that should work. I haven''t tried it of course. The badly done graphic is s''posed to show that A==K, C==I, E==G. Triangle FGH has an area of 0, so it will not be rendered, it''s a ''degenerate'' triangle and is used to link strips. I know the theory is right, I may have the winding order of the vertices wrong though.


Stay Casual,

Ken
Drunken Hyena

Share this post


Link to post
Share on other sites
I''ll give it a try. Of course, I should do indexing so I don''t have to redefine the vertices, but one thing at a time!

-M

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.

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!