Hello! I was wondering how i could make the illusion of infinite (moving) terrain outside of a train going in a straight line? like- how to loop the moving terrain to make it seem endless (Sorry, im not super sure how to put this into words ^^")
A few different ways to do.
Option #1, Put a large wide plane outside the train window with an image of a train. Loop it moving by the train by animating the image. Your image would need to be tiling and fairly wide for cleanest results.
Option #2, same as above but use a pre rendered movie video texture. Both options can be used to simulate the illusion of the train moving which can simplify building the level inside the train since the train itself would just appear to be moving.
Option #3, skip the illusion and just build some terrain and have the train actually move. You can also combine this with 1 and/or 2. For things like telephone poles or shrubs and can be looped animated in the foreground.
Option #4, Make a 6 sided geometry gameobject to be used in place of a skybox and animated it like the other options.
You can use all or some of these options depending on the desired result and target platform for you scene.
Hope this helps!