Adaptive Camera - Official Documentation

Standalone Unreal Engine 5.8 C++ camera, depth of field, and post-tonemap RDG HLSL plugins by Fractum Software (Win64 and Linux).


Project maintained by fractumsoftware Hosted on GitHub Pages — Theme by mattgraham

Adaptive Camera: Strategy (UE 5.8)

Fab Title: Adaptive Camera: Strategy - Complete Camera System for Strategy Games
Author: Fractum Software
Support: fractumsoftware@gmail.com
Target Engine: Unreal Engine 5.8 (Win64, Linux - SM5/SM6 desktop renderers)

Blueprint-ready aerial strategy camera modifier and plug-and-play AAdaptiveCameraStrategyPawn supporting perspective and orthographic projections, 3D ground-pivot spherical orbit and tilt, 1:1 ground-grab map panning, exponential diagonal zoom-to-cursor, world XY map bounds, zoom-to-pitch curve, non-invasive overlay mode, altitude-coupled tilt-shift DOF, runtime overrides, accessibility scaling, 6-mode Blueprint-customizable 3D world-space SceneDepth tactical scan and gameplay markers with up to 4 concurrent world markers (TacticalScan, UnitSelection, AttackOrder, DefenseOrder, MoveOrder, ConstructOrder), directional perimeter map alerts, distance- and altitude-attenuated explosion shocks, low-altitude battlefield proximity rumble, and a single post-tonemap HLSL shader pass for real-time strategy, city-building, 4X, and isometric games in Unreal Engine 5.8.


1. Architecture and Modules

Adaptive Camera: Strategy (Plugins/AdaptiveCamera_Strategy/) is a standalone C++ plugin with zero external plugin or game-module dependencies. It can be installed on its own or alongside the other plugins in the Adaptive Camera suite in the same project.

Module Type LoadingPhase PlatformAllowList Responsibility
AdaptiveCameraStrategy Runtime PostConfigInit Win64, Linux Mounts /Plugin/AdaptiveCamera_Strategy (Shaders/AdaptiveCameraStrategyFX.usf), registers r.AdaptiveCameraStrategy.Enable and r.AdaptiveCameraStrategy.Debug CVars, manages FAdaptiveCameraStrategyViewExtension, and provides runtime classes (AAdaptiveCameraStrategyPawn, UAdaptiveCameraStrategyProfileDataAsset, UAdaptiveCameraStrategyCameraModifier, UAdaptiveCameraStrategyComponent, UAdaptiveCameraStrategyCombatZoneComponent, UAdaptiveCameraStrategyAnimNotify, and FAdaptiveCameraStrategy* structs). Zero editor UI dependencies.
AdaptiveCameraStrategyEditor Editor PostEngineInit Win64, Linux Registers FAdaptiveCameraStrategyEditorStyle (Resources/Icon128.png, Resources/IconToolbar.svg), the dockable Studio panel (AdaptiveCameraStrategyStudioTab) via FGlobalTabmanager, and the Play toolbar button (AdaptiveCameraStrategyStudioToolbarButton under AdaptiveCameraStrategyToolbar), supporting 4 feature rack tabs (Pan and Zoom, Shock and Rumble, Post-Process, Accessibility), top profile/preset bar, Live Preview, A/B Split Compare, Save as DataAsset (under /Game/), Revert Viewport, and Live PIE Testing.

2. Installation and Integration

