문제

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

올바른 솔루션이 없습니다

다른 팁

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
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top