Planetside Software Forums

General => Terragen Discussion => Topic started by: mhaze on May 05, 2012, 06:01:10 AM

Title: adding masks
Post by: mhaze on May 05, 2012, 06:01:10 AM
Right

Firstly, sorry to keep asking silly questions!

Secondly - I have a SSS used as a mask for a river and also to place vegetation. I want to add a path using another SSS and again using that to mask the same vegetation anyone got any ideas how I can add/mix the two masks so that they can be inputed into the internal plant networks.

Hope that make sense

Mick
Title: Re: adding masks
Post by: j meyer on May 05, 2012, 10:17:27 AM
Should be possible to combine 2 or more SSS with an Add Colour node.
Title: Re: adding masks
Post by: mhaze on May 05, 2012, 11:12:20 AM
Cheers a great idea I'll give it a go.
Title: Re: adding masks
Post by: Dune on May 05, 2012, 12:24:15 PM
Or use the merge shader for more possibilities, or just stick the one into the other's input (stack them).
Title: Re: adding masks
Post by: j meyer on May 05, 2012, 01:16:43 PM
Dune - The merge shader can cause some trouble (at least it could in 2.3) in
          some situations as well as the stacking method,that is why I did not
          mention these above.
Title: Re: adding masks
Post by: mhaze on May 05, 2012, 01:28:30 PM
Add colour works great
Title: Re: adding masks
Post by: Dune on May 06, 2012, 02:47:27 AM
What kind of trouble did you encounter, Jan?
Title: Re: adding masks
Post by: j meyer on May 06, 2012, 10:23:06 AM
Using the merge shader in add mode resulted in varying intensities of the output.
Maybe I still have an example for that,I'll see if I can find it.
The stacking method didn't work at all in some cases,but I couldn't find out why
at the time.Didn't keep an example,because I wanted to get on with the stuff I was
doing.
Title: Re: adding masks
Post by: Dune on May 06, 2012, 12:06:16 PM
I did notice that if you stack overlapping SSS's they don't really add up. I just used a conditional blue node to add two SSS's to make another sort of curve, where I changed the white to gray or white=2 and different sizes. All sorts of interesting combinations to be made.
Title: Re: adding masks
Post by: j meyer on May 07, 2012, 11:05:30 AM
Could not find the example so I reproduced it with one of my old files and set up
some more examples.Thought it might be better to put these in their own thread,
though.
http://www.planetside.co.uk/forums/index.php?topic=14506.0
Let's continue there,please.
Haven't tried the conditional for this kind of stuff yet.Maybe you can show that
over there too,if you like.
Title: Re: adding masks
Post by: Hetzen on May 07, 2012, 03:19:19 PM
When you add masks, it's a good idea to clamp the result between 0 and 1 to stop any 'over application' of what you are using it to mask.
Title: Re: adding masks
Post by: bigben on July 02, 2012, 06:04:28 PM
Quote from: Hetzen on May 07, 2012, 03:19:19 PM
When you add masks, it's a good idea to clamp the result between 0 and 1 to stop any 'over application' of what you are using it to mask.

I can second that one  ;)   I mainly use scalar functions rather than colour functions since a mask only needs a single value to be calculated