Question

I'm having a play about with GLScene (an OpenGL based library) in a Delphi 7 project and having trouble trying to alter the "global" (not sure what the correct terminology is for this!) axes of a model.

Essentially, a model loads in sideways, so what I would expect the Y axis to be, it's actually the Z axis. I've attached a screenshot with the floor's axes showing along with the model's. Is there a way I can rotate the mesh when it's loaded in perhaps so it aligns with that the eye would expect? Or is there a particular TGLFreeForm function I can use?

enter image description here

No correct solution

OTHER TIPS

so what I would expect the Y axis to be, it's actually the Z axis

What are your assumptions about the default OpenGL coordinate system? Using the typical matrices:

  • +X goes to the right
  • +Y goes up
  • +Z goes out of the screen toward the viewer
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top