Hello
Today I’m trying to generate a new Terrain by using TerrainGrid class.
So I’d like to generate an infinite terrain by using something like a seed.
I already saw the TerrainFractalGridTest class but this is always the same terrain wich is generated.
Could someone help me please?
Thank you.
@drweedy said:
Hello :D
Today I'm trying to generate a new Terrain by using TerrainGrid class.
So I'd like to generate an infinite terrain by using something like a seed.
I already saw the TerrainFractalGridTest class but this is always the same terrain wich is generated.
Could someone help me please?
Thank you.
i haven't looked at TerrainFractalGridTest, but my totally random guess is that you just need to seed the random number generator using something at least pseudo-random, like the system time.
It’s random, but repeatable. Just supply different seed values to the classes each time if you want it different every time.
Thanks, I understood how this classes work