PDA

View Full Version : Doing your own translation



howie
01-12-2004, 07:32 AM
I would like to only give OpenGL translated vertices and not have it transform them from it's internal matrix. Is there a way to say that to OpenGL? A setting perhaps?

thanks

Relic
01-12-2004, 07:44 AM
Set the OpenGL matrices to identity and they won't change the incoming data.

howie
01-12-2004, 11:49 AM
Um..., what's the function call for that.

[This message has been edited by howie (edited 01-12-2004).]

Jan
01-12-2004, 12:25 PM
glLoadIdentity ();

You know, that you loose Hardware T&L, when you do all that stuff on your own?
Updating world-geometry on the CPU is ok, because that usually doesn´t happen that often (and not for all objects). However, when you want to rotate the camera (so that the whole world rotates), you should stick to OpenGLs functions.

Jan.

howie
01-12-2004, 01:29 PM
I'm going to try to do everything in my code and use OpenGL as little as possible. Even lighting my own vertex normals. Just for the heck of it.

As for rotation, that doesn't really make any difference. Once my matrix is set, I tanslate all the vertices. This is just for fun.

howie