Planetside Software Forums

General => User-contributed Tutorials => Topic started by: David Burnett on March 25, 2007, 02:33:34 pm

Title: A function only Landscape : Part Four - Putting it all together.
Post by: David Burnett on March 25, 2007, 02:33:34 pm
To create my function only landscape I'm going to use the pyramid, the linear sand dunes and Perlin's noise.

To to start off create a linear sand dune node network and add a pyramid node network, or load the tutorial4_start tgd file.

[attachurl=1]

Now we will put some kinks in those straight lines, using Perlin's noise.



To add the pyramid into the scene we need to use our old friend the Condition Scalar.
Were the pyramid overlaps the sand dunes we want to pick the highest value, so the
condition we want is "Greater than".



You may have to look around for the pyramid or you could just set the camera to position 395, 15, -800 and rotation -0.5,-35, 0

It's a bit flat so lets add some big dunes, using Perlin's noise again.



This time we do not want the Highest value to use used as we want linear dunes on the other dunes
so to do this we add the new Perlin noise on the linear dunes.



Now we need to tie the the dunes into the Conditional Scalar before the Displacement shader, however I'm
going to do it in a Surprisingly different way.



I've left linear dune node network feeding into the Input Node. This means that where the linear dunes
were visible before the new dunes will be used. All we need to do now is change the Base Color Shader
to something that looks Sandy and hopefully you have something that looks like this..

[attachimg=2]

Here's the finished tgd in case you got lost

[attachurl=3]

You might want to connect the dunes to the Input Node to see the effect, and for extra marks work how to make the plains
it creates use the linear dunes.

Title: Re: A function only Landscape : Part Four - Putting it all together.
Post by: Oshyan on March 25, 2007, 03:06:54 pm
Ah, here we go, the rendered result. :) As I said elsewhere linking to the relevant discussion thread(s) could be good too. Great work!