7
$\begingroup$

I created this texture in Photoshop. It's 4096x4096 pixels, Grayscale, 16-bit, PNG. At 1.8MB the file size is reasonable, but I feel like if I could create this procedurally with nodes it would be considerably more memory-efficient, and possibly even more accurate. (I do get small artifacts when driving a ColorRamp with this texture - albeit they're only noticeable when zoomed in close.)

PNG image texture, circular clockwise rotating B&W gradient, 4096x4096 pixels, Grayscale, 16-bit, 1.8MB

This is the sort of case where I usually give up and use textures, but I thought someone who is good with math might be willing to have a go at this... :-)

Furthermore, I just noticed that when this is fed into an equally-spaced 12-band ColorRamp, the bands in the mapped result are not equally spaced. So my texture doesn't serve as a very accurate map. This may be due to color space issues, and I will try to dig further in search of the cause. But this is all the more reason to try for a more precise procedural solution.

Above: The first and last bands of this color ramp are visibly wider than the others, indicating that the gradient is not distributed linearly around the circular path.

$\endgroup$
11
$\begingroup$

Quite an easy thing to do procedurally, since radial gradient is already there in the Gradient Texture node, just select Radial mode and use Object space for the centre of the texture to be at the origin of the plane.

enter image description here

$\endgroup$
2
  • $\begingroup$ Wow! So easy I feel foolish for asking now! I guess I never tried Radial with Object space before. Well that is perfect and solves everything for me. Thanks! $\endgroup$
    – Mentalist
    Aug 27 '21 at 7:16
  • $\begingroup$ Doesn't seem foolish to me :D I mean, I certainly did not know it's a thing or how one would call it before I found out about the node just by exploring. $\endgroup$ Aug 27 '21 at 7:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.