Step 1 - Enable the Plugin and Choose Plug-and-Play Pawn or Component

  1. Copy AdaptiveCamera_Strategy/ into <PathToProject>/Plugins/ and enable it under Edit -> Plugins -> Camera -> Adaptive Camera: Strategy.
  2. Fastest Drop-In (AAdaptiveCameraStrategyPawn): Set your GameMode’s DefaultPawnClass to AAdaptiveCameraStrategyPawn (or a Blueprint subclass) and assign StrategyCameraComponent->DefaultProfile for immediate WASD/Edge-Scroll pan, 1:1 MMB drag-pan (opt-in LMB via bAllowLeftMouseGrabPan), cursor wheel zoom, RMB/Q-E/R-F orbit and tilt, and optional click-to-place world markers (bEnableClickWorldMarker). Direct input binds at priority -1000000 with bConsumeDirectInput = false and ignores clicks/scrolls over visible non-viewport UI widgets; disable bAllowZeroBoilerplateDirectInput when binding custom Enhanced Input actions exclusively.
  3. Existing Pawn / Controller Setup: Alternatively, open your own strategy or city-building APawn or APlayerController, click Add Component, and add Adaptive Camera: Strategy Component (UAdaptiveCameraStrategyComponent).
  4. (Optional) Attach Adaptive Camera: Strategy Combat Zone (UAdaptiveCameraStrategyCombatZoneComponent) to squads, vehicles, or battle actors to drive low-altitude battlefield proximity rumble automatically.

Step 2 - Select, Customize, or Save a UAdaptiveCameraStrategyProfileDataAsset

  1. Included Adaptable Starter Profiles (Content/Presets/ - 6 data assets):
    • /AdaptiveCamera_Strategy/Presets/DA_Strategy_GrandTacticalRTS (Tactical Field Command)
    • /AdaptiveCamera_Strategy/Presets/DA_Strategy_DioramaTiltShift4X (Miniature Tilt-Shift Diorama)
    • /AdaptiveCamera_Strategy/Presets/DA_Strategy_IsometricSquadCommand (Isometric Squad Tactics)
    • /AdaptiveCamera_Strategy/Presets/DA_Strategy_CityBuilderMacro (Urban Construction Macro)
    • /AdaptiveCamera_Strategy/Presets/DA_Strategy_GrandMapOverview (Grand Map Overview)
    • /AdaptiveCamera_Strategy/Presets/DA_Strategy_HeavySiegeBattlefield (Heavy Siege Battlefield) All 6 starter profiles serve as customizable baselines that can be tuned or duplicated for any strategy, tactics, 4X, or urban planning scale.
  2. Studio panel (AdaptiveCameraStrategyStudioTab): Open from the Level Editor Play toolbar to load any of the 6 starter profiles from the 3x2 Apply Preset selector in the top profile bar, tune parameters across 4 feature rack tabs (Pan and Zoom, Shock and Rumble, Post-Process, Accessibility), inspect Live Preview and A/B Split Compare, save new Data Assets under /Game/, apply/revert viewport previews (Ctrl+Z), or trigger 3D world shader modes in Live PIE Tester.

Step 3 - Connect Blueprint Events, Runtime Overrides, and Animation Notifies

