I have been trying to use gluUnProject to get 3d mouse coords and then cast a ray from my camera through the 3d coords and check for interestion with a plane. All of this is working not so bad except that the farther i click from my camera the bigger the error between the Z coords i want and the ones i get is..
I guess the problem is something related the the zFar and Znear plane, but i dont know how to fix it..
Someone has an idea of what it might be?
Thanks alot!











