Planetside Software Forums

General => Terragen Discussion => Topic started by: N-drju on April 03, 2021, 07:48:02 AM

Title: How to mask reflectivity?
Post by: N-drju on April 03, 2021, 07:48:02 AM
Hello Guys,

It's been a while since I logged in here. :-X It looks like I went out of practice a bit...


I can't seem to find a way to mask reflectivity (will there ever be a "mask" input in the shader? *sigh*). I've been trying to attach the reflective shader to the surface layer's "child" input and mask that with a PF. Then, limit the reflectivity further by setting a height limit. It results in either a complete failure or a very poor result.

Any suggestions how to get it working?
Title: Re: How to mask reflectivity?
Post by: N-drju on April 03, 2021, 07:55:09 AM
Scratch that - I have found a way. :) I simply added a PF mask and attached the reflective shader to the main input plug. I attempt to have a chimney cowl and the top of it is supposed to be covered in soot. This is why I needed this feature.
Title: Re: How to mask reflectivity?
Post by: Dune on April 03, 2021, 08:58:01 AM
Quote from: N-drju on April 03, 2021, 07:55:09 AMI simply added a PF mask and attached the reflective shader to the main input plug
huh? How does that work? The method you described earlier (child+reflective+masking surface shader) should work.
Title: Re: How to mask reflectivity?
Post by: N-drju on April 03, 2021, 02:01:58 PM
Quote from: Dune on April 03, 2021, 08:58:01 AMhuh? How does that work? The method you described earlier (child+reflective+masking surface shader) should work.


Kind of a mental shortcut I made - I should be more specific. Yes, this is possible - I just use the default surface layer color for the sooty part and apply the mask.

Needs just a little adjustment afterwards to make the stains even darker. Constant color works great to that end.

(The blackness in the lower part is the fault of the cloud shading in that particular example and is not an artifact. No problems like that in my target image.)


exampl.jpg
Title: Re: How to mask reflectivity?
Post by: WAS on April 03, 2021, 02:04:39 PM
I dont think its supposed to work like that. Main input isn't suppose to be masked by surface layer. It should be only masking the surface layers color, not reflectivity from main input.
Title: Re: How to mask reflectivity?
Post by: N-drju on April 03, 2021, 05:11:25 PM
Quote from: WAS on April 03, 2021, 02:04:39 PMI dont think its supposed to work like that. Main input isn't suppose to be masked by surface layer. It should be only masking the surface layers color, not reflectivity from main input.

So what? It suits my needs just fine.
Title: Re: How to mask reflectivity?
Post by: WAS on April 03, 2021, 06:42:49 PM
Well it may very well be a bug to be fixed?
Title: Re: How to mask reflectivity?
Post by: Dune on April 04, 2021, 02:15:56 AM
If it works for you, it works. But this setup actually just adds some patchy (fractal) blackness to the top end. Over the reflection. A color adjust (low gamma) as child would also work to make it darker, btw.
Title: Re: How to mask reflectivity?
Post by: WAS on April 04, 2021, 02:53:56 AM
Quote from: Dune on April 04, 2021, 02:15:56 AMIf it works for you, it works. But this setup actually just adds some patchy (fractal) blackness to the top end. Over the reflection. A color adjust (low gamma) as child would also work to make it darker, btw.
Is that not the actual PF mask being applied? Rest is fuzzy/alt zone.

Kinda wish we had just a Mask Shader. A main input, breakup, and mask. Breakup is applied to anything between 0 and 1, if applied (could be a checkbox). Surface layers have so much other stuff going on and I often use them for masking. Just seems redundant for such small task.
Title: Re: How to mask reflectivity?
Post by: Dune on April 04, 2021, 06:04:31 AM
The PF masks the black surface shader in.

I'm satisfied with the surface shader, though I admit there's extra's not needed just for masking. But another node again?
Title: Re: How to mask reflectivity?
Post by: WAS on April 04, 2021, 01:28:25 PM
Why not? Surface layer is redundant, and lots of topics on just how to mask stuff cause there is no straight forward mask.

Additionally breakup strangely only effects alt and slope fuzzy zones. Breaking up the mask zones is something I often do and have to do by functions before feeding it to a mask input.
Title: Re: How to mask reflectivity?
Post by: Dune on April 05, 2021, 03:20:00 AM
Not redundant for me, I use it all the time.

Breakup also works on the greys off masks, not only slope/alt.
Title: Re: How to mask reflectivity?
Post by: WAS on April 08, 2021, 02:26:28 PM
Quote from: Dune on April 05, 2021, 03:20:00 AMBreakup also works on the greys off masks, not only slope/alt.

Only as coverage, which clamps child input by mask clamp boundaries and ruins scalars. Child inputs becomes a 0-1 range so if working with anything beyond that, or needing smooth black zones to back up into, it won't work.