
Untitled
By: a guest on
Jul 24th, 2012 | syntax:
None | size: 0.76 KB | hits: 10 | expires: Never
[17:44] <Pyritie> anyone here used opengl?
[17:44] <Pyritie> I have a question about it
[17:47] <Pyritie> for this assignment at uni I have to make some scene where you drive around some rover on the moon
[17:47] <Pyritie> anyway I need two lights that are "attached" to the front of the rover
[17:47] <Pyritie> but you don't use glTranslate and stuff for positioning lights, only geometry
[17:48] <Pyritie> So either I have to do some crazy math to get the absolute position of where I want to go
[17:48] <Pyritie> or I can get the transform matrix at the top of opengl's stack when I'm about to render the headlights
[17:49] <Pyritie> but I don't know how to turn that matrix into a vector that I can work with
[17:50] <Pyritie> anyone know anything about how to do that?