Jump to content
• Advertisement

Archived

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

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

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

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

Share on other sites
Generally indexed triangle strips will not give you better performance than indexed triangle lists, and lists are much easier to do.

~CGameProgrammer( );

-- Post screenshots of your projects. There''s already 134 screenshot posts.

Cheers guys!

Share this post

Share on other sites

• Advertisement
• Advertisement

• Popular Contributors

1. 1
2. 2
Rutin
16
3. 3
4. 4
5. 5
• Advertisement

• 26
• 11
• 9
• 9
• 11
• Forum Statistics

• Total Topics
633709
• Total Posts
3013481
×

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!