I was just experimenting with a few nodes. I would like to preface I am new to nodes in general. Here is my node setup:
Now, my intuition of my node setup is as follows :
For every pixel on the mesh, calculate its length to the center. Passed it to a color ramp. Now it bounded from 0-1 radians, points at the very center have a length of 0, hence are 0, points further out are one, or white. Convert the radian values to degrees Since the values range from 0 to 1, these degree values will range from 0 to 57.3 degrees roughly
Now this is passed into sine (multiply is set to 1 for now, so it doesnt change anything). Here is what I think SHOULD happen:
Pixels where the distance to the center is 0 should be thus shaded black as sin 0 is 0. Pixels where distance to center is 1 would be somewhat white. Pixels roughly halfway between the edges of the plane and center would be greyish, since that would be 0.5 radians roughly which is approx = sin 30 which would be 1/2.
But that is not what we see happening here. Sure, the very center is black as expected, but rather than seeing the colors range from black at the center to somewhat white at the edges where distance is 1, we it go from 0 to 1 or black to white MULTIPLE times. How does this even happen? Also, why does it abruptly go from black to white, and white to black?
Assuming white is the peak of the sine wave, it would slowly decrease down to black. But here, at the edge of a white ring, it immediately jumps down to black. No smooth gradient
So to sum it up: 1)Why do I see multiple bands of black and white here 2) Why is there no smooth gradient between black and white rings? Is my intuition wrong somewhere?