Thanks for the quick reply.
That is pretty much what I expected.
I was confused because I did in some cases get negative values for distance (when object is behind the virtual camera) but values between 0 and 1 for both screen coordinates as if the object was within the viewing frustum.
Should I just ignore all situations in which either the distance is negative or any of the two screen-coordinates is not within the range of 0-1?
Thanks again,
malte
|