Jump to content
  • Advertisement
Sign in to follow this  
kavitha

ray tracing ?

This topic is 4961 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!