4
$\begingroup$

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? enter image description here

Current node configuration enter image description here

I want the texture to look like this. enter image description here

$\endgroup$
2
  • $\begingroup$ twirl or radial? it's not clear $\endgroup$
    – Sanbaldo
    Commented Jul 23, 2020 at 16:25
  • $\begingroup$ Sorry. I would like to be Radial like in the image i.imgur.com/4sJZ7mK.png $\endgroup$
    – InamuraJIN
    Commented Jul 23, 2020 at 16:36

1 Answer 1

6
$\begingroup$

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.

enter image description here

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.

enter image description here

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:

enter image description here

..and so straight lines become arcs:

enter image description here

(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:

enter image description here

With this sort of result:

enter image description here

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.

$\endgroup$
7
  • 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$
    – InamuraJIN
    Commented Jul 24, 2020 at 2:32
  • $\begingroup$ It looks a little different from that picture...imgur.com/o5VN5il $\endgroup$
    – InamuraJIN
    Commented Jul 28, 2020 at 4:40
  • $\begingroup$ i.imgur.com/CXS57Fq.mp4 I want to adjust the density, like in this video $\endgroup$
    – InamuraJIN
    Commented Jul 28, 2020 at 9:21
  • 1
    $\begingroup$ It's perfect! Thank you!!!!! $\endgroup$
    – InamuraJIN
    Commented Jul 28, 2020 at 12:03
  • 1
    $\begingroup$ I just learned of this feature! I was wondering if this feature was missing! Thank you! $\endgroup$
    – InamuraJIN
    Commented Jul 28, 2020 at 12:39

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .