My Terrain Test - Basic Trenches
SirSmoke
Join Date: 2013-07-05 Member: 185952Members
Thank you UWE and @SteveRock for making this nice little tool publicly available! Here are some pics of my early experiments with trenching. The initial plan was to get some deep continuous lines out of the Perlin noise. This is commonly done by isolating the midrange of standard noise output, which results in "noodles." I then tried various adjustments to the profile (sort of like gamma correction) to produce a steep dropoff with a small bit of curvature. Some regular noise on top is used for changing materials and adding a little more 3d variation.
This noodle technique is a very basic one that provides curvy lines which are not terribly interesting. Much more can be done; one thing that comes to mind is the use of Voronoi or Worley patterns to make the cliff walls look scooped out by currents. I have some other ideas for making more realistic forms, like tapered scars and branching rifts, that I shall try in the future. So far this code generates noise only 3 times, and does not use DoAlgorithmicPass.
Step 1: Cook Spaghetti
Tried a mesa-like drop. Also began at large scale, but it's so hard to see an epic chasm at these draw distances.
Started scaling down to see more at once. Not really trenches anymore, but rather clusters of rock mounds.
Added 3D noise for tunnels and arches.
This noodle technique is a very basic one that provides curvy lines which are not terribly interesting. Much more can be done; one thing that comes to mind is the use of Voronoi or Worley patterns to make the cliff walls look scooped out by currents. I have some other ideas for making more realistic forms, like tapered scars and branching rifts, that I shall try in the future. So far this code generates noise only 3 times, and does not use DoAlgorithmicPass.
Step 1: Cook Spaghetti
Tried a mesa-like drop. Also began at large scale, but it's so hard to see an epic chasm at these draw distances.
Started scaling down to see more at once. Not really trenches anymore, but rather clusters of rock mounds.
Added 3D noise for tunnels and arches.
Comments
Speaking of water density, might the GUI contain a slider for fog in a later release? I'm curious to swim around with fog fading in closer to the camera, as right now it's like crystal-clear water that abruptly turns murky. A gradual fade would feel more like real water.
I've seen a bit of StarForge footage but haven't tried it myself. I don't think I've seen their noodly cave walls, but I did see a cave texture that looked very much like Worley noise.
For those interested in the math: As for the way I made spaghetti, it's all about the middle value. Because Perlin noise generates blobs at regular distances with a fairly even distribution of values, one can assume that the areas in between the blobs flows continuously, and that the value of those areas tends to be at the center of the spectrum. As Unity's noise implementation returns values from zero to one, the center is 0.5. So one could do something as simple as this:
... which would push the values within 5% of center up to one, and the rest down to zero. If you want noodles without hard edges, you can interpolate in various ways. Squaring the proximity to center is done easily by replacing the second line of code above with:
... which results in noodles that fade out quickly, such that they are strongly defined yet still have soft edges.
Sure, yeah the fog ain't great right now. I'll try and update that soon (but will be pretty busy next week with GDC and what not).