Changing this line from ...
to
Fixes the problem. Your scaling is borked otherwise as you are positioning the sphere at y=1.
This kind of thing is what camerapick is designed to do - why aren't you using it?
Stevie
CameraProject cam, 0,0,0
to
CameraProject cam,0,1,0
Fixes the problem. Your scaling is borked otherwise as you are positioning the sphere at y=1.
This kind of thing is what camerapick is designed to do - why aren't you using it?
Stevie