OpenGL rotating a camera around a point

后端 未结 4 2122
别那么骄傲
别那么骄傲 2020-12-13 06:52

In OpenGL I\'m trying to rotate a camera around a point, with camera being distance r from the point and facing the point when it rotates. In other words, I want the camera

4条回答
  •  北海茫月
    2020-12-13 07:24

    Why bother with all the trouble of rotating the camera and not rotate the scene itself?
    It's much more straight forward. just rotate the modelview matrix around the origin. You'll get the exact same result.

提交回复
热议问题