Jump to content
  • Advertisement
Sign in to follow this  
IgnisDeus

Confusion with Nvidia Tristrip library

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

I'm a little confused on how to work nvidia's tristrip library. I'm not sure what function I should be using, and what to plug in. Right now I have a dynamically allocated array with regular triangle vertice data. Could anybody provide an example? Thank you. http://developer.nvidia.com/object/nvtristrip_library.html

Share this post


Link to post
Share on other sites
Advertisement
If you check out the /include/NVTriStrip.h file it is well documented. You want to check out the GenerateStrips function, but you can also change settings with the Set* functions.
Using SetStitchStrips(true) might be interresting since it will stich together the result into one big triangle strip (using some extra triangles), otherwise you can end up getting multiple strips as result.

I haven't used it myself, so unfortunatly I don't have any usage examples... but from the documentation it seems pretty straightforward:

You send in the indices you would use to render normally in as an array and get back an array of PrimitiveGroups (declared at the top of the file). Each PrimitiveGroup has: The type of primitive it is (strip/fan/list) and a list of indices to use to render it.

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!