so the inverse of viewspace is worldspace?, does that mean worldspace position for the camera on the left hand coord axis?
Edited by Anddos, 10 February 2013 - 09:54 AM.
Jump to content
Posted 10 February 2013 - 10:31 AM
so the inverse of viewspace is worldspace?
You probably mean: The inverse of the world-to-view transformation is the view-to-world transformation. Notice that not the spaces but the transformations from one space to another are mentioned..
Posted 10 February 2013 - 06:35 PM
If you were to create a 4x4 matrix representing the orientation and position of your camera, that would be the camera's "world matrix". Transforming any point by such a matrix would translate it from "local space" relative to the camera's position and orientation, to "world space". If you were to invert this matrix, you would get a matrix that does the opposite: it would transform world-space coordinates to local coordinates relative the camera (AKA view space). This would be your "view matrix".