Planetside Software Forums

General => Terragen Discussion => Topic started by: WAS on October 12, 2015, 10:34:13 PM

Title: Crater as Mask
Post by: WAS on October 12, 2015, 10:34:13 PM
Is there a way to transform a crater into a B/W mask for use with other shaders? Or do I really have to just create a mask and use that as my displaced crater with offset displacement?
Title: Re: Crater as Mask
Post by: AP on October 13, 2015, 12:33:02 AM
I investigated that and all i can think of is adding a surface layer to limit the slope and altitude for the crater shader and use that data as a mask.
Title: Re: Crater as Mask
Post by: mhaze on October 13, 2015, 04:20:29 AM
Just use a simple shape shader of the same size.
Title: Re: Crater as Mask
Post by: AP on October 13, 2015, 05:08:03 AM
That should work well.
Title: Re: Crater as Mask
Post by: bobbystahr on October 13, 2015, 12:31:59 PM
Quote from: mhaze on October 13, 2015, 04:20:29 AM
Just use a simple shape shader of the same size.

Beat me to the punch...I think Oshyan or Matt made me that recommendation when I asked.
Title: Re: Crater as Mask
Post by: WAS on October 15, 2015, 02:38:15 PM
Hmm, I fractalize the craters into lake forms. I'll have to dupe the factalization for the SS on a computer terrain. I just thought it may be easier. You'd think TG would have some sort of function to pipe in displacement/textures and cat a flat B/W image out of it. Would make a lot of masking sooo much easier in TG.
Title: Re: Crater as Mask
Post by: Oshyan on October 15, 2015, 10:07:16 PM
Such a function does exist, it's in the Function nodes, Displacement to Scalar, Displacement to Colour. But in the case of the Crater Shader there is both negative and positive displacement so to get a mask you'd have to adjust the crater shader settings, which would change the output you were getting. But you *could* use a copy of your crater shader and adjust the rim height, or other parameters, to get a correct mask with the warping...

- Oshyan