Skip to content

A few Questions #920

Answered by hollasch
crypto-dot asked this question in Q&A
Sep 1, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

The "origin" is the origin of the scene rays. This ray origin can be anywhere in the scene; its 3D coordinates are arbitrary, and need not be (0,0,0).

After that, we want vectors that go from this camera origin to some 3D pixel coordinate on the virtual image viewport, so we need a direction vector that does that. B - A yields the vector from point A to point B, and pixel coordinate - ray origin gives you the vector from the camera origin (focal point) to the image pixel. That's why we subtract the ray origin point.

horizontal is the vector from the image viewport lower left corner to the lower right corner. vertical is the vector from the image lower left corner to the upper left corner.…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@crypto-dot
Comment options

Answer selected by crypto-dot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants