View Full Version : Resource for understanding view, projection, etc.

09-22-2010, 05:11 PM
I noticed most resources either assume you know a lot already or assume you know math of professional level or assume you're going to find other resources to fill gaps.

Is there a resource that takes someone without already a knowledge on view matrices in graphics and takes them to understanding fully how
to set up a 'virtual camera' move objects move the observer etc.Notice I'm not interested in automatic and cookie-cutter ways in OpenGL since

1. They are deprecated and removed in latest versions of the spec, one has to set them manually
2. This is not understanding.

09-22-2010, 05:50 PM
I would say first learn a bit about vectors and matrix multiplications, this page is quite visual :
Please ask if you need to learn more about this, as it is important.

Then how to create a projection matrix :
To me the biggest trick to understand was that even when working on 3D space, vectors are in fact 4D, same for matrices, they are 4x4 : the 4 components are often called x,y,z,w.
The "w" part of a position vector is 1 by default, but can be 0 to represent a "position at infinity" (ie. can be used to represent stars, or the horizon line).

Then doing some matrix manipulation for translation/rotation.

Note that "move the observer" is the same as "move objects", just done in the opposite direction.