if you use getRayFromScreenCoordinates you also must use sentiment triangle selector.
I had same problem when i projected mouse coordinates to 3D position/
shorter: check selector
PS
also i advise you make you world smaller
use node->setscale and all fit.
50 million units is very for world
with estimated that 1 units == 1 meter in real life
Last edited by Serg88 on Thu Nov 12, 2009 3:03 am, edited 1 time in total.
Actually, most depth buffers are 16bit or 24bit. Using such a huge value will make the projection matrix rather wrong, and all results that involve object-to-world transformation pretty unreliable. Usual values are between 1000 and 50000.