Hi all,

Whilst there is brief mention of the elements that make up the projection matrix in both the red and blue books, there never was any attempt at explaining *how* these were derived. (it appears to be an amalgamate of shearing, scaling & translation transformations…but this insight by itself isn’t particularly helpful)

Can somebody kindly point me to relevant resources, references, websites etc?

A thousand thanks!

Uh, afraid not…I already know from the red and blue books exactly what the elements of the projection matrix are.

What I don’t know is *how* they came to be…ie. why are there scaling, shearing, translation transformations incorporated into it? what are the motivations behind these transformation operations? how are they derived? what formulas/principles/concepts used?

Very puzzled.

I remember in the days before I knew anything about matrices, linear algebra etc., I had to figure out how 3D worked in a kind of common sense way. These 3 lines is what I came up with to project a world transformed vertex to the screen:-

scale = halfscreenheight/vertex_z;

screenx = (vertex_x*scale) + halfscreenwidth;*

screeny = (vertex_yscale) + halfscreenheight;

This any help?

Those equations describe basic perspective division using the similar triangles principle. (I’m familiar with that too

However, it seems the projection matrix that OpenGL implements is a lot more complex. Problem is, I don’t know *exactly* what it does. And while I know the “-1” in the 4th row/3rd column is in effect responsible for implementing the perspective transformation, I just don’t know what the rest of the elements do…

Isn’t there some official documentation on this? SGI’s website for instance? (given that they were responsible for OGL’s genesis in the early days)

I’ve just done a quick search on google, and come up with this link - I haven’t had time to read it, so it probably doesn’t answer your question, but give it a go:-

http://www.cs.kuleuven.ac.be/cwis/research/graphics/INFOTEC/viewing-in-3d/node8.html

Gee, that link you gave answered my question exactly!

(the Google search I tried didn’t turn up anything near as useful as this…)

Thanks a lot man!

No problem.

I tend to put things in quotes when using google, to get the ‘exact phrase’.

Such as:-

“projection matrix”