TransWikia.com

Is it possible to create a Voronoi RadialLine?

Blender Asked by InamuraJIN on December 14, 2021

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

One 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.

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.

Answered by Robin Betts on December 14, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP