Author Topic: Having problems with negative values... bug?  (Read 1673 times)

Hi there,
I just wrote a simple utility to remap the HSL node to photoshop's Hue/Saturation/Value parameters.
You can find it here

Now, if I substitute the inputColor node directly inside of, everything works fine.
But, as soon as I instantiate it in another graph, negative values always appear to be broken.
Is it a bug, or am I doing something wrong?


P.S. Forgive some redundant nodes in the functions... some of them are there for debug purposes.

I've updated the link with the fixed
Last Edit: August 04, 2015, 09:38:44 am

Negative integers are not very well supported...
Using float instead will solve the problem.

You can set the input parameter step to 1 to get rid of the floating point value.
Product Manager - Allegorithmic

Hi Nicolas,

Thank you for your reply.
I've updated the above substance using floats and it works :)
Now, I think that this is something should be fixed, or limited in a way.
Perhaps if it is not possible to fix it, just limit integers parameters to positive values only or better document the issue?

Thanks again for your help!