Just wondering how i would go about creating a terrain generator type script. Looking for something that is lightweight. It’ll render “Blocks” which will also need to create hills, mountains, etc. This is something which im looking to learn to do.
I have no experience with terrain generator and need some help finding resources/tutorials that will help with this. I’m not familiar with any other programming code.
If you’d like to generate this using code instead of a height map you’re probably looking for math.noise. Math.noise (perlin noise) is how a lot of games generate hills and stuff.
@Vanimion Because he is looking for a terrain generator…? I don’t understand what you’re trying to say here.
In either case, the only thing I know about any kind of terrain generation are two terms being flung around: “perlin noise” and “procedural generation”. I have no clue what any of that means. Perhaps searching around on the DevForum may yield something useful.
The generator you see in the link above uses math.noise and the map is entirely loaded on the client and not the server which causes some problems but then again it comes with some positives as well, but read about perlin noise.
If you want to see an example of the code I use I will happily send it your way, that is if my friend who made it lets me share it.
There are tons of tutorials that cover some version of it online, although maybe not in Lua or Roblox but it should translate pretty well to any 3D engine. Perhaps you had a more specific question? You can google “Procedural generation” for resources.