Why doesn't 0.5 float equal 50% grey?
Posted: Sun Dec 18, 2022 6:14 am
Here's my issue - I'm trying to create a horizontal 4 step gradient, with 0.25 / 0.5 / 0.75 / 1 float values. Managed to do it, but when I solo the gradient node, and pick its values from the LV (using the colorpicker), i'm getting 0.254902 instaed of 0.25, 0.494118 instead of 0.5 and 0.741176 instead of 0.75. Is there a reason for that? The node is solo'd so there's no light affecting it
Here's why I'm asking and what I'm trying to get-
I want to use the float values from the gradient to move another texture (vertical black and white stripes) on its X axis, with each step of the gradient moving according to its float value. I'm using the Distorted Mesh UV project node to do that, plugging the gradient to the Translation channel. The vertical b/w stripes should then form a zigzag pattern.
The gradient looks ok (4 strips of grey values getting brighter)
The final texture seems to *almost* form a zigzag. But it just doesn't align right. The movement doesn't seem to move linearly but more exponentially, and if I try to play with the Translation values in the pjorect node the texture jumps forward before aligning right. I can't figure out what's the reason.
Is the gradient the problem? Is the Distorted Mesh UVs not the right way to do it?
Here's how it turns out (tried to manually move it around for hours and it jumps around and never aligns) - also, attached the project file
Here's why I'm asking and what I'm trying to get-
I want to use the float values from the gradient to move another texture (vertical black and white stripes) on its X axis, with each step of the gradient moving according to its float value. I'm using the Distorted Mesh UV project node to do that, plugging the gradient to the Translation channel. The vertical b/w stripes should then form a zigzag pattern.
The gradient looks ok (4 strips of grey values getting brighter)
The final texture seems to *almost* form a zigzag. But it just doesn't align right. The movement doesn't seem to move linearly but more exponentially, and if I try to play with the Translation values in the pjorect node the texture jumps forward before aligning right. I can't figure out what's the reason.
Is the gradient the problem? Is the Distorted Mesh UVs not the right way to do it?
Here's how it turns out (tried to manually move it around for hours and it jumps around and never aligns) - also, attached the project file