Author Topic: add or pass through  (Read 322 times)

Offline Dune

  • Member
  • *
  • Posts: 12389
  • Corkscrew Bird
    • www.ulco-art.nl
add or pass through
« on: July 12, 2017, 06:47:27 AM »
Okay, there's something I don't understand; if you have a painted shader and pass a line of masks through it, the final mask is different from an added painted shader to the line of masks. How come? Where the painted shader is painted white it was black originally, so I would have thought the result being the same.
In case you still haven't seen enough of my work: www.ulco-art.nl

Offline bigben

  • Member
  • *
  • Posts: 2120
  • The Long Stranger rides again
    • Tinkering with Terragen
Re: add or pass through
« Reply #1 on: July 12, 2017, 10:57:33 PM »
Are you inverting the mask?
[edit] NVM, Had a play with functions.  Looks like pass through is equivalent to mix. Notice that I use scalar instead of colour for masking.  You only need one channel.
« Last Edit: July 12, 2017, 11:23:29 PM by bigben »

Offline Dune

  • Member
  • *
  • Posts: 12389
  • Corkscrew Bird
    • www.ulco-art.nl
Re: add or pass through
« Reply #2 on: July 13, 2017, 06:28:15 AM »
Thanks Ben! I need pass through, so this is a great solution. I was working on this scene (though I threw out the front stone patch in the meantime).
« Last Edit: July 13, 2017, 06:33:17 AM by Dune »
In case you still haven't seen enough of my work: www.ulco-art.nl

Offline bigben

  • Member
  • *
  • Posts: 2120
  • The Long Stranger rides again
    • Tinkering with Terragen
Re: add or pass through
« Reply #3 on: July 13, 2017, 06:55:23 AM »
Very nice.  Do you use colour adjust nodes on your masks?  I'm thinking of things like the border between the soil under the vines and the grass/plant objects.  If you're subtracting the soil mask from the plant population you can control the density in the overlap independently by feeding the soil mask through a colour adjust node before subtracting it from the population. That lets you place a higher density of plants up (or slightly overlapping) the edge of the bare soil...  Playing with the gamma is also useful for changing the shape of displacements at the edge of the mask.
« Last Edit: July 13, 2017, 06:59:16 AM by bigben »

Offline mhaze

  • Member
  • *
  • Posts: 3039
Re: add or pass through
« Reply #4 on: July 13, 2017, 08:34:38 AM »
Excellent! I've been trying to create a scene like that for years - it's harder than it looks.

Offline Dune

  • Member
  • *
  • Posts: 12389
  • Corkscrew Bird
    • www.ulco-art.nl
Re: add or pass through
« Reply #5 on: July 13, 2017, 09:30:38 AM »
Thanks guys. It takes quite some nodes indeed. And yes, I do use a lot of color adjusts to vary overlap and such. Also smooth step scalars, which behaves slightly different in certain circumstances.
In case you still haven't seen enough of my work: www.ulco-art.nl

Offline bigben

  • Member
  • *
  • Posts: 2120
  • The Long Stranger rides again
    • Tinkering with Terragen
Re: add or pass through
« Reply #6 on: July 13, 2017, 10:25:52 AM »
oooo... there's a step function... and a few others I haven't seen before  ;)

Offline bobbystahr

  • Member
  • *
  • Posts: 7637
  • Turn, and face the Strange Ch Ch Changes...D Bowie
Re: add or pass through
« Reply #7 on: July 13, 2017, 07:17:56 PM »
oooo... there's a step function... and a few others I haven't seen before  ;)

lotsa lil 'easter eggs' if you've been away a while....
something borrowed,
something Blue.
Ring out the Old.
Bring in the New

bobbystahr

Offline Dune

  • Member
  • *
  • Posts: 12389
  • Corkscrew Bird
    • www.ulco-art.nl
Re: add or pass through
« Reply #8 on: July 14, 2017, 07:07:37 AM »
Yes, TG4 is getting more complicated, but also more versatile with every update. I should have written that the other way round, with the first between brackets  ;)
In case you still haven't seen enough of my work: www.ulco-art.nl