6
\$\begingroup\$

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

\$\endgroup\$
  • 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
1
\$\begingroup\$

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:

https://stackoverflow.com/questions/4792952/how-to-ensure-that-a-plane-perfectly-fills-the-viewport-in-opengl-es

\$\endgroup\$

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.