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$
  • $\begingroup$ twirl or radial? it's not clear $\endgroup$ – Sanbaldo Jul 23 at 16:25
  • $\begingroup$ Sorry. I would like to be Radial like in the image i.imgur.com/4sJZ7mK.png $\endgroup$ – InamuraJIN Jul 23 at 16:36
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.

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

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.