I’m working on opengl project. I need to draw a big cube, that is built from many quads. I’m drawing them with simple vertex, but when the cibe is big, it runs very slow.
Is there any possibility to accelerate that ?
I have to tell also that i.m displaying only outside quads (nothing inside the cube).
PS. I dont know if its topic for beginers or advenced, so i safely post it here:)
Are you sure you are getting an accelerated context? Check the output log of the glGetString(GL_RENDERER) and glGetString(GL_VENDOR). Also, how are you creating the context? What OS and graphics card do you work with?
How do you send the vertex to the driver?
if you are using the immediate mode (a lot of glVertex) this is really slow cause the very large number of driver calls.
Use display list (quite old and support only static object) or the VBO.