You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, if we want to compute a central projection with a camera (important!) camera located on the z-axis with distance c from the origin, then we embed the point into 4D by augmenting it with 1, then we multiply it with the following matrix, and retro-project it into 3D.
When it comes to chapters six,our eyes are based on (1, 1, 3) which is not the z-axis.And I wonder why this projection matrix is so simple.So I looked for some other materials,then found a more complicated matrix:
After scanning articels,I replace ur matrix with the new ones(include changing the lookat matrix's fourth column).But I get a strange pic.Could u explain the difference between the matrix above and yours?
The text was updated successfully, but these errors were encountered:
Well, for starters, in my code I do not have any fancy stuff like far/near planes. In my application the camera is always placed (by the means of lookat()) at the axis Z facing the origin; the projection is made onto the plane Oxy.
In real OpenGL the camera is always placed at the origin and the projection is made onto the near plane. Also check this tutorial.
@ssloy
thx!
I'm reading <tricks of the 3d game programming gurus>,which seems too old for today's computer.So I wonder if you can recommend me some easy-read material of texture and sampler (Better online).I've already got a huge to-read book list which I'm working on :(
In the chapter four:
When it comes to chapters six,our eyes are based on (1, 1, 3) which is not the z-axis.And I wonder why this projection matrix is so simple.So I looked for some other materials,then found a more complicated matrix:
![projection](https://camo.githubusercontent.com/4f4778641a82384c0d02f3a4ef9179bf974a3caeb6ac082ab4e4797988aaf88a/687474703a2f2f6f676c6465762e617473706163652e636f2e756b2f7777772f7475746f7269616c31322f31325f31312e706e67)
After scanning articels,I replace ur matrix with the new ones(include changing the lookat matrix's fourth column).But I get a strange pic.Could u explain the difference between the matrix above and yours?
The text was updated successfully, but these errors were encountered: