1
vote
3answers
2k views

Walkin on terrain - Opengl

i wanna walk to terrain... first i created the terrain void desenha_terreno(float px, float pz){ for (int z = 0; z < iwidth-1; z++) { glBegin(GL_TRIANGLE_STRIP); for (int x = 0; x < ...
1
vote
3answers
454 views

How to find the bottleneck of the graphical pipeline

I've been wondering about this issue for a while. How to find the bottleneck of the graphical pipeline. Recently I've been using a program to draw massive amount of polygons in a simple scene with ...
1
vote
3answers
1k views

Correct order of rotation and translation

Trying to get this right in openGL: 1) glRotate( cameraRotation ) 2) glTranslate( -cameraPosition ) 3) glRotate( objectRotation ) 4) glTranslate( objectPosition ) 5) Draw Object is that right?