# Computer Graphics

Basics of Computer Graphics

## MVP Matrices

To convert from model coordinates ${\displaystyle v}$ to screen coordinates ${\displaystyle w}$, you do multiply by the MVP matrices ${\displaystyle w=P*V*M*v}$

• The model matrix ${\displaystyle M}$ applies the transform of your object. This includes the position and rotation. ${\displaystyle M*v}$ is in world coordinates.
• The view matrix ${\displaystyle V}$ applies the transform of your camera.
• The projection matrix ${\displaystyle P}$ applies the projection of your camera, typically an orthographic or a perspective camera. The perspective camera shrinks objects in the distance.