Sub topic 1
What the 3D viewport shows: the view as a camera on your scene
Prerequisites
This chapter assumes you have Blender 2.8 or later with the default keymap, and that you can open a scene and find the 3D viewport. You should also have a mouse with a middle button, or a laptop with a numpad or an equivalent setup.
The viewport as a camera
The 3D viewport shows your scene from a virtual camera. This camera is not an object in the scene. It belongs to the viewport, so moving it changes only what you see on screen. Your render camera is separate and does not move.
Every view has three properties you will use often:
- Position: where the virtual camera sits.
- Direction: where it points.
- Projection: whether distant objects look smaller (perspective) or stay the same size (orthographic).
Setting up your input
Blender's navigation depends on your input device. Open Edit > Preferences > Input to check these options:
- Emulate 3 Button Mouse: lets you orbit with Alt plus left-click on a mouse without a middle button. Trackpad users often need this.
- Emulate Numpad: makes the top row of number keys act like the numpad, so
1,3, and7change views.
You can also read these settings from a script:
import bpy
prefs = bpy.context.preferences
print("Emulate 3 Button Mouse:", prefs.inputs.use_mouse_emulate_3_button)
print("Emulate Numpad:", prefs.inputs.use_emulate_numpad)Orbiting
Orbiting rotates the view around a pivot point while the pivot stays in place. Hold the middle mouse button and drag. With Emulate 3 Button Mouse on, hold Alt and drag with the left button.
Orbit uses the pivot point, which is shown as a small dot when you start orbiting. By default, the pivot is the center of the scene or the current selection.
Panning
Panning slides the view sideways or up and down without rotating it. Hold Shift with the middle mouse button and drag. Panning moves the virtual camera but keeps its direction.
| Action | Mouse | Keyboard |
|---|---|---|
| Orbit | Middle drag | Alt + left drag (emulation on) |
| Pan | Shift + middle drag | Shift + Alt + left drag (emulation on) |
Exercise
You are on a laptop with a trackpad and no middle button. Which setting should you enable, and what key combination orbits the view afterward?
Show answer
Enable Emulate 3 Button Mouse in Preferences > Input. Then hold Alt and drag with the left button to orbit.