views:

32

answers:

1

In OpenGL ES, how do I specify what the maximum visibility distance is? I've found that when I do:

gl.glTranslatef(0,0,-10f);

everything I draw is invisible because it's too far away from the camera. How do I specify that it should draw things farther away?

A: 

That's part of your projection, a perspective projection contains a near and a far planes. The far plane is the maximum viewing distance.

For orthographic projections, there is no maximum viewing distance.

Matias Valdenegro