Constructing Ray Through a Pixel
2D Example
d
Q
towards
P0
right
right = towards x up
Q = frustum half-angle
d = distance to view plane
P
P = P1 + (i/width + 0.5) * 2*d*tan (Q)*right
V = (P - P0) / ||P - P0 ||
V
Ray: P = P0 + tV
Previous slide
Next slide
Back to first slide
View graphic version