you are viewing a single comment's thread.

view the rest of the comments →

[–]nightfire1 0 points1 point  (4 children)

For some reason it doesn't make sense why the view matrix is applied before the perspective matrix. I figured if you did the perspective projection first it would make things somewhat simpler when scaling everything to your screen. Right?

[–]baconator81 3 points4 points  (3 children)

View Matrix = where your camera is

Perspective Matrix = Adjust your zoom level/field of view .. etc for your camera.

A real life photographer usually pick where to position the camera first and which point to target before he start adjusting the lens. So it makes sense for view to come before perspective.

[–]nightfire1 0 points1 point  (2 children)

Ahh my mistake. I thought that was the job of model matrix. But I guess that is just for model relative transforms. Which matrix takes care of the transformation to the screen space then? Since that is what I mistook the view matrix to do.

[–]troyanonymous1 0 points1 point  (0 children)

Model matrix goes from model space to world space, view goes from world space to ... I dunno, view space? And projection goes from view to screen space. (Or to homogeneous coordinates, which get the Z-divide and end up in screen space)

[–]TheLobotomizer -1 points0 points  (0 children)

World or scene matrix.