Sub topic 2
Setting Units and Real-World Scale
This chapter assumes you can navigate the Blender 3D Viewport and switch between Object Mode and Edit Mode. It also assumes you can move, rotate and scale objects, and that you know what vertices, edges and faces are. The previous chapter placed reference images in orthographic views. Here you give the scene a scale, so that the references, the model and later steps such as bevel widths all use the same measurements.
Why scale matters before you model
Blender does not store real-world lengths. It stores numbers called Blender Units (BU). A cube that is 2 BU wide is just "2". Whether that means 2 metres, 2 millimetres or 2 miles depends on the scene's unit settings, and those settings only change how numbers are displayed and typed. They do not change the stored geometry, unless you change the Unit Scale.
For a hard-surface prop, a wrong scale causes problems well after you set it:
- Bevels look wrong. The Bevel modifier's width is a physical distance. A 2 mm bevel is correct on a pocket flashlight and invisible on a shipping container.
- Tools use fixed thresholds. The Mirror modifier's merge distance and Remove Doubles use distances in BU. A threshold that suits a 1 m object can weld away detail on a 5 cm one.
- Simulations and lighting depend on size. Physics, depth of field, and light falloff all assume that 1 BU means something physical.
- Other software disagrees. A game engine or another 3D application may import your prop 100 times too big or 1000 times too small.
Setting units first costs about a minute. Fixing them after you have modelled costs much more, because every distance-based setting then needs rechecking.
The unit settings
Open the Scene tab in the Properties editor and find the Units panel. It has these fields:
| Setting | What it does |
|---|---|
| Unit System | Metric, Imperial, or None. With None, Blender shows plain numbers with no unit label. |
| Unit Scale | How many metres one Blender Unit represents. The default is 1.0. |
| Separate Units | Splits a value into parts, such as 1 m 20 cm, instead of one number. |
| Length | The unit used to display lengths. The default, Adaptive, picks a unit by magnitude. |
| Rotation | Degrees or radians. |
The Python equivalents live on bpy.context.scene.unit_settings. This script configures a scene for a small prop measured in millimetres:
import bpy
units = bpy.context.scene.unit_settings
units.system = 'METRIC'
units.scale_length = 1.0
units.length_unit = 'MILLIMETERS'The script leaves scale_length at 1.0 and changes only length_unit. That choice is deliberate, as the next section explains.
Two ways to model a small object
You can handle a small prop in two ways. They produce different numbers in the viewport, and the difference affects every value you type or script.
| Approach | Unit Scale | Length unit | 1 BU equals | A 120 mm object is stored as |
|---|---|---|---|---|
| Display only | 1.0 | Millimetres | 1 m | 0.12 BU |
| Scaled scene | 0.001 | Millimetres | 1 mm | 120 BU |
Display only keeps 1 BU equal to 1 metre and asks Blender to show lengths in millimetres. The object is physically small in BU terms (0.12), but the UI reads "120 mm". This is the safer default for most work, because:
- Exporters and other software usually assume 1 BU is 1 m.
- Python values such as
bevel.width = 0.002mean 2 mm, which is easy to reason about. - Blender's defaults for clipping, grid and tool thresholds were designed around a metre-scale world.
Scaled scene sets Unit Scale to 0.001, so geometry is stored at "human-sized" numbers like 120. Tools behave as if the object were large, which helps when very small values cause precision problems. The cost is that every script value must now be given in BU, and an exporter that ignores Unit Scale will produce a model 1000 times too large.
The decision comes down to the object's size and where it is going.
For the prop in this tutorial, which is a hand-sized hard-surface object, use display only.
Typing values with units
Once the unit system is Metric, Blender parses units in any numeric field. You can type 12mm, 1.2cm or 0.012m and all three give the same result. A bare number with no suffix is read in the current display unit. With Length set to Millimetres, typing 12 means 12 mm. With Length set to Adaptive and a scale of 1.0, typing 12 means 12 m.
Bare numbers in a field are the most common unit mistake. If a cube suddenly becomes enormous after you type a dimension, check the Length setting first.
Sizing the blockout from real measurements
Your reference images should come with real dimensions, such as a product sheet, a ruler in the photo, or measurements you took yourself. Decide the overall width, depth and height now. Suppose the prop is 120 mm long, 60 mm wide and 40 mm tall.
The script below creates a unit cube, resizes it to those dimensions, and applies the scale so that the object's scale values return to 1.0. It then prints the result in millimetres.
import bpy
units = bpy.context.scene.unit_settings
units.system = 'METRIC'
units.scale_length = 1.0
units.length_unit = 'MILLIMETERS'
bpy.ops.mesh.primitive_cube_add(size=1.0, location=(0.0, 0.0, 0.02))
obj = bpy.context.active_object
obj.name = "Blockout"
# Dimensions are in Blender Units, which are metres at Unit Scale 1.0.
obj.dimensions = (0.120, 0.060, 0.040)
bpy.ops.object.transform_apply(location=False, rotation=False, scale=True)
for axis, value in zip("XYZ", obj.dimensions):
print(f"{axis}: {value * units.scale_length * 1000:.1f} mm")Running it prints X: 120.0 mm, Y: 60.0 mm and Z: 40.0 mm. The multiplication by units.scale_length * 1000 converts BU into millimetres, and it stays correct if you later change the Unit Scale. The cube's location puts its base on the ground plane (Z = 0), since half its 0.04 height is 0.02.
Applying scale (Ctrl+A, then Scale in Object Mode) matters. A non-applied scale of, say, 0.12 on a 1 BU cube gives the right Dimensions readout. But modifiers such as Bevel, and tools such as Inset, can behave unevenly on objects with non-uniform scale, and exporters may misread it. Keep the scale at 1.0 as a habit.
You can check dimensions in the UI without a script. Press N in the 3D Viewport to open the sidebar, then look at Item > Dimensions. You can also turn on the Statistics overlay, or use the Measure tool in the toolbar to drag a ruler between two points and compare the reading against your reference.
Matching the reference images to the scale
The reference images from the previous chapter are placed as Empty objects with image data. Their size on screen is arbitrary until you set it. Match them to your real dimensions:
- Pick one feature with a known measurement in the front view, for example the full 120 mm length.
- Measure how long that feature currently appears using the Measure tool.
- Divide the real length by the measured length to get a correction factor.
- Apply the factor to the reference Empty's scale, using the same factor on all three axes.
- Repeat for the side and top images, checking that shared dimensions (such as the 40 mm height) agree between views.
If the front and side images disagree on a shared dimension by more than a few percent, one of them was taken from a different distance or with lens distortion. Trust the view that was shot most squarely, and note which one you chose.
Viewport clipping on small objects
A small prop can disappear when you zoom in close. The viewport has a clip start distance, which defaults to 0.01 m (10 mm). Geometry nearer to the camera than this is cut away. With a 120 mm prop at Unit Scale 1.0, zooming into a detail often crosses that limit and the surface vanishes.
Lower the clip start in the sidebar's View tab under View > Clip Start, or set it by script:
import bpy
for area in bpy.context.screen.areas:
if area.type == 'VIEW_3D':
space = area.spaces.active
space.clip_start = 0.001
space.clip_end = 100.0This sets a clip start of 1 mm and a clip end of 100 m, both in BU. Do not lower the clip start much further than needed. The ratio between clip end and clip start controls depth-buffer precision, and an extreme ratio causes flickering where surfaces overlap.
How scale affects the later steps
The rest of the tutorial depends on this chapter's choices:
- Mirror modifier. The merge threshold of 0.001 BU used later means 1 mm at Unit Scale 1.0. That is fine for a 120 mm prop, and it would be too coarse for a 10 mm one.
- Bevel modifier. A width of 0.002 BU is a 2 mm bevel at Unit Scale 1.0. Choose bevel widths from the real object's edge radii.
- Boolean cutters. The Exact solver has no scale dependence, but cutters that overshoot the body by "a little" should overshoot by a size that suits the prop, such as 1 to 2 mm.
- Export. Check the exporter's scale settings. The FBX exporter has options for applying scalings and units, and glTF expects metres. Export a test cube of known size and import it into the target software to confirm that it measures 120 mm.
Common mistakes
- Changing Unit Scale after modelling. This changes how existing geometry is interpreted. A 120 BU object that read as 120 m becomes 120 mm. Nothing in the mesh changes, but values you typed earlier no longer mean what you intended.
- Forgetting that Python uses BU. Scripts copied from a project with a different Unit Scale give wrong sizes.
- Mixing display units mid-session. Switching Length from Millimetres to Adaptive changes how typed bare numbers are read.
- Leaving scale unapplied. The Dimensions panel looks correct, while modifiers and exports use unexpected values.
- Judging size by looking. Perspective makes any object look the size you expect. Use Dimensions or the Measure tool.
Exercise
A scene has Unit Scale 1.0 and Length set to Millimetres. You type 45 into the X Dimensions field of an object, then run print(obj.dimensions.x) in the Python console. What does the console print, and why?
Show answer
It prints 0.045. The typed bare number is read in the display unit (millimetres), so the object is 45 mm wide. Python returns values in Blender Units, and at Unit Scale 1.0 one BU is one metre, so 45 mm is 0.045 BU.
Exercise
You set Unit Scale to 0.001 with Length in Millimetres, and a script creates a bevel with bevel.width = 0.002. How wide is the bevel in the scene, and what value would give a 2 mm bevel?
Show answer
The width is 0.002 BU. At Unit Scale 0.001, one BU is one millimetre, so the bevel is 0.002 mm and effectively invisible. A 2 mm bevel needs bevel.width = 2.0.
Exercise
A 120 mm reference length in your front image measures 300 BU wide on screen with the Measure tool at Unit Scale 1.0, so you must scale the Empty. What uniform scale factor do you apply?
Show answer
First convert 120 mm to BU: 120 mm is 0.12 BU at Unit Scale 1.0. The correction factor is 0.12 / 300 = 0.0004. Apply a uniform scale of 0.0004 to the reference Empty, then re-measure to confirm the feature reads 120 mm.