[PyOpenGL-Users] size limit of vertex array?
Brought to you by:
mcfletch
From: Roland E. <r.e...@gm...> - 2010-07-13 14:36:19
|
Hello, I would like to know if there is supposed to be a limit in the number of elements in a list given to glVertexPointer()? I am using a vertex array to create a plane composed of small squares, after some experiment, it seems the vertex array cannot contains more than 64 squares whatever the size of the squares. I have not tried to optimize the number of vertices I need to draw the plane, so for each square there is 4 vertices in the array. Thus the total number of elements in the list considered by opengl is 64 * 4 * 3, even if there is more than 64 squares defined in the array. I know there is surely better way to draw such object, but this is not what I was interested in. I am currently playing with lighting and I wanted to study how to handle normal vectors, and how the color of the material is affected by the light and the normals. Regards, Roland. |