ray tracing ?

Started by
0 comments, last by lonesock 19 years, 5 months ago
hello all, this is not about efficient/fast ray tracing algo. but to understand the math & procedure behind it. i've my view position set @ origin ; and generated my scene by hand computing the orientation (ray from view pos. to poly. edges) of the vectors from origin to polygon edges with a known field of view (camera) and placed the object (basically a square) some distance units away from origin; and now i am able to view the scene; how do i compute the orientation from the view position to any pixel on the screen ? Once i get this orientation, I would try to find the intersection between this ray and the plane in which polygon lies. (i could find the math of this but doesn't know how to compute the orientation for a given a pixel value in the screen). .kavitha
Advertisement
there is a really good series of articles, 1st of which is here

This topic is closed to new replies.

Advertisement