raster space 光栅空间
(the point coordinates are expressed in pixels with coordinates(0,0) being the top-left corder of the frame)
is a two-dimensional pixel location on the screen bounded by (0, 0) in the lower left corner of the image, and the rendered image resolution.
The center of the pixel in the lower left corner of raster space has the coordinates (0.5, 0.5).
NDC space
in ray-tracing (0,0) top-left range(0, 1) is different than NDC space in the rasterization world where it generally maps to the range [-1,1])
screen space 屏幕空间
is defined such that (-1, -1/a) is in the lower left corner of the screen and (1, 1/a) is in the upper right, where a is the aspect ratio of the screen (the relation between its width and height).
world space 世界空间
(is basically the space in which all objects of the scene, the geometry, the lights and the cameras have their coordinates expressed into)
we know:
1. the image plane is located exactly one unit away from the world origin and aligned along the negative z axis.
2. the image is square therefore the portion of the image plane on which the image is projected is also necessarily square( the dimension of this projection area is 2 by 2 units )
find a relation between
the coordinates of these pixels in raster space
and
the coordinates of the same pixels but expressed in world space.
steps:
1.normalize this pixel position using the frame's dimensions(raster space --> NDC space)
(NDC space in ray-tracing is different than NDC space in the rasterization world where it generally maps to the range [-1,1])
2.NDC --> screen space(consider ImageAspectRatio)
3.account for the field of view.
网友评论