I need to create software for displaying a huge number of geometrical objects.
It can be more than 2000000 primitives.
OpenGL begin to fail if the number of primitives is about 800000.
I wrote a simple program that generates a number of GL_QUADS.
Here is the part of the code:
list = glGenLists( 1 );
glNewList( list, GL_COMPILE );
qglColor( green );
glVertex3d(x+dx,- 0.2, 1.0);
glVertex3d(x, -0.2, 1.0);
If numOfFaces is up to 600000 it works.
It should not be any problem with precision, if OpenGL store the data with double precision. (glVertex3d function is used)
Unfortunately I need to be able to draw a huge number of geometrical primitives.
Are there any ideas why the problem occurs and how it can be solved?
Thank you in advance.
Windows XP (problem also exists at least on Windows 2000, 95 )
Intel Pentium 4 CPU 2,00 GHz
512 MB RAM
64 MB NVIDIA GeForce2MX