Jump to content
  • Advertisement

Archived

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

Atthestart

A more efficient way?

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

Hi again! I''m going through: http://www.andypike.com/Tutorials/DirectX8/003.asp Andy uses 3 triangle strips, one fo the top, one for the sides and one for the bottom. I get that okay, although just wondering there are 3 calls to DrawPrimitive(). I''m guessing the lower the number of calls the better, so how else could this be done more efficiently? Thanks! ATS

Share this post


Link to post
Share on other sites
Advertisement
"That would be a triangle list. If you want to stay with strips, you could look into degenerate triangles."

...I take it that triangle lists are more efficient then than triangle strips?

[edited by - Atthestart on February 21, 2004 1:38:06 PM]

Share this post


Link to post
Share on other sites
If you are not talking about indexed primitives, strips are better than lists because they decrease vertex count and possibly other factors. If you are talking about indexed lists, the vertex count argument changes.

For a cube, discussions about which is better are fairly moot. For a real mesh, indexed lists are generally preferable because they offer the greatest flexibility for the least hassle. There are tools that can generate strips for complex geometry, but the advantage is open for debate, especially at this stage in your understanding.

Author, "Real Time Rendering Tricks and Techniques in DirectX", "Focus on Curves and Surfaces", A third book on advanced lighting and materials

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!