Back to Lighting

Part 17: CAMERA MATCHING

~59 min9 sections

What you'll learn:

  • UE5's camera systems — when to use each
  • Cine Camera Actor — physical camera simulation
  • The dual aperture problem — DOF vs exposure
  • Camera matching workflow — real camera to UE5
  • Why DOF matching requires actual values, not equivalents
  • Complete examples with real cameras

Section 68: UE5 Camera Systems (8 min)

UE5 provides multiple camera systems for different needs:

SystemHow It WorksBest For
Camera ComponentBasic viewpoint — specify FOV directlyGameplay cameras, simple viewpoints
Cine Camera ActorPhysical simulation — sensor size + focal length = FOVCinematics, camera matching, realistic DOF
Scene Capture 2DRenders to texture instead of screenSecurity cameras, mirrors, minimaps

Think in three layers:

1) FOV Calculation

SystemFOV Method
Camera ComponentYou specify FOV directly (e.g., 90°)
Cine Camera ActorCalculated from sensor size + focal length
Scene Capture 2DYou specify FOV directly (like Camera Component)

2) Physical Simulation

SystemPhysical Properties
Camera ComponentNone — just FOV and post-process
Cine Camera ActorFilmback (sensor), focal length, aperture, focus distance
Scene Capture 2DNone — just FOV and post-process

3) Render Target

SystemRenders To
Camera ComponentScreen (what player sees)
Cine Camera ActorScreen (what player sees)
Scene Capture 2DTexture (Render Target asset)
Need to match a real camera's look?
  YES → Cine Camera Actor
  NO  → Need to render to a texture?
          YES → Scene Capture 2D
          NO  → Camera Component

Section 69: Camera Component (5 min)

The Camera Component is UE5's basic camera. No physical simulation — just a viewpoint.

PropertyWhat It Does
Field of ViewHorizontal FOV in degrees (default 90°)
Aspect RatioCan constrain or leave to viewport
Post Process SettingsEmbedded — same options as Post Process Volume
Post Process Blend WeightHow much this camera's PP overrides the volume (0-1)

Use when:

  • Gameplay cameras (first-person, third-person)
  • You want to specify FOV directly
  • Physical accuracy isn't required
  • Simple cutscenes without camera matching

Don't use when:

  • You need accurate depth of field matching a real camera
  • Matching real-world camera specifications
  • Working with cinematographers who think in focal lengths

In a Blueprint:

  1. Add Component → Camera
  2. Set Field of View (e.g., 90)
  3. Configure Post Process Settings if needed

As a standalone Actor:

  1. Place Actors → Camera Actor
  2. This is just a Camera Component wrapped in an Actor

Section 70: Cine Camera Actor (10 min)

Cine Camera Actor simulates real camera hardware. This is what you use for cinematic work and camera matching.

First, enable physical camera simulation:

Cine Camera Actor → Details → Current Camera Settings:
    ☑ Constrain Aspect Ratio: True (optional, locks aspect)

Cine Camera Actor → Details → Camera Options:
    ☑ Physically Based Camera: True  ← CRITICAL for accurate simulation

With Physically Based Camera enabled, the camera uses real-world units and physically accurate calculations for DOF and exposure.

The Lens Settings section controls zoom range and current focal length:

SettingWhat It Does
Min Focal LengthShortest focal length allowed (widest zoom)
Max Focal LengthLongest focal length allowed (tightest zoom)
Current Focal LengthActive focal length — this is what you set to match your camera

For camera matching, set Current Focal Length to your camera's actual focal length in mm.

Note: Min/Max are constraints for runtime zoom. For static camera matching, only Current Focal Length matters.

PropertyWhat It IsWhat It Affects
Filmback (Sensor Size)Physical dimensions in mmFOV calculation, DOF characteristics
Current Focal LengthLens focal length in mmFOV calculation, perspective compression
Current Aperturef-stop numberDepth of field blur amount
Focus Method/DistanceWhat is in focusDepth of field

