OpenGL Rotations around World Origin when they should be around Local Origin

后端 未结 3 1921
时光说笑
时光说笑 2021-01-21 03:29

I\'m implementing a simple camera system in OpenGL. I set up gluPerspective under the projection matrix and then use gluLookAt on the ModelView matrix. After this I have my main

3条回答
  •  攒了一身酷
    2021-01-21 04:18

    I think you first have to translate your camera to point (0,0,0) then rotate, then translate it back.

提交回复
热议问题