OpenGL - Understanding the relationship between Model, View and World Matrix
I am having a bit of trouble understanding how these matrixes work and how to set them up in relation to one another to get a proper system running.
In my understanding the Model Matrix is the matrix of a object, for example a cube or a sphere, there will be many of these in the application/game.
The World Matrix is the matrix which defines the origin of the 3D world. the starting point.
And the View Matrix is the "camera" everything gets translated with this to make sure you have the illusion of an actual camera when in fact everything is moving instead of this matrix?
I am a bit lost here. So I was hoping someone here could help me understand this properly.
Does every modelMatrix get translated/multiplied with the world matrix and the worldMatrix then with the viewMatrix? Or does every modelMatrix get translated/multiplied with the viewMatrix and then that with the worldMatrix?
How do all these matrixes relate and how do you set up a world with multiple objects and a "camera"?
I am having a bit of trouble understanding how these matrixes work and how to set them up in relation to one another to get a proper system running.
In my understanding the Model Matrix is the matrix of a object, for example a cube or a sphere, there will be many of these in the application/game.
The World Matrix is the matrix which defines the origin of the 3D world. the starting point.
And the View Matrix is the "camera" everything gets translated with this to make sure you have the illusion of an actual camera when in fact everything is moving instead of this matrix?
I am a bit lost here. So I was hoping someone here could help me understand this properly.
Does every modelMatrix get translated/multiplied with the world matrix and the worldMatrix then with the viewMatrix? Or does every modelMatrix get translated/multiplied with the viewMatrix and then that with the worldMatrix?
How do all these matrixes relate and how do you set up a world with multiple objects and a "camera"?
No comments:
Post a Comment