mrdoob/three.js — Issue #680: Ray Intersect Problem?
Author: prutsdomj
Created: 2011-10-23 22:49:44+00:00
State: open

I have a Cornell Box scene setup, with 6 planes as sides of the box, each with its normal facing inwards.

Then I cast rays at random directions from inside the box. However, I never get any intersections.

Am I not setting up the scene correctly? Does sided-ness matter? Or do I need to transform the ray into object space before I cast it?

Here is my code:
http://pastebin.com/a3XxV1Rn

Thank you so much for whoever can help.