Blender & OpenGL

NOTE: Simultaneously posted in the Other Software forum.

Hello all.

I am working with OpenGL as well as Blender. I would like to create a script (if one doesn’t exist already) that converts a Blender model to OpenGL code. (Of course, since OpenGL is limited, it would only convert mesh & maybe some basic lighting. Nothing fancy like materials/textures)

Before I can do that, I need to understand OpenGL. I can’t really get a good description of the glMatrixMode function. I don’t know what the difference between the GL_MODELVIEW and GL_PROJECTION matrix modes are. Can someone please describe when I would use one or the other?

Thanks,

~j