Unlike Camera Component, Cine Camera calculates FOV from sensor and lens:

FOV = 2 × arctan(SensorWidth / (2 × FocalLength))

Calculate FOV from sensor + focal length:

Example: Full Frame (36mm wide) @ 50mm lens
FOV = 2 × arctan(36 / 100)
FOV = 2 × arctan(0.36)
FOV = 2 × 19.8°
FOV = 39.6° horizontal

Calculate Sensor Size from FOV + Focal Length:

SensorWidth = 2 × FocalLength × tan(FOV / 2)

Example: 28.684° FOV @ 25mm focal length
SensorWidth = 2 × 25 × tan(14.342°)
SensorWidth = 50 × 0.2556
SensorWidth = 12.78 mm

Calculate Sensor Size from Pixel Pitch + Resolution:

SensorWidth = PixelPitch (µm) × PixelCount / 1000

Example: 2.4 µm pitch × 5472 pixels wide
SensorWidth = 2.4 × 5472 / 1000 = 13.13 mm

Calculate Sensor Height from Width + Aspect Ratio:

AspectRatio = ImageBufferWidth / ImageBufferHeight
SensorHeight = SensorWidth / AspectRatio

Example: 6650 × 3790 resolution, 12.78mm sensor width
AspectRatio = 6650 / 3790 = 1.754
SensorHeight = 12.78 / 1.754 = 7.29 mm

Summary — What You Need:

If You HaveYou Can Calculate
FOV + Focal LengthSensor Width
Pixel Pitch + ResolutionSensor Width (exact)
Sensor Width + Aspect RatioSensor Height
Sensor Size + Focal LengthFOV

Tip: Pixel pitch gives the most accurate sensor size. Check camera specs or datasheets for this value.

UE5 has sensor width in THREE locations. Know which one you're setting.

LocationWhat It ControlsWhen to Use
Cine Camera → FilmbackFOV calculation + DOFCamera matching with Cine Camera
Post Process → Lens → DOF → Sensor WidthDOF blur onlyDOF on Camera Component (not Cine Camera)
Post Process → Camera → (implicit)Exposure formulaCalculated from other settings
Cine Camera → Current Camera Settings → Filmback:
  Sensor Width: 36.0 mm   ← Sets FOV + DOF for Cine Camera

Post Process → Lens → Depth of Field:
  Sensor Width: 24.576 mm  ← Sets DOF blur for regular cameras

For Cine Camera: Use Filmback settings. The Post Process Sensor Width is ignored.

For Camera Component: Use Post Process → Lens → Depth of Field → Sensor Width to control DOF blur amount.

Cine Camera has TWO aperture settings. They do different things.

SettingLocationWhat It Controls
Current ApertureLens SettingsDepth of field blur
AperturePost Process → CameraExposure calculation (with Manual metering)
Lens Settings:
  Current Aperture: 2.8  ← Controls DOF blur

Post Process → Camera:
  Aperture: 2.8  ← Used in exposure formula

For camera matching: Set BOTH to the same f-stop value.

The critical distinction: Only the Post Process aperture affects brightness. The Lens Settings aperture only affects blur.

UE5 SettingAffects Exposure?Affects DOF?Affects Motion Blur?
ISO (Post Process)Yes (Manual mode only)NoNo
Shutter Speed (Post Process)Yes (Manual mode only)NoIndirectly*
Aperture (Lens Settings)NoYesNo
Aperture (Post Process)Formula onlyNoNo
Exposure CompensationYes (all modes)NoNo

*Shutter Speed affects exposure calculation but motion blur is controlled separately via Post Process Volume → Motion Blur settings (Amount, Max).

Cine Camera includes common sensor presets:

PresetSensor SizeCommon Use
16:9 DSLR36 × 20.25mmFull-frame video mode
Super 35mm24.89 × 18.66mmCinema standard
35mm Academy21.95 × 16.00mmClassic film

Or enter custom values to match any camera.


