Sub topic 2
Choosing a Coordinate Space: Generated, Object, UV, and Others
This chapter assumes you can navigate Blender’s Shader Editor, create a material, and use a Principled BSDF node. You should also know that a procedural texture calculates a value from coordinates. The same Noise Texture can look completely different when it receives different coordinates.
Why coordinates matter
A texture node does not automatically know where a point is on a model. The Texture Coordinate node supplies that information as a vector. A vector is a group of numbers, usually three values for a 3D position.
The coordinate space determines how the pattern is placed on the surface:
- Generated coordinates fit the object’s bounding box. They usually range from 0 to 1.
- Object coordinates follow an object’s local coordinate system. You can also use another object as the coordinate source.
- UV coordinates are manually arranged 2D positions stored on the mesh.
- Normal coordinates describe the direction each surface faces.
- Camera coordinates are based on the active camera.
- Window coordinates are based on the rendered image.
- Reflection coordinates follow a reflection direction and are useful for environment-style effects.
Generated versus Object coordinates
Generated coordinates are convenient for quick 3D materials. They require no UV unwrap. A Noise Texture connected to Generated coordinates produces a pattern that fits the object’s current bounds.
This convenience has a cost. If two objects have different dimensions, the same Noise settings can produce different apparent scales. Applying a non-uniform scale or changing the object’s proportions can also alter the pattern.
Object coordinates are tied to an object’s local space. They are useful when the pattern should align with the object’s axes or remain consistent across several objects that share a coordinate reference. The object’s rotation and scale affect how the coordinates relate to the scene.
A Mapping node between the coordinate output and the texture gives you another control point. Its Scale input changes the frequency of the pattern, while Location and Rotation change its placement and orientation.
UV coordinates for controlled placement
UV coordinates are 2D coordinates assigned to the mesh by a UV unwrap. They let you place a texture deliberately. Use UVs when a logo, painted region, or image texture must appear at a specific location.
UVs can also drive procedural textures. However, stretching in the UV layout stretches the procedural pattern. Seams can create visible discontinuities, especially with high-contrast masks.
For object-wide 3D effects such as marble, smoke-like variation, or rock grain, Generated or Object coordinates are often simpler. For surface designs that must follow an artist-created layout, UV coordinates are usually the better choice.
| Coordinate output | Best use | Common problem |
|---|---|---|
| Generated | Fast object-space materials without UVs | Pattern scale changes with object proportions |
| Object | Consistent alignment with local or reference object space | Transform changes can affect placement |
| UV | Deliberate 2D placement and image textures | Stretching and seams |
| Normal | Direction-based masks and stylized shading | Not a position, so patterns may repeat by direction |
Test coordinate outputs with Python
This script creates a material on the active object. Change COORDINATE to "Generated", "Object", or "UV" and compare the result.
import bpy
obj = bpy.context.object
if obj is None:
raise RuntimeError("Select a mesh object before running this script.")
COORDINATE = "Generated"
material = bpy.data.materials.new("CoordinateTest")
material.use_nodes = True
obj.data.materials.clear()
obj.data.materials.append(material)
nodes = material.node_tree.nodes
links = material.node_tree.links
nodes.clear()
output = nodes.new("ShaderNodeOutputMaterial")
bsdf = nodes.new("ShaderNodeBsdfPrincipled")
coord = nodes.new("ShaderNodeTexCoord")
mapping = nodes.new("ShaderNodeMapping")
noise = nodes.new("ShaderNodeTexNoise")
mapping.inputs["Scale"].default_value = (2.0, 2.0, 2.0)
noise.inputs["Scale"].default_value = 5.0
noise.inputs["Detail"].default_value = 3.0
links.new(coord.outputs[COORDINATE], mapping.inputs["Vector"])
links.new(mapping.outputs["Vector"], noise.inputs["Vector"])
links.new(noise.outputs["Color"], bsdf.inputs["Base Color"])
links.new(bsdf.outputs["BSDF"], output.inputs["Surface"])Exercise
You need a procedural wood pattern that follows the object’s axes and should remain aligned when several objects share the same reference. Which coordinate space is a strong starting choice?
Show answer
Use Object coordinates, optionally using a shared reference object. Add a Mapping node to control the pattern’s scale and orientation.