Jump to content
  • Advertisement
Sign in to follow this  
jor1980

OpenGL Opengl function to convert trianglelist to trianglestrip

This topic is 3122 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, i would like to know if exists an opengl function to convert trianglelists into triangletrips Thank´s

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by jor1980
HI, i would like to know if exists an opengl function to convert trianglelists into triangletrips
Unless you are targeting very ancient hardware, triangle strips are unlikely to represent a performance gain.

The sweet spot for all modern hardware is 'indexed triangle lists' (plenty of info on google, etc.). The primary benefit is that indexed lists can allow the hardware vertex cache to function very efficiently.

The NvTriStrip library mentioned by mrbastard also works well to optimise indexed triangle lists [smile]

Share this post


Link to post
Share on other sites
GL_TRIANGLE_LIST is bullshit.
What you need is index reordering algorithm for GL_TRIANGLES.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!