I could make something similar to Swirl, but I want to make a line towards the center of each Voronoi! Would it be possible for me to make it?
1 Answer
Here, working in Object Space. The Position output of the Voronoi node is the location of the feature point from which the attributes (distance, etc) of the local cell are measured. If you subtract it from the shading point, you get the vector from the feature point to the shading point .. a mini UV map for each cell, with its origin at the feature point.
If you Nornalize those coordinates, you get a measure of direction from the cell origin expressed as XY (all the points in the same direction from the cell origin will all have the same unit vector), so that can be used for radial effects. Here, the vector is used to look up into a Noise texture.
Edit: Working in 3D, and normalizing at every stage, effectively ensures all the points used in the direction calculations are projected onto the unit sphere, towards or away from its center:
..and so straight lines become arcs:
(but this will work only on a sphere, not on any curved surface, and, to work in Object Space, the origin of your sphere-object should be at its center)
Edit 2:
You can animate the effect by scaling the sphere onto which the feature-point is projected:
With this sort of result:
This is the simplest way. To get more specific effects, you may have to extract, say, the Normal Z to work with, which would be a bigger tree.
-
1$\begingroup$ Thank you! That's pretty close to what I'm looking for! But when we apply it to the sphere, the sides seem to stretch vertically. I don't know what the solution is. i.imgur.com/QHSP6Hp.png $\endgroup$ Commented Jul 24, 2020 at 2:32
-
$\begingroup$ It looks a little different from that picture...imgur.com/o5VN5il $\endgroup$ Commented Jul 28, 2020 at 4:40
-
$\begingroup$ i.imgur.com/CXS57Fq.mp4 I want to adjust the density, like in this video $\endgroup$ Commented Jul 28, 2020 at 9:21
-
1
-
1$\begingroup$ I just learned of this feature! I was wondering if this feature was missing! Thank you! $\endgroup$ Commented Jul 28, 2020 at 12:39