Hi, I am working on water surface simulation and I am using glDrawELements() for laying my triangular mesh.
The problem is, maximum vertices the code works is 62500(i.e when I lay a 250x250 grid). If I increase the grid size above this for eg 260x260 or 300x300 the grid gets stripped for right side and only 62500 vertices are drawn. Also the grid appears not laid properly.
link for 250x250 grid simulation image:
link for 350x350 grid simulation image:
I am using GL_TRIANGLES for putting the triangles. I have used the query command
which gives the output 1048576, and the max i can use is 62500 so I can still increase lot of vertices.
I had googled about this problem but all I found was to use GL_MAX_ELEMENTS_VERTICES and act accordingly. following is part of my code:
glNormalPointer(GL_FLOAT, 0, normals); glTexCoordPointer(2,GL_FLOAT,0,tex); glVertexPointer(3,GL_FLOAT,0,vertices);
where ‘n’ is the height or width of square grid.
Thanks in advance.