i have a few questions about the nvidia primitive restart externsion. here is an excerpt from the specs:
*What should the default primitive restart index be?
RESOLVED: Zero. It’s tough to pick another number that is meaningful for all three element data types. In practice, apps are likely to set it to 0xFFFF or 0xFFFFFFFF.
i have had some issues with the nvidia triangle stripper utility. i was under the impression that it was be default using primitive restart in its output strip(s), passed in a single buffer.
this excerpt seems to either imply that there is no default restart index, or that the index is by default ‘zero’, or 0.
i wonder if i need to enable the restart, and if the stripper is embedding zeros then that might explain why my meshes sometimes come out with holes, though 95% of the time they are fine, and when they do have holes there are no other sort of anomalies like bogus triangles.
however i did try the latest library which actually produced worse meshes with some of the models that had produced meshes with holes in the 2001 library. it did have a bogus triangle, which might have been going back to vertex zero. however lately i’ve been using the newest version of the stripper extensively without any apparent issues.
so really i’m a bit confused about it all… i would look at the stripper source and try some expiriments, but my development machine has been running the last couple of days building a data base and i’d rather just get that over with first. takes about an hour to stop and pick back up anyhow.
so anyhow, if anyone uses the nvidia stripper along with primitive restart and would like to clarify some of this for me with a little bit of code, i would be very grateful.
and for anyone at nvidia, wouldn’t it be useful for a primitive restart that actually changes the primitive mode. being able to change between strips and fans on the fly would be useful… would be more useful if the hardware could change modes without missing a step… like going from the end of a strip to a fan where the last two strip vertices are the first two of the fan and then back from the fan to the triangle.
sincerely,
michael