How do you set the distance from the camera at which surfaces are clipped? I want to be able to zoom in a little closer before models start to “open” so you can see through them.
cam.setFrustumPerspective(45f, (float) cam.getWidth() / cam.getHeight(), 0.01f, 1000f);
Near and far are the clipping values at the end, near being the one you want. First one is fov (vertical not horizontal, http://www.rjdown.co.uk/projects/bfbc2/fovcalculator.php if you want to specify a horizontal fov).
2 Likes
Thanks!