Advertisement

Quickest test if a ray goes through a cube

Started by July 20, 2002 07:46 PM
0 comments, last by executor_2k2 22 years, 7 months ago
What''s the quickest way to test if a ray goes through a cube (or stops in the middle somewhere)? I was thinking ok just testing if the ray intersects one of the cube''s sides. Anything better? Thanks. Well, that was a waste of 2 minutes of my life. Now I have to code faster to get ''em back...
Well, that was a waste of 2 minutes of my life. Now I have to code faster to get 'em back...
There''s code for this in Graphics Gems I (I think it''s in I). See this for source downloads.

This topic is closed to new replies.

Advertisement