Computer Graphics

From David's Wiki
Jump to navigation Jump to search

Basics of Computer Graphics

MVP Matrices

To convert from model coordinates to screen coordinates , you do multiply by the MVP matrices

  • The model matrix applies the transform of your object. This includes the position and rotation. is in world coordinates.
  • The view matrix applies the transform of your camera.
  • The projection matrix applies the projection of your camera, typically an orthographic or a perspective camera. The perspective camera shrinks objects in the distance.


Flat Shading

Gourard Shading

Phong Shading