I am making a flight simulator for a class im in. I would like to generate infinite terrain that spawns in chunks as the plane travels through the world. I have generated python code that creates a 2d noise map but I am confused on how to implement my code into the BGE such that it updates the terrain in realtime.
My noise generator spits out a 2d list of noise values that I can create a simple height map for which I can use with a displace modifier on a subdivided plane, but how can I change that texture each time I run the game?
Any help is appreciated.