Sub topic 2
Choosing a coordinate space: Generated, Object, UV, and others
Every procedural texture asks one question for each point on a surface: what is my position? The answer comes from a coordinate space, and the space you pick decides where the pattern sits, how big it is, and whether it follows the object when you move, scale, or deform it. Most "my noise looks wrong" problems are coordinate problems.
This chapter assumes you can navigate the Shader Editor, know that a material is a graph of nodes, know the main Principled BSDF inputs, and understand that UV coordinates are 2D while object positions are 3D.
How a texture gets its position
The Noise Texture and Voronoi Texture nodes are functions of a 3D point. They have a Vector input and return a value (and, for Noise, a colour) for that point. The Texture Coordinate node supplies the vector. Each of its outputs describes the same surface point in a different coordinate space.
If you leave a texture's Vector input unconnected, Blender uses Generated coordinates. A bare Noise Texture therefore already works, but you have implicitly chosen a coordinate space. Connecting a Texture Coordinate node makes that choice explicit.
The main coordinate spaces
| Output | Space | Dimensions | Follows object transform | Typical use |
|---|---|---|---|---|
| Generated | Object bounding box, remapped to 0 to 1 on each axis | 3D | Yes | Quick tests, procedural materials on a single object |
| Object | Local space, origin at the object origin, in local units | 3D | Yes | Predictable scale on any shape |
| UV | The active UV map, with Z equal to 0 | 2D | Yes | Image textures, anything needing unwrapped control |
| Normal | Surface normal in object space | 3D | Rotates with the object | Edge and orientation effects |
| Camera | Position relative to the camera | 3D | No | Effects tied to the view |
| Window | Screen position | 2D | No | Screen-space effects |
| Reflection | Reflection direction | 3D | No | Fake environment lookups |
"Follows object transform" means that if you move or rotate the object, the pattern moves with it and does not appear to swim across the surface. Generated, Object, and UV all pass this test. Camera, Window, and Reflection fail it on purpose, because they describe the view and not the object.
Generated
Generated coordinates run from 0 to 1 across the object's bounding box. They are computed from the mesh before modifiers change its shape, so an Array or Subdivision Surface modifier does not change them.
Their main property is that they normalize the object's size. A tall, thin plank has the same 0 to 1 range on every axis, so the pattern stretches to fit the box. A noise pattern that looks round on a cube looks like long streaks on a plank. This is the usual cause of stretched textures.
Generated coordinates also do not work well when the object changes shape through a modifier that moves the bounding box, such as Displace. The pattern can appear to shift as the shape changes.
Object
Object coordinates are the vertex positions in the object's own local space, in local units. A cube that spans -1 to 1 in local space passes values from -1 to 1 to the texture.
Two properties make Object space the reliable choice for most procedural work:
- The pattern has the same scale on every axis, with no stretching, whatever the object's proportions.
- Moving, rotating, or scaling the object in Object Mode carries the pattern with it, so the surface looks the same.
The catch is that applying the object's scale (Ctrl+A, then Scale) changes the local vertex positions. After you apply a scale of 3, the local coordinates are three times larger and the pattern becomes three times denser. The surface geometry looks unchanged but the texture does not. If you plan to apply scale, do it before you tune texture scale values.
UV
UV coordinates come from the active UV map. The output is a 2D position stored as a vector with Z equal to 0. That gives you three things to watch:
- A 3D texture sampled at Z equal to 0 shows only one flat slice of its volume. Noise and Voronoi still work, but they look less varied than in 3D, and the 4D noise dimension is not available through UV alone.
- The pattern follows the UV layout. Islands of different sizes get different pattern scales, and stretched UVs stretch the pattern.
- At seams, where neighbouring UV islands do not match, the pattern is cut and visible lines can appear. Procedural patterns do not tile across seams the way a seamless image can.
Use UV when you must control the placement on the surface, for example to line a pattern up with an image texture or a decal. For purely procedural surfaces, Object space avoids these problems.
Normal, Camera, Window, and Reflection
- Normal gives the surface normal in object space. It is sometimes used to vary a texture by facing direction, but it is not a position, so a noise driven by it varies only by orientation.
- Camera is position relative to the camera. The pattern stays fixed to the view while the object moves through it.
- Window is 2D screen position. Use it for effects that should look painted on the screen.
- Reflection is the mirrored view direction. It is mainly used to look up an environment-like texture.
None of these anchor a pattern to a surface. If an object looks as if it is moving through a textured fog when it moves, you used one of them.
Using another object as the coordinate source
The Texture Coordinate node has an Object field that makes the Object output use another object's local space. An Empty is the common choice. Moving, rotating, or scaling the Empty then moves, rotates, or scales the pattern without changing the mesh. This also lets several objects share one pattern: give them the same Empty, and the pattern flows continuously across them, as if they were cut from one block of material.
The From Instancer option helps with instanced objects. It uses the coordinates of the instancer, so every instance picks up a different part of the texture and the copies do not look identical.
Building the same graph in three spaces
The script below builds three materials that differ only in the coordinate output. Run it in Blender's Scripting workspace, then assign each material to the same object and compare.
import bpy
def build_noise_material(name, coord_output):
mat = bpy.data.materials.new(name)
mat.use_nodes = True
nodes = mat.node_tree.nodes
links = mat.node_tree.links
bsdf = nodes["Principled BSDF"]
coord = nodes.new("ShaderNodeTexCoord")
mapping = nodes.new("ShaderNodeMapping")
noise = nodes.new("ShaderNodeTexNoise")
noise.inputs["Scale"].default_value = 5.0
links.new(coord.outputs[coord_output], mapping.inputs["Vector"])
links.new(mapping.outputs["Vector"], noise.inputs["Vector"])
links.new(noise.outputs["Fac"], bsdf.inputs["Base Color"])
return mat
materials = {}
for space in ("Generated", "Object", "UV"):
materials[space] = build_noise_material(f"Noise_{space}", space)
obj = bpy.context.active_object
if obj is not None and obj.type == 'MESH':
if obj.data.materials:
obj.data.materials[0] = materials["Object"]
else:
obj.data.materials.append(materials["Object"])To compare, change materials["Object"] to materials["Generated"] or materials["UV"], or swap the material in the Material Properties panel. Try this on a cube scaled to (1, 1, 4) in Object Mode:
- With Generated, the noise features look stretched along the long axis, because the bounding box maps the 0 to 1 range onto a longer shape.
- With Object, the noise features keep the same size on all axes.
- With UV, the result depends on the unwrap. The default cube unwrap gives a flat pattern on each face with no relation to the neighbouring faces.
The Mapping node in the script is left at its defaults. It does not change the coordinates, but it is where you adjust location, rotation, and scale later without touching the texture's own Scale value.
Common errors
- Stretched pattern. You are using Generated on a non-cubic object. Switch to Object, or compensate with non-uniform Mapping scale.
- Pattern changes density after applying scale. Object coordinates are local, so applying scale changes them. Re-tune the Scale after applying, or apply scale first.
- Flat, repeating look or visible seams. You are using UV with a 3D texture. Switch to Object, or give the UV map more careful unwrapping.
- Pattern swims when the object moves. You are using Camera, Window, or Reflection. Switch to an object-bound space.
- Different objects have mismatched patterns. Each object has its own origin and bounding box. Share one Empty through the Object field, or use World-aligned positions from a Geometry node if you need world space.
- Texture seems to disappear when you set Scale very high. Detail becomes finer than a pixel, and the render averages it to a flat grey. This is a scale problem, not a coordinate problem, but it often looks like a missing texture.
Choosing a space: a quick procedure
- If the pattern should be tied to the surface and look the same on any shape, use Object.
- If you want a quick result that fits the object's proportions, and the object is roughly cubic, Generated is fine.
- If you must align the pattern with an unwrapped layout or an image, use UV.
- If several objects must share one continuous pattern, use Object with a shared Empty.
- If the effect depends on the view and not the object, use Camera or Window.
Exercise
A procedural wood-grain material uses a Noise Texture driven by Generated coordinates on a long, thin plank. The grain looks smeared along the length of the plank. Name the cause and give two ways to fix it.
Show answer
Generated coordinates are normalized to the bounding box, so the 0 to 1 range is stretched along the plank's long axis and the noise is stretched with it. Fix it by switching the Texture Coordinate output to Object, which keeps the same scale on every axis. Alternatively, keep Generated and compensate in the Mapping node by increasing the scale on the long axis so the pattern repeats more often along it.
Exercise
You tuned a rock material using Object coordinates and a Noise Scale of 4. You then applied the object's scale of 2 with Ctrl+A, and the rock looks twice as fine-grained. Why, and what Noise Scale restores the original look?
Show answer
Applying scale rewrites the vertex positions in local space, so the Object coordinates are now twice as large. The same Scale of 4 now samples the noise at twice the frequency over the same visible surface. Halving the Noise Scale to 2 restores the original appearance.