Blueprint / C++ Function Signature and Defaults Gameplay Usage
BeginCursorGrabPan / EndCursorGrabPan () -> bool / (bool bPreserveMomentumInertia = true) Starts/releases 1:1 ray-plane ground-grab map panning anchored beneath the mouse cursor with smooth release glide inertia.
AddZoomDeltaAtCursor (float ZoomDelta) Zooms diagonally toward/away from the 3D world point currently under the mouse cursor (bEnableZoomToCursor), falling back to AddZoomDelta if no cursor ray is available.
AddZoomDeltaAtWorldPoint (float ZoomDelta, const FVector& AnchorWorldLocation, FVector2D NormalizedCursorUV = FVector2D(-1.0, -1.0), float AspectRatioOverride = 0.0f) Zooms while solving closed-form ground-pivot compensation so AnchorWorldLocation remains locked at its screen projection.
SetTargetZoomAlpha / AddZoomDelta (float ZoomAlpha01) / (float ZoomDelta) Sets or increments normalized target altitude [0..1] (0 = MinZoomAltitudeCm, 1 = MaxZoomAltitudeCm) and fires OnZoomAltitudeChanged.
SetPanVelocityInput / AddOrbitalYawInput (const FVector& WorldPanVelocity) / (float DeltaYawDegrees) Drives damped horizontal pan inertia/momentum tilt and smoothed 360-degree yaw orbit around the 3D ground pivot.
AddOrbitalPitchInput / SetOrbitalPitchTarget / ResetOrbitalPitch (float DeltaPitchDegrees) / (float TargetAbsolutePitchDegrees) / (bool bImmediate = false) Drives smoothed floor-to-horizon spherical pitch tilt ([-88, +10] deg) around the 3D ground pivot while keeping zoom-to-cursor 1:1 aligned.
FocusMapLocation (const FVector& TargetWorldLocation) Glides camera ground pivot focus to a 3D world map coordinate (FocusSnapInterpSpeed).
TraceWorldUnderCursor (FVector& OutWorldLocation, FVector& OutSurfaceNormal, AActor*& OutHitActor, ECollisionChannel TraceChannel = ECC_Visibility) const -> bool Traces geometry along TraceChannel beneath the cursor and returns false on sky/void misses without fallback plane projection.
TriggerWorldMarkerAtCursor / TriggerWorldMarker (const FAdaptiveCameraStrategyWorldMarkerConfig& MarkerConfig, ...) Traces with PanZoomSettings.CursorTraceChannel, renders any of the 6 customizable 3D SceneDepth markers (including translucent/water surfaces), and broadcasts OnWorldMarkerTriggered only on valid surface hits. Aliases TriggerCustomWorldMarker / TriggerCustomWorldMarkerAtCursor share identical behavior across Component and CameraModifier.
CycleActiveWorldMarkerMode / SetActiveWorldMarkerMode (bool bForward = true) / (EAdaptiveCameraStrategyScanMode NewMode) Cycles or selects the active default 3D world marker mode at runtime without mutating data assets.
TriggerTacticalScanAtCursor / TriggerTacticalScanPulse (float Intensity = 1.0, float DurationOverride = -1.0) Launches an expanding 3D world-space TacticalScan wave, reticle, and coordinate grid.
TriggerWorldShaderMode / TriggerWorldShaderModeAtCursor (EAdaptiveCameraStrategyScanMode Mode, ...) Launches TacticalScan, UnitSelection, AttackOrder, DefenseOrder, MoveOrder, or ConstructOrder at world or cursor coordinates.
SetScanModeEnabled / SetTacticalShaderSystemEnabled (EAdaptiveCameraStrategyScanMode Mode, bool bEnabled) / (bool bEnabled) Enables or disables individual or all 6 3D world shader modes at runtime without mutating data assets.
TriggerMapAlert / TriggerMapAlertWithColor (AlertWorldLocation, ...) Triggers profile-colored or custom-colored off-screen directional edge beacons (up to 4 concurrent channels, auto-hiding when framed; OnMapAlertTriggered).
Trigger Explosion Shock (TriggerArtilleryShock) / Compute Explosion Shock Attenuation (ComputeArtilleryShockAttenuation) (ImpactWorldLocation, Intensity = 1.0) Triggers distance- and altitude-attenuated explosion shockwave and additive SceneFringeIntensity over scene PostProcessVolume/camera chromatic baseline (On Explosion Shock Triggered / OnArtilleryShockTriggered).
RegisterOrUpdateCombatZone / UnregisterCombatZone / ClearCombatZones (FName ZoneId, ...) Manages battlefield combat zones driving low-altitude proximity rumble (OnCombatProximityIntensityChanged).
SwitchProfile / ApplyProfileSnapshot (NewProfile / NewSnapshot, float BlendTime = -1.0) Blends between profiles or dynamically modified FAdaptiveCameraStrategyProfileSnapshot structs while preserving active runtime overrides.

3. Adaptable Starter Profiles Summary (6 Built-In data assets)

All 6 starter profiles default to Profile.MasterIntensity = 0.65 with each category MasterIntensity = 1.0.

