Sub topic 7
Perspective, orthographic, and panoramic cameras
This chapter assumes you can add a camera, make it the active scene camera, and look through it. It also assumes you know what focal length and sensor size do in a perspective camera. Chapters on field of view and lens choice cover those. Here you will learn the other two camera types and when to choose each.
The camera type setting
Every camera data block has a Type setting with three values. The Python names are PERSP, ORTHO, and PANO. The type decides how the renderer turns a point in 3D space into a pixel.
| Type | Python value | Main size control | Engines | Typical use |
|---|---|---|---|---|
| Perspective | `PERSP` | Focal length and sensor size | All | Most shots, realistic depth |
| Orthographic | `ORTHO` | Orthographic Scale | All | Isometric art, technical views, plans, UI renders |
| Panoramic | `PANO` | Panorama type and its field of view | Cycles | 360° images, fisheye, dome projections |
The type belongs to the camera data, not the object. Two camera objects that share one data block always have the same type. If you change one, you change both. Use Make Single User on the data if you need different types.
Perspective cameras
A perspective camera sends all view rays out from one point, the camera origin. Rays spread apart as they travel. An object that is twice as far away covers about half the width in the image. This is foreshortening, and it is what makes an image look like a photograph.
Only the perspective type uses Focal Length and Field of View. If you switch to another type, those fields disappear and the lens value stays stored but unused. The sensor settings still matter for sensor fit, as described below.
Orthographic cameras
An orthographic camera sends all rays in parallel, perpendicular to the image plane. There is no single origin point, so distance does not change an object's apparent size. Parallel edges in the scene stay parallel in the image. A cube seen from a corner shows no converging edges.
Orthographic Scale
The size control is Orthographic Scale, in Blender units. It is the width of the visible area, measured at any distance from the camera. The default is 6.0. Raising it shows more of the scene, and lowering it zooms in.
The scale applies to the dimension chosen by the sensor fit. With Auto fit it applies to the larger image dimension. At 1920 × 1080 and a scale of 6, the view is 6 units wide and 3.375 units tall (6 × 1080 / 1920).
Moving the camera does not zoom
Beginners often move an orthographic camera closer and see nothing change. Distance has no effect on size, so zoom with the scale instead. Distance still matters in two ways:
- Objects behind the camera or farther than Clip End are cut off. Put the camera far enough back and raise Clip End so the whole scene sits between the clip planes.
- Depth of field and mist passes still use distance.
Setting up an isometric view
A true isometric view looks along a diagonal of a cube so that all three axes appear equally foreshortened. The camera rotation is about 54.736° on X, 0° on Y, and 45° on Z. The X angle is 90° minus atan(1/√2), which is 35.264°.
import math
import bpy
scene = bpy.context.scene
cam_data = bpy.data.cameras.new("IsoCamera")
cam_data.type = 'ORTHO'
cam_data.ortho_scale = 8.0
cam_data.clip_start = 0.1
cam_data.clip_end = 200.0
cam_obj = bpy.data.objects.new("IsoCamera", cam_data)
scene.collection.objects.link(cam_obj)
cam_obj.location = (10.0, -10.0, 8.165)
cam_obj.rotation_euler = (
math.radians(90 - math.degrees(math.atan(1 / math.sqrt(2)))),
0.0,
math.radians(45),
)
scene.camera = cam_objThe location is a point on the line of sight at a comfortable distance. Because the camera is orthographic, you can slide it along that line without changing the framing. The height 8.165 is √(10² + 10²)/√2 × ... in practice you only need the camera to sit on the viewing diagonal, which the rotation sets. The camera points at the origin because the location (10, −10, 8.165) lies along the line the rotation defines. If you change the rotation, check the aim through camera view.
When orthographic is the right choice
- Isometric game art and illustrations, where objects must keep one size regardless of position.
- Architectural plans, elevations, and sections.
- Rendering textures, sprites, or maps from above, where perspective would distort edges.
- Shadow or depth maps that you composite later.
Orthographic is a poor choice for scenes that need a sense of depth or scale from convergence. A long corridor in orthographic looks flat and can be hard to read.
Panoramic cameras
A panoramic camera uses a lens model that bends rays instead of projecting through a flat image plane. It lets you capture fields of view up to 360° horizontally and 180° vertically.
Panoramic cameras work in Cycles only. EEVEE and Workbench do not render them. If you pick the panoramic type and the image looks like a normal perspective view, check the render engine first.
In Blender 4.0 and later, the panorama settings live directly on the camera data (cam_data.panorama_type). In earlier versions they were under cam_data.cycles. The Python below assumes 4.0 or later.
Panorama types
| Panorama type | Python value | Result |
|---|---|---|
| Equirectangular | `EQUIRECTANGULAR` | Full sphere unwrapped to a 2:1 image, used for 360° environments and VR |
| Fisheye Equidistant | `FISHEYE_EQUIDISTANT` | Circular image, angle is proportional to distance from the center |
| Fisheye Equisolid | `FISHEYE_EQUISOLID` | Circular image that mimics many real fisheye lenses |
| Mirror Ball | `MIRRORBALL` | The view of a reflective sphere |
Fisheye types use a Field of View setting (fisheye_fov, in radians in Python), with 180° as the common choice. Equirectangular exposes latitude and longitude limits, so you can render a partial panorama such as a 180° dome.
A 360° render
import math
import bpy
scene = bpy.context.scene
scene.render.engine = 'CYCLES'
cam_data = bpy.data.cameras.new("PanoCamera")
cam_data.type = 'PANO'
cam_data.panorama_type = 'EQUIRECTANGULAR'
cam_data.latitude_min = math.radians(-90)
cam_data.latitude_max = math.radians(90)
cam_data.longitude_min = math.radians(-180)
cam_data.longitude_max = math.radians(180)
cam_obj = bpy.data.objects.new("PanoCamera", cam_data)
scene.collection.objects.link(cam_obj)
cam_obj.location = (0.0, 0.0, 1.6)
cam_obj.rotation_euler = (math.radians(90), 0.0, 0.0)
scene.camera = cam_obj
scene.render.resolution_x = 4096
scene.render.resolution_y = 2048
scene.render.resolution_percentage = 100The resolution is 2:1 because the image covers 360° by 180°. Any other ratio stretches the result. The camera is rotated 90° on X so that its up axis matches the scene's Z axis, which keeps the horizon level.
Fisheye settings
For a fisheye, change only the type-specific values:
import math
import bpy
cam_data = bpy.data.objects["PanoCamera"].data
cam_data.panorama_type = 'FISHEYE_EQUISOLID'
cam_data.fisheye_fov = math.radians(180)
cam_data.fisheye_lens = 10.5Set the resolution to a square for a full circular fisheye. A wide frame crops the circle at the top and bottom.
Gotchas
- Switching type does not remove lens data. The perspective focal length stays stored and returns when you switch back.
- Panoramic cameras ignore many perspective features. Lens shift and passepartout behave differently or do not apply, so test framing in a render rather than assuming camera view is exact.
- Viewport preview is limited. Camera view shows only an outline for panoramic types in solid mode. Use rendered view in Cycles to see the true result.
- Compositing and effects. Some screen-space effects assume a flat projection and may look wrong with panoramic images.
Choosing a type
- Ask whether depth should look natural. If yes, use perspective and pick a focal length.
- Ask whether sizes must stay constant across the frame or lines must stay parallel. If yes, use orthographic.
- Ask whether you need more than about 120° of view, a dome, or a VR environment. If yes, use panoramic in Cycles.
Exercise
A scene is rendered at 1600 × 900 with an orthographic camera, Auto sensor fit, and an Orthographic Scale of 8. How wide and how tall is the visible area in Blender units, and what happens to the image if you move the camera twice as far away along its viewing direction?
Show answer
The width is 8 units because Auto fit applies the scale to the larger dimension. The height is 8 × 900 / 1600 = 4.5 units. Moving the camera farther does not change the size of anything in the image, because orthographic rays are parallel. The only risk is that objects fall beyond Clip End and are cut off, so raise Clip End if needed.
Exercise
You set a camera to Panoramic with the Equirectangular type, but the render in EEVEE looks like an ordinary perspective image. What is the cause, and what resolution ratio should you use for a full 360° by 180° result?
Show answer
Panoramic cameras are supported only in Cycles, so switch the render engine to Cycles. Use a 2:1 ratio such as 4096 × 2048, because the image covers 360° horizontally and 180° vertically.