OpenGL geometry code
Blitz3D Forums/Blitz3D Programming/OpenGL geometry code
| ||
These routines produce the same results as tests run against Blitz3D. Includes movement, transformations, and rotations: To set up a model matrix in OpenGL: glPushMatrix() glTranslatef x,y,z glRotatef -yaw,0,1,0 glRotatef pitch,1,0,0 glRotatef roll,0,0,1 glScalef x,y,z ;render object ;render children glPopMatrix() To set up a camera matrix in OpenGL (changes handedness of coordinate system to match DirectX): glRotatef pitch,1,0,0 glRotatef -yaw,0,1,0 glTranslatef -x,-y,z glScalef 1,1,-1 |
| ||
I was going to go with DX orientation when initialy starting on a max GL engine, but ended up tripping all over myself. I'm not sure why you posted the GL stuff here :) Why not post in the OpenGL forum for more discussion & feedback? Cheers Tom |