Sub topic 13
Troubleshooting stretched, banded, or slow procedural materials
This chapter assumes you can build a node graph in the Shader Editor and know what Texture Coordinate, Mapping, Noise Texture, Voronoi Texture, Colour Ramp, and Bump do. It also assumes you know the difference between UV and 3D coordinates. The aim is to move from "something looks wrong" to the node that causes it, using a fixed order of checks.
A diagnostic order
Procedural materials fail in a small number of ways. Most problems fall into three groups: wrong placement or scale, wrong value remapping, and too much computation. Check them in that order. A stretched pattern is almost always a coordinate problem, so tuning Noise settings will not fix it.
Stretched patterns
Stretching means the texture is sampled with unequal scale along different axes. Look at the coordinate source first.
| Coordinate output | Typical stretching cause | Fix |
|---|---|---|
| Generated | Normalised to the bounding box of the mesh, so a long thin object squashes the pattern into its shape | Use Object, or scale the Mapping node per axis to compensate |
| Object | Unapplied non-uniform object scale (for example 1, 1, 3) stretches the texture along Z | Apply scale with Ctrl+A, or compensate in Mapping |
| UV | Stretched UV islands, or islands packed at very different sizes | Unwrap again, then check the result with a UV grid texture |
| Camera, Window | Pattern stays fixed to the screen and slides during animation | Use these only for effects that need screen-fixed patterns |
The Object output is in the object's local space, so it does not include the object's own scale. A cube scaled to 1, 1, 3 shows a Noise Texture stretched three times along Z. This is the most common cause of "my noise looks like wood grain". Applying the scale makes the geometry larger in the mesh data, so the same Object coordinates then cover a larger range and the pattern is uniform. After applying, the pattern is also smaller on screen if the mesh grew, so adjust Scale.
Stretching can also be deliberate. To get wood or brushed-metal streaks, scale the Mapping node strongly on one axis. If you do this by accident, check the Mapping node's Scale vector. A value like 1, 1, 0.2 stretches everything.
Which Scale should you change?
Two scale controls exist: the Mapping node's Scale and the texture node's own Scale input. The texture's Scale multiplies the incoming vector uniformly. Mapping scale can differ per axis. Keep a convention. Use Mapping for placement and per-axis stretching, and use the texture's Scale for overall pattern size. Mixing both makes later edits hard to predict, because the two multiply together.
Note that a larger Scale value gives a smaller pattern. This surprises many learners. Scale is a frequency, so doubling it packs twice as many features into the same space.
Wrong size after changing objects
A pattern that looked right on a default cube can be wrong on a 20 m floor plane. Object coordinates are in Blender units, so a Noise Scale of 5 gives about five blobs per unit. On a large object the blobs are tiny and look like fine grain, or like flat grey if viewed from far away. Fix this by lowering Scale or by scaling the Mapping node, not by editing the mesh.
Very large coordinate values cause a second problem. Far from the origin, or with a very high Scale such as 5000, floating-point precision drops. The noise then shows blocky or jittery patches. If you see this, reduce the Scale and move detail into a second, smaller-scale layer instead.
Banding and hard steps
Banding is visible stepping where you expect a smooth gradient. The usual causes are these:
- The Colour Ramp uses Constant interpolation. Each stop then produces a hard band. Switch to Linear, Ease, or B-Spline.
- The ramp stops are very close together, as in the crack example from the Voronoi chapter. This is intended for masks, but it also makes a steep slope that bump and displacement turn into a visible ridge.
- Bump is driven by a very sharp mask. The Bump node estimates a slope from neighbouring samples, so a near-step edge gives a harsh line. Blur the transition by widening the ramp, or set the Bump Distance lower.
- Displacement is applied to a mesh that has too few vertices. The surface can only move at vertices, so you see faceting. Add a Subdivision Surface modifier, or in Cycles use adaptive subdivision where your Blender version supports it.
- The final image has 8-bit gradients on a dark smooth surface. Enable dithering in Output Properties under Post Processing. A small amount of added noise hides the contours.
- The Colour Ramp output goes into a Colour socket that expects a different range. A ramp output used as Roughness is read as a single value, which is the average of its colour channels. If you wanted a specific grey, check the stops.
Before blaming the ramp, plug the node you suspect into an Emission shader output temporarily, or use the Viewport Shading Material Preview. Seeing the raw value makes it clear whether the banding is in the pattern or in the bump or displacement step.
Visible tiling or repetition
Noise Texture and Voronoi do not tile in the way images do, so tiling normally means you are seeing a UV island repeated across a mesh, or an Image Texture mixed in. If a procedural material shows repetition, check that Vector input comes from Object or Generated and not from UV islands that overlap. Overlapping islands copy the same pattern onto two faces.
Slow materials
Cost scales with how many texture samples run per shading point, and with how expensive each sample is. These are the main contributors, from cheapest to fix to most expensive.
- Detail. Noise Texture computes one octave for each unit of Detail, so Detail 15 is far more work than Detail 3. Beyond about 8 to 10, extra octaves are smaller than a pixel in most renders and add cost but no visible change. Check by lowering Detail and comparing.
- Dimensions. The 4D mode for Noise and Voronoi costs more than 3D. Use 4D only when you animate the W input.
- Voronoi modes. F1 and F2 are cheaper than Smooth F1 and Distance to Edge, which check more neighbouring cells. The Minkowski metric costs more than Euclidean. Pick the cheapest mode that gives the look.
- Warping chains. Each Noise used for warping costs a full sample. A warp that feeds a Voronoi that feeds another Noise multiplies the cost.
- Duplicate nodes. Two identical Noise nodes with the same inputs compute twice. Connect one output to both targets.
- Bump nodes. Bump evaluates the height graph several times to estimate slope, so every texture before Bump runs again. Bump in the middle of a graph costs more than a single height path.
- Displacement. True displacement requires a dense mesh and extra memory, so it is the most expensive effect here. Use bump when the silhouette does not need to change.
Compile time is a separate problem. After you edit a large graph, EEVEE recompiles the shader, and Cycles in the viewport rebuilds its kernel data. A pause after each edit is normal for large graphs and does not mean the render itself is slow. To work faster, disconnect heavy branches while you set up the rest, and use lower viewport sample counts.
When a material stays too heavy, baking is the standard fix. Bake the combined result into image textures (Base Color, Roughness, Normal) with Cycles, then replace the graph with Image Texture nodes. You lose the ability to change the scale freely, so keep the procedural version in a separate material for later edits.
Checking a scene with Python
Several of the problems above can be found by script, which helps when a file has dozens of materials. This script reports meshes with unapplied scale, and Noise or Voronoi nodes that are likely expensive. It only reads data and changes nothing.
import bpy
DETAIL_LIMIT = 10.0
for obj in bpy.data.objects:
if obj.type == 'MESH':
sx, sy, sz = obj.scale
if not (abs(sx - sy) < 1e-4 and abs(sy - sz) < 1e-4):
print(f"Non-uniform scale on {obj.name}: {tuple(obj.scale)}")
for mat in bpy.data.materials:
if not mat.use_nodes or mat.node_tree is None:
continue
for node in mat.node_tree.nodes:
if node.bl_idname == "ShaderNodeTexNoise":
detail = node.inputs["Detail"].default_value
if detail > DETAIL_LIMIT:
print(f"{mat.name}/{node.name}: Detail {detail}")
if node.noise_dimensions == '4D':
print(f"{mat.name}/{node.name}: 4D noise")
elif node.bl_idname == "ShaderNodeTexVoronoi":
if node.feature in {'SMOOTH_F1', 'DISTANCE_TO_EDGE'}:
print(f"{mat.name}/{node.name}: {node.feature}")
if node.distance == 'MINKOWSKI':
print(f"{mat.name}/{node.name}: Minkowski metric")Run it from the Scripting workspace. A node whose Detail input is linked to another node still reports its stored default value, so treat the output as a list of places to look and not as proof.
A short checklist
- Is the coordinate output right for this object, and is the object scale applied?
- Is the Mapping scale uniform unless you want stretching?
- Is the pattern size set in one place only?
- Does the Colour Ramp use an interpolation that fits the purpose, and are stop positions sensible?
- Does the mesh have enough vertices for the displacement?
- Are Detail, dimensions, and Voronoi mode as cheap as the look allows?
- Can the material be baked if it is still too slow?
Exercise
A plane scaled to 10, 10, 1 shows Noise Texture streaks along its X and Y directions, but a default 2 m plane showed round blobs. The Texture Coordinate node uses Generated. Name two different fixes and one thing to check afterwards.
Show answer
Switch the coordinate output to Object, or apply the scale with Ctrl+A so Generated coordinates and the mesh match, or compensate in the Mapping node by scaling the vector down on X and Y. Afterwards, check the pattern size, because changing the coordinate space or applying scale changes how many blobs appear per Blender unit, so the texture Scale value may need to change.
Exercise
A cracked-earth material built from Distance to Edge, a narrow ramp, and a Bump node shows jagged ridges when rendered close up, and renders slowly. List two changes that address the ridges and two that address the speed.
Show answer
For the ridges, widen the ramp's stop range so the crack edge has a softer slope, and lower the Bump Distance or Strength. Adding mesh subdivision helps if displacement is used. For speed, replace Distance to Edge with a cheaper Voronoi feature if the look allows, lower Detail on any Noise Texture feeding the height, remove duplicate nodes, or bake the result to image textures.