Author Topic: I discovered something interesting....  (Read 258 times)

Offline digitalguru

  • Member
  • *
  • Posts: 425
I discovered something interesting....
« on: November 06, 2018, 09:17:40 PM »
... though I'm not entirely sure why it's working  :P

I've got a stack of fake stones shaders piped into a network via a surface shader, but some of the stones in shadowed areas look unnaturally dark like there are NaN's in the color values or something:

So I thought I'd try to split the displacement and the color so I could clamp the black values and try to fix it, but the fake stione shaders are contributing both the dsp and color so I thought I'd pipe the output through two merge shaders, each Mix to A set to 0 and Merge Color turned off on one and Merge Displacement turned off on the other (not even sure if that would work!)

When I plugged the color merged only node into my surface layer - it fixed the dark stones:


It's a complete fluke and I don't know why it's fixing that, but I'm not complaining :)

anyway here's the merge node that is the last node in the tree plugged into the surface layer





« Last Edit: November 06, 2018, 09:28:32 PM by digitalguru »

Offline digitalguru

  • Member
  • *
  • Posts: 425
Re: I discovered something interesting....
« Reply #1 on: November 06, 2018, 10:09:55 PM »
oh well, don't think it was that much of a discovery after all...

thought I still had some variation of color in the stones, but I've lost a lot of that - think it's more down to find a good median point for the base stone color and balancing that with the color variation

look likes it's easy to push the color values into an area that reacts unnaturally in the shadowed areas


Offline WASasquatch

  • Member
  • *
  • Posts: 3136
  • The Homeless Landscape Artist
Re: I discovered something interesting....
« Reply #2 on: November 06, 2018, 11:41:45 PM »
This is really interesting, and I think explains some issues I've had using the colour variation where I've just opted out and done a surface layer masked by the scalar of the stones with the white point set to 0.

But this has me thinking, could you capture the stone colours with Colour to Vector and than clamp/augment them with a duplicated fake stone shader, and than pipe that as the surface of the second (original) fake stones shader?

Art can be a window into the soul

Offline WASasquatch

  • Member
  • *
  • Posts: 3136
  • The Homeless Landscape Artist
Re: I discovered something interesting....
« Reply #3 on: November 06, 2018, 11:46:48 PM »
Example of what I was talking about if I didn't make sense (I know I struggle explaining myself)

« Last Edit: November 06, 2018, 11:48:45 PM by WASasquatch »
Art can be a window into the soul

Offline Matt

  • Planetside Staff
  • *
  • Posts: 3538
  • I'm the crazy one
Re: I discovered something interesting....
« Reply #4 on: November 07, 2018, 02:27:53 AM »
The "colour to vector" is redundant in this case. The clamp colour node expects an input of colour, not vector. It can get the colour from the shader, so just pipe the shader in.
Just because milk is white doesn't mean that clouds are made of milk.

Offline WASasquatch

  • Member
  • *
  • Posts: 3136
  • The Homeless Landscape Artist
Re: I discovered something interesting....
« Reply #5 on: November 07, 2018, 03:04:38 AM »
The "colour to vector" is redundant in this case. The clamp colour node expects an input of colour, not vector. It can get the colour from the shader, so just pipe the shader in.

I continue to forget this, yet, I literally run into it all the time when manipulating colours and forgetting I need to add a surface layer to feed displacement through the Main Input and do colouring with the Colour Input or Child Input.

*Repeats in head*
Art can be a window into the soul