Section 71: Scene Capture 2D (5 min)

Scene Capture 2D renders the scene to a texture instead of the screen.

  • Security camera monitors
  • Mirrors and portals
  • Minimaps
  • Picture-in-picture
  • Off-screen rendering for effects

Scene Capture does NOT inherit from Post Process Volumes or other cameras. You must configure it manually.

If your Scene Capture should match your main camera's exposure, you must copy all the Post Process settings yourself.

SettingWhat It Does
FOV AngleField of view in degrees
Texture TargetThe Render Target asset to render into
Capture SourceWhat to capture (Final Color, Scene Color, etc.)
Post Process SettingsEmbedded — MUST be configured manually

Each Scene Capture renders the scene again — like having another camera. Consider:

  • Lower resolution render targets
  • Capturing less frequently (not every frame)
  • Limiting active Scene Captures

Section 72: The Matching Workflow (8 min)

Camera matching means configuring UE5's virtual camera to produce results that look like a specific real camera.

  • Matching footage for VFX compositing
  • Recreating a specific camera's "look"
  • Accurate product visualization
  • Training ML models with consistent data
1. Capture Reference
   └─ Get specifications from real camera

2. Configure Cine Camera
   └─ Set filmback, focal length, aperture

3. Configure Exposure
   └─ Set ISO, shutter speed (with Apply Physical Camera Exposure enabled)

4. Verify DOF
   └─ Check that blur matches reference

5. Fine-tune
   └─ Adjust Exposure Compensation if needed
PropertyWhat It DoesWhere to Find ItUE5 Setting
Sensor SizeDetermines FOV and DOF characteristicsCamera specs (mm)Cine Camera → Filmback
Focal LengthSets FOV and perspective compressionLens marking (mm)Cine Camera → Current Focal Length
ApertureControls DOF blur + exposure brightnessLens/camera setting (f-stop)Cine Camera → Current Aperture + Post Process
ISOControls exposure brightness (sensitivity)Camera setting or film boxPost Process → Camera → ISO
Shutter SpeedControls exposure brightness + motion blurCamera settingPost Process → Camera → Shutter Speed

What controls exposure (image brightness)?

SettingAffects Exposure?Side Effect
Aperture (f-stop)Yes — lower f = brighterShallower DOF
Shutter SpeedYes — slower = brighterMore motion blur
ISOYes — higher = brighterMore noise

These three form the exposure triangle. In UE5 with Manual metering, all three must be set correctly to match your reference camera's exposure.

To verify your settings match, calculate the Exposure Value (EV100):

EV100 = log₂(N² / t) - log₂(ISO / 100)

Where:
  N = f-stop number (aperture)
  t = shutter speed in seconds (e.g., 1/125 = 0.008)

Quick calculation:

Example: f/2.8, 1/125s, ISO 200

Step 1: N² / t = 2.8² / 0.008 = 7.84 / 0.008 = 980
Step 2: log₂(980) ≈ 9.94
Step 3: log₂(200/100) = log₂(2) = 1
Step 4: EV100 = 9.94 - 1 = 8.94 ≈ EV 9

Common EV100 reference values:

SceneEV100
Bright sunny day15
Overcast day12
Sunset/sunrise12-14
Shade on sunny day12
Indoor daylight8-10
Indoor artificial6-8
Night street4-6

Tip: If your calculated EV doesn't match the scene type, double-check your camera settings or adjust Exposure Compensation.

The filmback is the sensor/film size. This determines FOV characteristics and DOF behavior.

Cine Camera Actor → Current Camera Settings → Filmback

Common sizes:
  Full Frame:    36 × 24 mm
  Super 35:      24.89 × 18.66 mm
  APS-C:         23.6 × 15.6 mm
  Micro 4/3:     17.3 × 13 mm

For phones: Look up the actual sensor size, not the "equivalent" focal length.

Before ISO and Shutter Speed affect anything:

