|
-
March 18th, 2010, 12:09 AM
#1
Ray tracing math help
Hi guys,
I need some help with the math for ray tracing to find the distance between a point and a surface. Say i have a point in space P(x,y,z) and a surface defined by a triangle with vertices (x1,y1,z1),(x2,y2,z2),(x3,y3,z3). I need to check if the ray from the point to the plane intersects the plans and if it does then find the distance from the point to the plane. The camera is located at C(x,y,z). Do I even need the camera location for this method?
I have looked it up online but i am not clear about it. If someone can show me the math properly, i'll really appreciate.
I am basically trying to do z-buffer/hidden surface using ray tracing.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|