How to visually "connect" skybox edges with terrain model

Posted by David on Game Development See other posts from Game Development or by David
Published on 2012-09-06T09:28:47Z Indexed on 2012/09/06 9:50 UTC
Read the original article Hit count: 282

Filed under:

I'm working on a simple airplane game where I use skybox cube rendered using disabled depth test.
Very close to the bottom side of the skybox is my terrain model.

What bothers me is that the terrain is not connected to the skybox bottom. This is not visible while the plane flies low, but as it gets some altitude, the terrain looks smaller because of the perspective. Since the skybox center is always same as the camera position, the skybox moves with the plane, but the terrain goes into the distance.

Ok, I think you understand the problem. My question is how to fix it.
It's an airplane game so limiting max altitude is not possible. I thought about some way to stretch terrain to always cover whole bottom side of the skybox cube, but that doesn't feel right and I don't even know how would I calculate new terrain dimensions every frame.

Here are some screenshot of games where you can clearly see the problem:
(oops, I cannot post images yet)

© Game Development or respective owner

Related posts about opengl-es2