I have an openGL (JOGL actually, but same concepts apply here) app where I have a scene that renders approximately 10k triangles on each rendering pass. The scale and angle of the triangles must be computed on each rendering since the triangles need to stay at a constant size and rotation relative to the camera location.
I've tried using a display list and then scaling/rotating before each call to glCallList
. That works, but it brings the system to a crawl. I've looking into using vertex buffers for this, but I'm not sure if this is the appropriate way to do it since I need to rotate/scale on each rendering.
Can someone help point me in the right direction for rendering this many triangles in each scene?
EDIT - This provides some additional context to the problem.
The application is a map application showing a 3d view of the world. There are certain shapes that need to be drawn on the surface pointing in a direction relative to a compass, i.e. at 30 degrees. The user can rotate the 3d view but the shapes must stay flat on the surface of the earth and also pointing the specified direction.
thanks, Jeff