I’ve noticed some problems during the development of my little 3d engine and NV_VAR:
I’ve had an array of 69800 vertices with position,texcoords,normals…
Even if GL_MAX_VERTEX_ARRAY_RANGE_ELEMENT_NV returns 1048xxx (on my GeForce3),
I cannot call glDrawArrays(…) with FIRST argument>=65536 .
I tried to execute glDrawArrays(GL_POINTS,65536,1) all my vertices will be rendered (from 0 to 69799)
This doesn’t happen with glDrawElements () or glDrawArrays(GL_POINTS,65535,1)
I always use 32 bits unsigned indices…
Is there something i’ve done wrong?
Last little question:
if i use glDrawElements, i can reuse vertices with same indices.
My question is: Can I reuse these in 2 subsequent calls?
I’m italian so i try to explain my in another way… if i call twice the same function with the same datas, Does the gl implementation
has to transfer data twice?
does the second glDraw reuse vertex 2 and 3?