would draw 2 seperate polygons that dont share vertex’s.
such a feature would be greatly usefull for triangle fans and terrain geomipmapping, would speed things up greatly if i didnt have to call glEnd and glBegin everytime i want to draw a seperate fan or make it possiable to shove it all into the same index array and avoid more function calls.
yea NV_primitive_restart will do what i want. however is this an nvidia only extension? is their something similar to this on ati cards? was able to find information about the exenstion on nvidia’s site almost imediatly but was unable to find much anything usefull on ati’s site on the subject of extensions.
If you send your GL_TRIANGLE_STRIP as GL_TRIANGLES but keep the strip order, your performance should be almost the same as this results in the post-transform-cache being used.
This for example the way, the quake3 engine renders it’s models (I know it’s old, but I guess, still a lot of drivers get optimised for this kind of path).
your performance should be almost the same as this results in the post-transform-cache being used.
Indices take up bandwidth too. Granted, not that much, but they do take up memory as well. And that gets pretty significant.
I love this extension. The problem is that it’s pure nonsense to implement this without direct hardware support, so an in-driver “emulation” for the current generation (and hardware support on next gen) isn’t feasible.
But do have a look at EXT_multi_draw_arrays . This one accomplishes a similar goal, but has much wider support . Be aware though that it will not be hardware accelerated everywhere. It’s just far easier to emulate inside the driver, at reasonable performance levels. May be useful to you.