- Home /
Random island generation?
Me and my friend are making a 3d top down game and I've been having a hard time trying to find an asset that can help create a randomly generated island on command (i.e. clicking "play" in the menu screen). I have the terrain toolkit but not yet sure how to go about doing this. If anyone knows I would really appreciate the help.
Answer by xt-xylophone · May 16, 2014 at 05:28 AM
Look up in the documentation on how to modify heightmap data of the terrain.
Then look up algorithms to generate heightmaps. A heightmap is pretty much a 2d array of height values. Apply this to your terrain to make lumps.
Do some calculations based on elevation and angle of each face to set your materials for the terrain, just like the toolkit.
If you want it to be islands, add some water at a height over a massive area. Modify your terrain algorithm to favour peaks so they stick out of the water.
This is extremely high level but a tutorial on the whole process is MASSIVE. Part of the fun is starting out with a shitty algorithm and enjoying the wacky results! Good luck!
thank you very much! I'm very new to this so I must've not been searching for the correct way to do it.
Your answer
Follow this Question
Related Questions
Non-Square Terrain for Floating Islands 1 Answer
Radial Voronoi Noise for procedural island? 0 Answers
Make a simple tree 1 Answer
Terrain map 0 Answers
Using a Gameobject for terrain. 1 Answer