Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 24th, 2012  |  syntax: None  |  size: 0.76 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. [17:44] <Pyritie> anyone here used opengl?
  2. [17:44] <Pyritie> I have a question about it
  3. [17:47] <Pyritie> for this assignment at uni I have to make some scene where you drive around some rover on the moon
  4. [17:47] <Pyritie> anyway I need two lights that are "attached" to the front of the rover
  5. [17:47] <Pyritie> but you don't use glTranslate and stuff for positioning lights, only geometry
  6. [17:48] <Pyritie> So either I have to do some crazy math to get the absolute position of where I want to go
  7. [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
  8. [17:49] <Pyritie> but I don't know how to turn that matrix into a vector that I can work with
  9. [17:50] <Pyritie> anyone know anything about how to do that?