c++ OpenGL rotations and calculations

前端 未结 2 1813
醉话见心
醉话见心 2020-12-04 03:13

In an OpenGL project, I have a function that rotates the model:

glRotatef(M_PI/4, 0, 0, 1); //rotate by PI/4 radians i.e 45 degrees

Now when I

2条回答
  •  自闭症患者
    2020-12-04 03:40

    Your question is a little confusing, as I don't understand what you mean by this stopping criteria. But if you want to get the transformed values for points, then you can simply pass them through the appropriate transform matrices to get them into the space you want. If you want the values in eye space, then pass your vertex coordinates through the modelview matrix, for example. See here for details of how that works.

提交回复
热议问题