Having working with spherical projections extensively for the light gelmaps and 
the new raytracing features in Prefab during last weeks, 
I kinda know it can be pretty confusing sometimes...

Fabrice


On Dec 22, 2009, at 10:33 AM, Sören Meyer-Eppler wrote:

>>                      var pMouse:Number3D = 
>> _view.camera.unproject(_view.mouseX,
> _view.mouseY);
>>>                     _dir.x = pMouse.x;
>>>                     _dir.y = pMouse.y;
>>>                     _dir.z = pMouse.z;
>>>                     _dir.normalize();
>>>                     
>>>                     pMouse.add(pMouse, _view.camera.position);
>>> 
>>> should do it.
> 
> Thanks Fabrice. Now I feel stupid. That's exactly what I had tried but
> it turns out my ray sphere intersection code was broken after all. Sorry
> for being such a n00b ;-)
> 

Reply via email to