How Is 3D Data Projected Onto A 2D Bitmap?
http://en.wikipedia....i/3D_projection
Vertices are projected via matrix multiplication, then rasterization textures and shades the resulting on-screen pixels.
Vertices are projected via matrix multiplication, then rasterization textures and shades the resulting on-screen pixels.
In standard rasterization engines you can express the process from getting a triangle-based 3D object from its local space to its projection onto a 2D plane as 3 transformations (ie. matrix multiplications)
The first one would be the world transformation where each vertex of the model is transformed to a position to the global or world coordinate space. The transformation is done by doing a matrix multiplication of your vertex positions with a world matrix which generally contains a translation, rotation and a scale factor.
The second transformation is the view transformation where your model is transformed from world-space to view-space using a view matrix. This transformation places the view point as the world origin (ie. at (0,0,0)).
The last transformation is the projection transformation which takes your view-space coordinates and projects them onto your final image. The projection matrix can hold info about your aspect ratio, clipping planes, field of view, etc.
This is just a very basic overview, there's tons of documentation to be found online about this process
The first one would be the world transformation where each vertex of the model is transformed to a position to the global or world coordinate space. The transformation is done by doing a matrix multiplication of your vertex positions with a world matrix which generally contains a translation, rotation and a scale factor.
The second transformation is the view transformation where your model is transformed from world-space to view-space using a view matrix. This transformation places the view point as the world origin (ie. at (0,0,0)).
The last transformation is the projection transformation which takes your view-space coordinates and projects them onto your final image. The projection matrix can hold info about your aspect ratio, clipping planes, field of view, etc.
This is just a very basic overview, there's tons of documentation to be found online about this process
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement