Sub topic 12
Rendering and saving
This chapter turns the finished scene into a PNG image and a saved .blend file. It also covers exporting the models for other programs. It assumes you have completed the earlier chapters: a scene with a ground plane, trees and rocks, flat shading, solid-colour materials, a light and a framed camera. You should be able to find the Properties editor tabs and the top-bar menus.
Choosing a render engine
The render engine is the program inside Blender that turns your scene into pixels. Set it in Properties > Render. Blender 4.x offers three.
| Engine | How it works | Speed | Good for low-poly |
|---|---|---|---|
| EEVEE | Rasterising engine that approximates light | Seconds per frame | Yes, the usual choice |
| Cycles | Path tracer that follows simulated light rays | Seconds to minutes per frame | Yes, when you want accurate shadows and bounced light |
| Workbench | Viewport-style display with no real lighting | Near instant | Previews and flat "unlit" looks |
Flat-coloured faceted models gain little from Cycles' physical accuracy, so EEVEE is a sensible default. Switch to Cycles if you want soft bounced light between the ground and the foliage, or if your graphics card has trouble with EEVEE.
The engine's internal name changed between releases. In Blender 4.2 to 4.5 it is BLENDER_EEVEE_NEXT. Other 4.x versions and 5.0 and later use BLENDER_EEVEE. Check the value in the Python console if you script this setting.
Render quality settings
Both engines have a Sampling panel. A sample is one pass of light calculation per pixel. More samples mean less noise and smoother edges, but longer renders.
- EEVEE: Render samples default to 64. Low-poly scenes with big flat shapes look clean at 32 to 64.
- Cycles: Render samples default to 4096 with a noise threshold and denoising enabled. For a simple scene, 64 to 128 samples with Denoise on is usually enough.
Two other settings affect how colours look:
- Ambient Occlusion, Shadows and Soft Shadows in EEVEE add depth to the gaps between objects. Keep shadows on, since they ground the trees and rocks on the plane.
- Colour Management (Render tab) has a View Transform. Blender 4.x defaults to AgX, which compresses bright values and slightly mutes saturated colours. If your green foliage looks duller than the material you picked, try Standard. This is the most common reason a flat-colour render looks different from the colour swatch.
Setting the output size and format
Open Properties > Output.
- Under Format, set Resolution X and Y. A common starting point is 1920 by 1080.
- Set % (resolution percentage). Use 50% while testing, then return it to 100% for the final image. This cuts test render time to about a quarter.
- Under Output, choose a File Format. Use PNG for a still image. Enable RGBA only if you also turned on Film > Transparent in the Render tab and want a see-through background.
The resolution percentage is the setting people forget. A final render saved at 50% is a smaller image than the one you intended.
Rendering a still image
Check that the scene has an active camera, which is the one used for rendering. Select the camera and press Ctrl+Numpad 0 to make it active and view through it.
Then choose Render > Render Image or press F12. A separate Render window opens and shows the image as it is calculated. Press Esc to cancel a render in progress.
When the render is done, the image exists only in memory. Blender does not save it automatically. Save it from the Render window with Image > Save As (Shift+Alt+S) and pick a file name and location. The format menu in that dialog is independent of the Output tab, so check it.
Rendering to a file automatically
If you want Blender to write the file for you, use Render > Render Animation (Ctrl+F12) with a one-frame range. Set Frame Range Start and End to the same number in the Output tab. Blender writes the file into the Output path folder, using the frame number as the file name.
For a single image, the scripted route below is more direct. It sets the path and renders in one call.
Rendering from Python
The same settings are available through bpy. This script chooses an engine, sets the size and format, and writes a PNG next to your .blend file.
import bpy
scene = bpy.context.scene
# EEVEE's identifier depends on the Blender version
engines = scene.render.bl_rna.properties["engine"].enum_items.keys()
for name in ("BLENDER_EEVEE_NEXT", "BLENDER_EEVEE"):
if name in engines:
scene.render.engine = name
break
# Output size and format
scene.render.resolution_x = 1920
scene.render.resolution_y = 1080
scene.render.resolution_percentage = 100
scene.render.image_settings.file_format = "PNG"
# Keep the colours close to the material swatches
scene.view_settings.view_transform = "Standard"
# "//" means "relative to the .blend file"
scene.render.filepath = "//renders/low_poly_scene.png"
bpy.ops.render.render(write_still=True)
print("Saved to", bpy.path.abspath(scene.render.filepath))Two details matter here. The // prefix only works once the .blend file has been saved, because Blender needs a folder to be relative to. And write_still=True is what writes the image. Without it, the render is only held in memory.
Saving the Blender file
A rendered PNG is a picture. The scene itself lives in the .blend file. Save it with File > Save (Ctrl+S). The first time, Blender asks for a name and location.
Some habits that prevent lost work:
- Save incrementally. Use File > Save As with a number such as
scene_v02.blend. The + button next to the file name in the dialog increases the number for you. - Backups happen automatically. Blender keeps the previous save as
scene.blend1in the same folder. Rename it to.blendif you need to go back one step. - Auto-save writes recovery files to the temp folder at an interval set in Edit > Preferences > Save & Load. Use File > Recover > Auto Save after a crash.
- Use relative paths. If your scene uses image textures, keep Remap Relative on in the Save As dialog. Moving the project folder then does not break links.
A scene made only of solid-colour materials has no external files, so none of these path problems apply to it. They start to matter as soon as you add a texture.
Exporting the models
Rendering produces an image. If you want the models in a game engine, a web viewer or another program, export them. The File > Export menu has the main formats.
| Format | File | Use it for |
|---|---|---|
| glTF 2.0 | `.glb` or `.gltf` | Web viewers, many game engines, small files |
| FBX | `.fbx` | Unity, Unreal and older pipelines |
| Wavefront OBJ | `.obj` | Simple geometry exchange, no animation |
In the export dialog, tick Selection Only (or use_selection in a script) if you only want some objects. Without it, the exporter writes everything visible, including the ground plane and any helper objects.
Flat shading and solid colours carry over reasonably well. glTF keeps the Principled BSDF base colour, and the flat normals you set stay in the mesh data. Viewport-only colours (diffuse_color) are not exported, so always set the Base Color on the node, as you did in the materials chapter.
This script exports the selected objects as a binary glTF file:
import bpy
bpy.ops.export_scene.gltf(
filepath=bpy.path.abspath("//low_poly_scene.glb"),
export_format="GLB",
use_selection=True,
)For OBJ in Blender 4.x, use bpy.ops.wm.obj_export(filepath=..., export_selected_objects=True). The older bpy.ops.export_scene.obj operator was removed in 4.0.
The whole workflow
Common problems
- The render is black or empty. There is no active camera, or the camera faces away from the scene. Press Numpad 0 to look through it. Also check that the lights are not hidden in the render (the camera icon in the Outliner).
- Colours look washed out. The view transform is AgX. Switch to Standard, or raise the light strength.
- The render is too small or blurry. The resolution percentage is below 100%.
- The render takes very long. Cycles with high samples and no denoising. Lower the samples, enable Denoise, or use EEVEE.
- The output file is missing. In a script,
write_still=Truewas left out. In the interface, the render was never saved from the Render window. - Textures or links break after moving the project. Paths were absolute. Use File > External Data > Make Paths Relative, or Pack Resources to embed files in the
.blend. - The export contains extra objects.
Selection Onlywas off.
Exercise
You set the resolution to 1920 by 1080 and rendered with F12, but the saved PNG is 960 by 540. What setting caused this, and where do you change it?
Show answer
The resolution percentage in Properties > Output > Format was set to 50%. Set it back to 100% and render again.
Exercise
A script calls bpy.ops.render.render() with no arguments and sets scene.render.filepath, but no PNG appears on disk. What change fixes this?
Show answer
Call bpy.ops.render.render(writestill=True). Without writestill, Blender renders the image but does not write it to the output path. Also make sure the .blend file has been saved if the path starts with "//".
Exercise
You export your scene as GLB and the ground plane appears in the game engine even though you only wanted the trees and rocks. How do you avoid this?
Show answer
Select only the trees and rocks before exporting and enable Selection Only in the export dialog. In a script, pass useselection=True to bpy.ops.exportscene.gltf.