I'm developing for Android using OpenGL ES 2.0.

It's going to be a game where you have to fly through a tunnel without hitting the walls.

However, the tunnel wall gets clipped as the player approaches. This is especially annoying with the rings as they suddenly disappear, causing an uncomfortable flashing effect.

How can I make sure that the tunnel fills the entire screen?

Tunnel Flyer

  • 2
    \$\begingroup\$ Try adjusting the near clip plane of the camera. \$\endgroup\$ – Gustavo Maciel Jul 7 '13 at 12:25
  • 3
    \$\begingroup\$ Try to scale up the whole thing, so the clipped parts lie outside of projection rectangle. \$\endgroup\$ – Ivan Kuckir Jul 7 '13 at 12:34

Try depth clamping. There are some drawbacks but it could potentially solve your problem.

Also, see this question for how to define your own rendering frustum:



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.