Planetside Software Forums

General => Terragen Discussion => Topic started by: CCC on February 11, 2010, 04:41:33 AM

Title: Displacement does not show.
Post by: CCC on February 11, 2010, 04:41:33 AM
I have a displacement fractal along the color marked parts of the terrain for reference, however the displacement is simply not there. I don't think it is because the layer is on the bottom. I move it up and the same thing, no displacement. What gives?
Title: Re: Displacement does not show.
Post by: cyphyr on February 11, 2010, 06:23:55 AM
Why are you using a "lateral only" and such a high displacement value? Have you placed a Compute Normal before the power fractal or/and the surface layer?
Richard
Ahh Coffee has kicked in, TA is completely right :)
Title: Re: Displacement does not show.
Post by: Tangled-Universe on February 11, 2010, 06:34:50 AM
You have a compute normal as displacement function.
The compute normal computes normals, it's not generating anything.
So you'll need a powerfractal which generates displacement, say lateral for example (I always choose lateral, if I use it, in the powerfractal rather than the surfacelayer). Before that powerfractal you'll need a compute normal.
The correct order to do these kind of things is like Richard described in his questions:

terrain -> compute normal/terrain -> powerfractal (lateral e.g.) -> more shaders -> compute terrain -> texture

the difference between compute normal and terrain is that a compute terrain also calculates the texture coordinates which allows you to restrict layers by height. Compute normal only calculates normals, which allows you to either displace along lateral and/or restrict by slope.

Cheers,
Martin
Title: Re: Displacement does not show.
Post by: CCC on February 11, 2010, 08:18:42 AM
Always a hard time with this side of Terragen.    ;D

I have it working now, thank you much. I had to get this shader tight on that minimum altitude.   :P