Camera Frame and Object Frame

北城以北 提交于 2019-12-02 06:26:56

you got 2 matrices: View and Model where View represents where from are you looking and in which directions (camera) and Model represents where is and how oriented your object you are currently rendering is.

However To speed-up rendering we are using just one cumulative matrix so:

ModelView = Inverse(View) * Model

so for example when you write something like this in OpenGL:

glMatrixMode(GL_MODELVIEW);
glLoadIdentity();

Then both View and Model matrices are identical and equal to unit matrix. After this point you add your incremental rotations and translations either to View (inverse order and direction) or to Model (normal order and direction).

For more info see:

Especially the last 3 links in there...

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!