Sub topic 8
Breaking Up Regularity by Warping Coordinates with Noise
This chapter assumes that you can navigate Blender’s Shader Editor, create a material, and connect nodes to a Principled BSDF. You should also understand the difference between UV coordinates and 3D coordinates.
What coordinate warping does
A procedural texture evaluates a value at each coordinate on a surface. A Voronoi Texture normally receives a regular coordinate grid, so its cells often look evenly spaced and artificial.
Coordinate warping changes the coordinates before they reach the main texture. A Noise Texture produces changing values across space. Those values offset the coordinates sent to a Voronoi Texture, bending and stretching its cells.
The basic graph is:
The important connection is from the Noise Texture’s Color output to the Voronoi Texture’s Vector input. The colour is an RGB vector, so it can replace the original coordinate vector.
Building the warped pattern
- Add a Texture Coordinate node.
- Connect its Object output to the Noise Texture’s Vector input.
- Set the Noise Texture scale to a low or medium value, such as
2.0to4.0. - Connect the Noise Texture’s Color output to the Voronoi Texture’s Vector input.
- Set the Voronoi scale to control the number of cells.
- Connect the Voronoi Distance or Color output to the Principled BSDF’s Base Color.
The Noise scale controls the size of the distortion. The Voronoi scale controls the size of the cells. If the noise scale is much higher than the Voronoi scale, the cell borders can become sharply twisted. If it is too low, the result may look almost regular.
| Setting | Lower value | Higher value |
|---|---|---|
| Noise Scale | Broad, smooth distortion | Small, busy distortion |
| Noise Detail | Simple variation | More fine variation |
| Voronoi Scale | Large cells | Small cells |
| Distortion amount | Subtle warping | Strongly bent cells |
Controlling the warp
The Noise Texture’s Detail adds smaller features to the noise. Roughness controls how much those features affect the result. Lacunarity controls the frequency change between noise levels. These settings are useful when the distortion needs a particular character.
For rock, use moderate detail and roughness. For cracked mud, use broad distortion followed by a high Voronoi scale. For a cellular biological pattern, use gentle distortion so the cells remain readable.
A direct Color-to-Vector connection can also change the coordinate range. If the pattern becomes compressed or shifted, insert a Mapping node before the Noise Texture, or use Vector Math nodes to scale and add vectors. A stronger node setup is:
- Original coordinates provide the base position.
- Noise Color is multiplied by a small value.
- The scaled noise vector is added to the original position.
- The resulting vector feeds the Voronoi Texture.
This preserves the original coordinate structure while adding a controlled offset.
Creating the graph with Python
Run this script in Blender’s Scripting workspace. It creates a material where Noise Color drives the Voronoi coordinates.
import bpy
material = bpy.data.materials.new("WarpedVoronoi")
material.use_nodes = True
nodes = material.node_tree.nodes
links = material.node_tree.links
nodes.clear()
output = nodes.new("ShaderNodeOutputMaterial")
bsdf = nodes.new("ShaderNodeBsdfPrincipled")
coordinates = nodes.new("ShaderNodeTexCoord")
noise = nodes.new("ShaderNodeTexNoise")
voronoi = nodes.new("ShaderNodeTexVoronoi")
noise.inputs["Scale"].default_value = 3.0
noise.inputs["Detail"].default_value = 4.0
noise.inputs["Roughness"].default_value = 0.65
voronoi.inputs["Scale"].default_value = 5.0
links.new(coordinates.outputs["Object"], noise.inputs["Vector"])
links.new(noise.outputs["Color"], voronoi.inputs["Vector"])
links.new(voronoi.outputs["Color"], bsdf.inputs["Base Color"])
links.new(bsdf.outputs["BSDF"], output.inputs["Surface"])
bpy.context.object.active_material = materialTroubleshooting
- The pattern looks regular: Increase the noise influence or reduce the noise scale.
- The cells disappear: Reduce the warp amount or lower the noise detail.
- The texture stretches across the object: Check the coordinate space and object scale.
- The pattern changes after applying transforms: Use Object coordinates consistently, or apply transforms before tuning the material.
- The result has harsh bands: Use smooth noise settings and avoid an extremely narrow Colour Ramp.
Exercise
A Voronoi pattern still looks like a regular grid after you connect a Noise Texture. What should you check first?
Show answer
Check that the Noise Color output is connected to the Voronoi Vector input, then increase the noise influence or adjust the Noise Scale so the coordinate changes are visible.