Page 2 of 2
Re: How to use compare node?
Posted: Mon Nov 13, 2017 9:04 pm
by aoktar
thanulee wrote:Thanks, and that should be in c4d manual as well with examples. Still i dont get it though.
How a>b translates in terms of bigger? RGB values? Image scale? can u give me an example of how this is useful? cheers
Improved manual is on progress.
Btw It's working on pixel based. It will use pixel of connected texture which is connected to pin(If A<B) when A pixel value is bigger than B pixel value at any point. And reverse logic for other pin(If A>=B).
Re: How to use compare node?
Posted: Mon Nov 13, 2017 9:12 pm
by thanulee
Thanks alot mate. I ll try create something with it and see if i have more questions lol
Re: How to use compare node?
Posted: Mon Nov 13, 2017 9:17 pm
by niestudio
Hi Thanulee,
not sure if this is a practical example for you, but it shows the mechanics of the node.
A is an animated float texture from 0.4 to 0.6 over 13 frames
B is a static float at 0.5
if A is less than B - diffuse is red
if A is greater than or equal to B - diffuse is blue
A float value changes over time, so:
on frame 6 it's 0.488502 (less than 0.5) stays red
on frame 7 it's 0.511498 (greater than 0.5) now the color changes.
Re: How to use compare node?
Posted: Mon Nov 13, 2017 9:23 pm
by thanulee
Many thanks! i ll check it 2morrow!!
Re: How to use compare node?
Posted: Wed May 29, 2019 5:53 pm
by SSmolak
I have grayscaled mask of planks and I want to set exactly gray value that can be driven by comparison node but there is no equal values A=B but A>=B . How to get A=B ?
EDIT : I get this to work by gradient but anyway grayscale masking is limited if there is no more flexible logic node component with A=B input included too.