Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Generating smooth cube terrain using perlin noise?

Asked by 5 years ago

Recently decided to do some light scripting and decided to go with terrain generation, cubic terrain, to be exact, meaning terrain is split into 4x4x4 cubes, I searched around for tutorials about this but they were either completely different or just overall non-existent :P

If you could provide me with a simple method on how to do this and an example if possible, that'd be greatly appreciated.

0
I am actually doing that now. However I have only been able to create layers of Grass Dirt, Stone, Larva, And bed. I haven't been able to develop any type of land yet. vamps108 0 — 5y

1 answer

Log in to vote
0
Answered by
Y_VRN 246 Moderation Voter
5 years ago
Edited 5 years ago

This question made me look for my old thing. I eventually found it, though I assure you this ain't really focused on, so imperfections may occur.

01local depthTable = {} -- DO NOT EDIT
02local x,z = 100,100
03local amplitude = 160
04local height = 200 -- DO NOT EDIT
05local minimum = 5
06local sea level = 0 -- 0 = normal
07local smoothness = 30
08local groundheight = 5
09local heightOffset = 100
10local seed = 0 -- DO NOT EDIT
11local naturalAmp = true -- DO NOT EDIT
12local natAMP = 1 -- DO NOT EDIT
13local plainsBiomeSize = 60
14local built = 0 -- DO NOT EDIT
15local depthNo = 0 -- DO NOT EDIT
View all 82 lines...

I have long abandoned fiddling with perlin noise so I can't provide you details and simple methods. Sorry.

0
I realized my script is somewhat heavy. Meh, it's just three-step process. Y_VRN 246 — 5y
Ad

Answer this question