Project Settings → Rendering → Default Settings:
  [x] Apply Physical Camera Exposure  ← MUST be enabled

Post Process (PPV or Camera) → Exposure:
  Metering Mode: Manual  ← Required for physical values

UE5 takes only the denominator:

Real WorldUE5 Value
1/1000s1000
1/125s125
1/60s60
1s1 (minimum)

Higher value = faster shutter = darker image


Section 73: DOF Matching (8 min)

For accurate depth of field, use ACTUAL sensor size and ACTUAL focal length — NOT full-frame equivalents.

"Full-frame equivalent" describes FOV, not DOF. Two cameras with the same FOV can have completely different depth of field:

Full Frame @ 50mm f/2.0:
  → Large sensor + long focal length
  → Shallow DOF, creamy background blur

Phone @ 6.9mm f/1.68 (same FOV):
  → Tiny sensor + short focal length
  → Deep DOF, almost everything in focus

DOF is proportional to:

(FocalLength²) / SensorSize

A 50mm lens on full frame produces FAR more blur than a 6.9mm lens on a phone sensor, even at similar apertures.

Wrong approach:

"Phone says 24mm equivalent, so I'll use 24mm focal length"
→ DOF will be completely wrong

Correct approach:

Filmback: 9.8 × 7.4 mm (actual phone sensor)
Focal Length: 6.9 mm (actual phone lens)
→ DOF will match the phone's deep focus look

Phone sensors are tiny. Even at f/1.7, the short focal length produces deep DOF. The phone uses computational photography to simulate shallow DOF — because the optics physically cannot produce it.


Section 74: Example — Polaroid Go (5 min)

The Polaroid Go is an instant camera with fixed settings — perfect for matching.

PropertyValue
Film Size47 × 46 mm (nearly square)
Focal Length51.1 mm
Aperturef/9 (bright) to f/42 (dim)
Film ISO640 (fixed, Polaroid i-Type)
FocusFixed (~1m to infinity)
CINE CAMERA → CAMERA OPTIONS:
  ☑ Physically Based Camera: True

FILMBACK:
  Sensor Width:  47.0 mm
  Sensor Height: 46.0 mm

LENS SETTINGS:
  Min Focal Length: 51.1 mm
  Max Focal Length: 51.1 mm (fixed lens)
  Current Focal Length: 51.1 mm
  Current Aperture: 9.0

FOCUS SETTINGS:
  Focus Method: Manual
  Manual Focus Distance: 300000 cm (3km — simulates fixed focus)

POST PROCESS → CAMERA:
  ISO: 640
  Shutter Speed: 125 (1/125s — typical daylight; adjust for lighting)
  Aperture: 9.0

POST PROCESS → EXPOSURE:
  Metering Mode: Manual
  Exposure Compensation: 0 (adjust if needed)
  • 47×46mm filmback matches Polaroid's instant film frame
  • 51.1mm focal length gives the correct FOV (~48°)
  • f/9 aperture matches the camera's daylight setting
  • ISO 640 matches i-Type film sensitivity
  • Deep focus (3km) simulates the fixed-focus lens

Section 75: Example — Google Pixel 9 (5 min)

Modern phones have tiny sensors but fast lenses. Here's how to match the Pixel 9.

PropertyActual Value
Sensor Size9.8 × 7.4 mm
Focal Length6.9 mm
Aperturef/1.68 (fixed)
FOV82° horizontal
CINE CAMERA → CAMERA OPTIONS:
  ☑ Physically Based Camera: True

FILMBACK:
  Sensor Width:  9.8 mm
  Sensor Height: 7.4 mm

LENS SETTINGS:
  Min Focal Length: 6.9 mm
  Max Focal Length: 6.9 mm (fixed lens)
  Current Focal Length: 6.9 mm

LENS SETTINGS → APERTURE:
  Current Aperture: 1.68

POST PROCESS → CAMERA:
  ISO: 100 (varies by scene)
  Shutter Speed: 125
  Aperture: 1.68

