I’m trying to create a game that will be similar to Subway Surfers, except it’s gonna be set inside of a tunnel. In my scene, I’m trying to create a tunnel that’s infinite in length. Obviously I’m gonna have to use a script that generates the tunnel infinitely. That’s not the problem. The problem is that no matter how many tunnels are being generated, the player can always clearly see the end of the tunnel. It takes the realism out of the “infinite tunnel” illusion. Is there a way I can solve this problem?

This is the idea I have in mind: I want to create a shadow at the end of the tunnel. It will create an illusion the the tunnel is being generated from within the shadow. This way, the player won’t be able to see the end of the tunnel. Any idea how I can implement this?

I would just go with basic Unity Fog (It’s available in the “lightning” tab (if you don’t have it: click “Window” then “Lightning”) - pick the color from the tunnel (probably some greyish/blueish), with color picker until it feel “blending in”. If “linear” mode is to obvious I would be tweaking with “exponential” (but try starting from like 0.001 value).

You could try change your main camera’s render distance, it will say near and far basically change the values until you have what you want or you could go into lighting settings enable fog change values until it works out and make the fogs color black (be like the shadow idea u want)

Make a plane with no collider that looks like the tunnel extending to nothing-ness and keep it in front of the player :slight_smile: