PDA

View Full Version : selection mode



guest
12-01-2003, 12:28 PM
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?

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

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

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

dvm
12-02-2003, 04: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.

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