Why 125 for the Pixel example?

Phone cameras use auto exposure, adjusting ISO and shutter speed constantly. The value 125 represents a typical daylight scenario:

Real shutter speed: 1/125 second
UE5 expects denominator only: 125

Calculating from real camera data:

If your phone's camera app shows "1/125s" or you extract EXIF data showing 0.008s exposure:

0.008 seconds = 1/125 second
UE5 value = 125

Common phone shutter speeds:

ConditionReal ShutterUE5 Value
Bright daylight1/2000s2000
Outdoor overcast1/500s500
Indoor daylight1/125s125
Indoor artificial1/60s60
Low light1/30s30

Tip: Check your photo's EXIF data (Google Photos → Info) to get the exact shutter speed used for a specific shot you want to match.

PropertyActual Value
Sensor Size5.6 × 4.2 mm
Focal Length2.2 mm
Aperturef/1.7 (fixed)
FOV123°
FILMBACK:
  Sensor Width:  5.6 mm
  Sensor Height: 4.2 mm

LENS SETTINGS:
  Current Focal Length: 2.2 mm
  Current Aperture: 1.7
PropertyActual Value
Sensor Size5.6 × 4.2 mm
Focal Length22 mm
Aperturef/2.8 (fixed)
FOV~22°
FILMBACK:
  Sensor Width:  5.6 mm
  Sensor Height: 4.2 mm

LENS SETTINGS:
  Current Focal Length: 22 mm
  Current Aperture: 2.8
CameraSensor (mm)Focal (mm)ApertureFOV
Polaroid Go47 × 4651.1f/948°
Pixel 9 Main9.8 × 7.46.9f/1.6882°
Pixel 9 Ultra5.6 × 4.22.2f/1.7123°
Pixel 9 Tele5.6 × 4.222f/2.822°

Section 76: Troubleshooting (5 min)

ProblemCauseFix
ISO/Shutter do nothingApply Physical Camera Exposure disabledEnable in Project Settings
ISO/Shutter do nothingMetering Mode not ManualSet Metering Mode to Manual
DOF doesn't matchUsing equivalent valuesUse actual sensor + focal length
Scene Capture doesn't matchDoesn't inherit settingsManually configure Post Process
Brightness differs in Play modeViewport exposure overrideSet viewport to "Game Settings"
Exposure changes unexpectedlyAuto exposure enabledSet Metering Mode to Manual
☐ Apply Physical Camera Exposure enabled (Project Settings)
☐ Physically Based Camera enabled (Cine Camera → Camera Options)
☐ Metering Mode set to Manual (PPV or Camera)
☐ Filmback matches actual sensor size (not equivalent)
☐ Current Focal Length matches actual lens (not equivalent)
☐ Both apertures set to same value (Lens Settings + Post Process)
☐ ISO matches reference camera
☐ Shutter Speed entered as denominator only (1/125s → 125)
☐ Focus distance set appropriately

Place BP_LHT_Calibration (from Part 16) in your scene:

  1. If 18% grey looks correct → exposure is right
  2. If 90% white is clipped → reduce exposure
  3. If 5% black has no detail → increase exposure
  4. If chrome shows clean reflections → lighting environment is good

Key Points:

  • Camera Component — basic viewpoint, specify FOV directly
  • Cine Camera Actor — physical simulation, FOV calculated from sensor + lens
  • Scene Capture 2D — renders to texture, must configure manually
  • Dual aperture problem — Lens Settings aperture = DOF, Post Process aperture = exposure
  • Apply Physical Camera Exposure must be enabled for ISO/Shutter to work
  • Camera matching requires actual values, not full-frame equivalents
  • DOF depends on actual sensor size — equivalents only describe FOV
  • Phone cameras have deep DOF due to tiny sensors and short focal lengths

You've now completed the camera and exposure pipeline — from physical camera concepts through UE5's systems and practical matching workflows. In Part 18: Wrap-Up, we'll summarize the key takeaways from the entire course.