Planetside Software Forums

General => Terragen Discussion => Topic started by: leafspring on February 19, 2010, 09:47:38 AM

Title: Fake Stone Color Problem
Post by: leafspring on February 19, 2010, 09:47:38 AM
Hi,

I'm kinda stuck here with my FSS. Up to now I have my basic procedural terrain with some strata, outcrops and power fractals and under the shader tab my base colors as well as some sand colors. Now I added a fake stone shader displacement but the result wasn't what I expected. Per default the stones are white and whenever I used them before they were white when rendered. But this time they are mainly colored in the base colors (see attachment). I've attached a 'node shot' of my shaders as well since I'm pretty sure I messed something up but can't figure out what.  ;D

Any help appreciated. :)


Title: Re: Fake Stone Color Problem
Post by: cyphyr on February 19, 2010, 09:58:38 AM
Hi Rimmon
Try placing your FSS as a child shader of a new surface layer. You should then be able to shade the FFS independently of the preceding layers.
Hope this helps
Richard
Title: Re: Fake Stone Color Problem
Post by: leafspring on February 19, 2010, 10:54:55 AM
Thanks a lot, it helped. :)

Edit: Oh well, I broke it again.
Seriously, the moment I added my distribution shader to the new FSS again, the color disappeared. I'd understand that if I hadn't checked 'Blend as stone density' under 'Blend by shader', but I did. Shouldn't that leave the color untouched?
Title: Re: Fake Stone Color Problem
Post by: Matt on February 21, 2010, 10:58:32 PM
In your distribution shader or surface layer, if you set altitude key to "Position in terrain/texture" and slope key to "Terrain normal", this should align the colour with the displacement.
Title: Re: Fake Stone Color Problem
Post by: dandelO on February 22, 2010, 04:29:46 PM
Matt: Where is the "Position in terrain/texture" setting for surface layers?

EDIT: It isn't in a surface layer, it's only in the distribution shader.