Jump to content
  • Advertisement
Sign in to follow this  
jor1980

OpenGL Opengl function to convert trianglelist to trianglestrip

This topic is 3206 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.

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!