I would like to make a procedural image like this to use as a mask in a shader:
As of right now, I am loading this image in from disk, but I would really like to use this sort of image without relying on a file.
I know this should be super simple to do, but I don’t know where to start. Any help would be greatly appreciated!
with a simple spherical gradient and some color ramp for colors
see this
https://blenderartists.org/t/iris/1145524
happy bl
just tested link and it works for me !
but this is more for a polar pattern then a spherical one
will be back in a few minutes!
happy bl
BenMu
November 17, 2019, 2:09pm
6
See here: Cycles based blended fading circle (radial gradient) how to create ?
To archieve the image you desire, you just have to invert the result. Use a colorramp after that to control the transition between black and white.
EDIT: Damn, I was too late I guess
Excellent, @LazyVirus ! That’s perfect.
Thanks everybody for your suggestions!
CarlG
(CarlG)
November 17, 2019, 5:18pm
11
In 2.81, we now have a Distance mode in Vector maths, so for a UV coordinate you could just do 1-Distance(UV,[0.5, 0.5,0]).
1 Like
@CarlG
seem a new way of doing things and interesting if you use UV
got some nodes example for this new nodes set up ?
thanks
happy bl
CarlG
(CarlG)
November 17, 2019, 9:50pm
13
No, not in a while, rendering out camera views for a project which will take some time.
But everything is there for something with the most basic understanding of nodes and coords.
Make a plane, you get the UVs for free. Then it’s just measuring the distance between the location and the [0.5, 0.5] point (center offset) of the UV.
have not use that one and still not really working with 2.81
waiting for it to come out officially!
can you nodes set up
thanks
happy bl