Articles Archive
Director Forums
Director Wiki
Job Board
Search
 
 Director Online WikiMain Page | About | Help | FAQ | Special pages | Log in | Printable version | Disclaimers

3D Picking

From Director Online Wiki

ModelsUnderRay

Here's a tip from Nick Kang to speed up ModelsUnderRay:

"For some reason, ray tests directly along the coordinate axes are much slower than tests oblique to the axes. I've measured a 50% drop in complex scenes. For example, a typical ground test (where +y = up):

Slow: modelsUnderRay(startPosition, vector(0,-1,0), 1 , #DETAILED)

Fast: modelsUnderRay(startPosition, vector(0.0001, -0.9999, 0.0001), 1 , #DETAILED)"

Retrieved from "http://www.director-online.com/dougwiki/index.php/3D_Picking"

This page has been accessed 1569 times. This page was last modified 09:30, 12 Jul 2005.