Determining if and where a photon will collide with a polygon in 3D space.

Posted by Peter on Stack Overflow See other posts from Stack Overflow or by Peter
Published on 2010-06-01T15:07:45Z Indexed on 2010/06/01 15:13 UTC
Read the original article Hit count: 197

Filed under:
|
|
|

The problem is straight forward:

1) We have a photon traveling from Point 1 (x,y,z) to Point 2 (x,y,z), both of which could be located anywhere in 3D space.

2) We have a polygon that is both rotated randomly on the x-axis and/or y-axis and also located anywhere in 3D space.

3) We want to find: a) if the photon will collide with the polygon at all and b) if it does where will that be (x,y,z)?

An image of the problem: http://dl.dropbox.com/u/3150177/Programming/3D/Math/Photon%20Path/Photon%20Path.png

The aim of this is to calculate how the photon's path should be altered from an interaction(s) with the polygon(s).

I am reading up on this subject now but I was wondering if anyone could give me a head start. Thanks in advance.

© Stack Overflow or respective owner

Related posts about math

Related posts about 3d