3D Fundamentals Tutorial 20

From Chilipedia
Jump to: navigation, search

Projection matrix! Because why solve a problem with a simple solution when you can use a complicated one! All joking aside, matrix encoding of projective (perspective) transform is widely used so you gotta get familiar with this shit.

Topics

  • Review of perspective projection (divide)
  • Viewing frustum
  • NDC (Normalized Device Coordinate) space
  • Homogeneous coordinate normalization
  • Derivation of projection matrix
  • Backface culling projection adjustment
  • Aspect ratio control
  • FOV (Field of View) control

Video

The tutorial video is on YouTube here.

Downloads

The GitHub repository for the tutorial code is here.

Bonus Tool

Pindrought (Jpres) from the forum whipped up a visualization tool that helps with projection and various other transforms as a companion to his own 3D series.

See also