Planetside Software Forums

General => Terragen Discussion => Topic started by: mogn on May 05, 2007, 04:03:00 AM

Title: Fake Sand
Post by: mogn on May 05, 2007, 04:03:00 AM
It is easy to use the functional network for generating textures, without using the inbuild fractals or noise functions.
In the shown landscape i have generated the sand texture in the following way:

z' = 31 + (z*31 - nearestinteger(z*31))
x' = o.5 + (x*z' - nearestinteger(x*z'))
x' which is is a scalar in the range 0..1 is then used as controller input in a colour mixer,
and the ouput is fed into the colour function of a surface layer.
The constant 31 governs the 'scale' bigger values gives smaller grains.
Title: Re: Fake Sand
Post by: rcallicotte on May 05, 2007, 09:07:11 AM
While the color could be jimmied about, I like what you've done.  Thanks for the TGC. 
Title: Re: Fake Sand
Post by: bobbystahr on May 10, 2007, 09:30:02 AM
What an interesting clip file and render. Now, as a semi stunned old timer, how the heck do ya use a clip like this. I've had zero luck in getting it to do anything as I haven't the faintest idea how to hook it up to anything else being totally stunned about the shader network set up. A small tute on how to implement this file woulf be most appreciated. Thanx again for posting your experiment friend.. ...
Title: Re: Fake Sand
Post by: mogn on May 11, 2007, 02:17:24 AM
In Shader Group add a surface layer.
This layer has a field called Colour function.
Click on the ... to the right of this, and select assign shader.
You will see a drop down list with all existing shaders.
Select the shader called \Colour. (This shader is placed in the group 'Fake Sand')

Thats all!  ;D
Title: Re: Fake Sand
Post by: bigben on June 17, 2007, 03:59:27 PM
I've played with this clip file and it's reallly useful.  Just giving it a bump to joinf the recent sand posting.   If you choose coulours that are relatively close to each other you can get some very good results.  The pattern is basically like gaussian noise so it gives a much more even pattern and you can use it for the displacement shader as well.

Thinking outside of just sand, it would be useful for amany things... fake grass as well for one.  ;)