- Home /
How can I apply horizon curvature to infinite worlds?
I'm creating a sort of "endless runner" game that's gonna be set inside of a tunnel. So I'm gonna have to use a script to a generate new tunnels every few seconds to create the illusion of an infinitely long tunnel (already did this part). Here's what the tunnel looks like in my scene:
To create that "infinite feel", at the end of the tunnel, I put a black plane with no colliders to make it look like the tunnel is extending to nothing-ness. Although it's not a bad idea, I think I could do better. I was thinking of making the end of the tunnel look like it's curved downwards. It's the same concept used in Subway Surfers and Angry Gran Run:
As you can see in these screenshots, the "infinite feel" is created by curving the end of the path downwards, making it look more realistic. I want to implement the same effect with my tunnel. Any idea how one can achieve this?
Answer by tanoshimi · Jun 23, 2017 at 01:46 PM
And, if you'd rather not pay any money... https://alastaira.wordpress.com/2013/10/25/animal-crossing-curved-world-shader/
Answer by hexagonius · Jun 23, 2017 at 10:38 AM
I'm not sure how hard it is to do this on your own, but it's mainly a rendering effect, probably matrix calculations on the shaders used for the environment. Anyway, this might help you out if you're willing to pay some money:
Your answer
Follow this Question
Related Questions
Infinite Length of Terrain/Loop Terrain 1 Answer
,My clone sprite is disapeared. 1 Answer
Tileable perlin noise terrain 1 Answer
I only want my character to jump when touching the ground 4 Answers