Parameter Tactical Field Command Miniature Tilt-Shift Diorama Isometric Squad Tactics Urban Construction Macro Grand Map Overview Heavy Siege Battlefield
MinZoomAltitudeCm / MaxZoomAltitudeCm 450 / 30000 350 / 22000 320 / 18000 300 / 36000 1200 / 95000 480 / 32000
NearZoomPitchDegrees / FarZoomPitchDegrees -34 / -68 -32 / -64 -38 / -64 -30 / -70 -42 / -82 -30 / -68
NearZoomFOV / FarZoomFOV (deg) 60 / 56 56 / 52 58 / 54 58 / 56 58 / 54 60 / 55
PanDampingSpeed / MomentumTilt (deg) 9.5 / 1.4 8.0 / 1.1 11.5 / 1.8 9.5 / 0.9 8.5 / 0.85 9.5 / 1.9
bEnableAerialHover (Amplitude cm) false (0.0) true (2.5) false (0.0) false (0.0) false (0.0) false (0.0)
bEnableTiltShiftDOF (Near / Far f-stop) true (5.6 / 4.0) true (2.8 / 2.0) true (6.3 / 4.8) true (11.0 / 8.0) false (16.0) true (4.0 / 5.6)
bEnableTiltShiftEdgeBlur (Strength) true (0.28) true (0.42) true (0.20) false (0.0) false (0.0) true (0.22)
DefaultScanMode AttackOrder TacticalScan MoveOrder ConstructOrder TacticalScan AttackOrder
ScanWorldMaxRadiusCm / GridCellCm 5500 / 300 4500 / 250 3200 / 175 6800 / 400 22000 / 1200 7500 / 350
Explosion Shock (deg / PosCm) 1.8 / 24 1.2 / 16 2.4 / 32 Off 1.2 / 20 4.0 / 52
Combat Proximity Rumble true (5.5 cm) true (4.0 cm) true (7.0 cm) false false true (11.5 cm)

4. Automation Tests and Packaging

Includes 26 built-in C++ automation tests (AdaptiveCamera.Strategy.*) under WITH_DEV_AUTOMATION_TESTS covering spring convergence, preset blending, accessibility scaling, orbital input, zoom-to-cursor, cliff and floorless terrain elevation, low-priority pawn input gating, floor clearance, orthographic mode, 3D SceneDepth and translucent surface markers, snow/bright-surface compositing, off-screen map alerts, explosion shock attenuation, additive SceneFringeIntensity, AssetManager cook rules, combat proximity rumble, UnPossess cleanup, Blueprint runtime overrides, and pause/cutscene bypass:

& "<UE_5.8>\Engine\Binaries\Win64\UnrealEditor-Cmd.exe" "<PathToProject>.uproject" `
  -unattended -nop4 -nosplash -RenderOffScreen -d3d12 -rdgimmediate -rdgvalidation `
  "-ExecCmds=Automation RunTests AdaptiveCamera.Strategy;Quit" "-TestExit=Automation Test Queue Empty"

Packaging (BuildPlugin)

Config/FilterPlugin.ini includes /Config/..., /Content/..., /Resources/..., /Shaders/..., /Source/..., and /README.md under [FilterPlugin] so BuildPlugin packages source, all 6 starter profiles, icon resources, and Shaders/AdaptiveCameraStrategyFX.usf without Binaries/ or Intermediate/:

# Ensure LINUX_MULTIARCH_ROOT points to Unreal Engine 5.8's v26_clang-20.1.8-rockylinux8 toolchain when compiling Linux targets
& "<UE_5.8>\Engine\Build\BatchFiles\RunUAT.bat" BuildPlugin `
  -Plugin="<PathToProject>\Plugins\AdaptiveCamera_Strategy\AdaptiveCamera_Strategy.uplugin" `
  -Package="<OutputDir>\AdaptiveCamera_Strategy" `
  -TargetPlatforms=Win64+Linux -Rocket -StrictIncludes

5. License and Support