View Full Version : selection mode

12-01-2003, 11:28 AM
im designing a game and i run into a problem when the selection mode does not detect a hit of an object that is way off in the distance... is there a way to increase the distance the selection mode can check?

12-01-2003, 11:37 AM
it detects everything drawn in the frustum, so move your zFar

12-01-2003, 12:23 PM
um... how might i do that?

12-02-2003, 02:44 AM
somewhere you set the projection matrix, and there you set znear,zfar parameters..

12-02-2003, 03:31 AM
yes, but if the object is drawn (you can see it) then it's already in the frustum. OpenGL clamps the zNear, zFar values to 0.0, 1.0 I think.

12-02-2003, 01:23 PM
ok... it still wont allow me to click on it until i zoom in... yet i still can see it.