Standalone Unreal Engine 5.8 C++ camera, depth of field, and post-tonemap RDG HLSL plugins by Fractum Software (Win64 and Linux).
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.
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.
AAdaptiveCameraStrategy*, UAdaptiveCameraStrategy*, FAdaptiveCameraStrategy*, and EAdaptiveCameraStrategy*; primary asset type AdaptiveCameraStrategyProfile.AAdaptiveCameraStrategyPawn: 360-degree yaw orbit and floor-to-horizon pitch tilt ([-88, +10] deg) around a 3D ground focus pivot (bOrbitAroundGroundPivot) with terrain-aware elevation sampling, floor clearance protection (MinCameraFloorClearanceCm, default 95.0 cm), world XY play-area clamping (bEnableMapBounds, MapBoundsMinXY, MapBoundsMaxXY), 1:1 ground-grab map panning (BeginCursorGrabPan, EndCursorGrabPan) with release glide inertia, perspective and orthographic projection modes (bEnableOrthographicProjection, MinOrthoWidthCm, MaxOrthoWidthCm, SetOrthographicProjectionOverride), exponential altitude and orthographic zoom (bUseExponentialZoom), Zoom-to-Cursor (bEnableZoomToCursor, AddZoomDeltaAtCursor, AddZoomDeltaAtWorldPoint) keeping hovered landmarks aligned across perspective and orthographic views, configurable CursorTraceChannel (default ECC_Visibility), non-invasive overlay mode (bDriveAltitudeAndPitch = false), owning pawn XY synchronization (bSyncOwningPawnXY), optional vertical hover, and a ready-to-use AAdaptiveCameraStrategyPawn delivering WASD/Arrow/Edge-Scroll pan, MMB grab-pan (optional LMB grab-pan via bAllowLeftMouseGrabPan), cursor wheel zoom, RMB/Q-E/R-F orbit and tilt, and optional click-to-place world markers (bEnableClickWorldMarker) using non-consuming low-priority direct input (Priority = -1000000) that yields to higher-priority PlayerController/EnhancedInput bindings and visible non-viewport UI widgets.300 - 95000 cm across built-in presets, configurable up to 120000 cm), near/far pitch and FOV interpolation, optional UCurveFloat, altitude-coupled physical aperture (NearAltitudeFStop, FarAltitudeFStop), ground autofocus trace, and optional screen-space diorama focus band.SceneDepth Markers (Up to 4 Concurrent): Reconstructs SceneDepthTexture in world space with LWC support inside the single post-tonemap RDG pass so up to 4 simultaneous world markers conform to terrain, buildings, and units across perspective and orthographic views:
TacticalScan: Expanding radial sonar wave (ScanWorldMaxRadiusCm), coordinate grid (WorldGridCellSizeCm), and world reticle (TriggerTacticalScanAtCursor, TriggerTacticalScanPulse).UnitSelection: World-anchored selection/regroup ring with 4 inward directional arrows (UnitSelectionColor).AttackOrder: High-contrast red crosshair marker with diagonal strike ticks (AttackOrderColor).DefenseOrder: Upright SDF shield emblem inside dual hexagonal/circular bastion rings (DefenseOrderColor).MoveOrder: Waypoint beacon rings with central directional chevron (MoveOrderColor).ConstructOrder: Architectural square building plot with corner brackets and interior foundation sub-grid (ConstructOrderColor).FAdaptiveCameraStrategyWorldMarkerConfig: VisualStyle, GameplayActionTag, CustomColor, WorldRadiusCm, DurationSeconds, bShowEmblemIcon) via TriggerWorldMarker or TriggerWorldMarkerAtCursor, broadcasting OnWorldMarkerTriggered (GameplayActionTag, VisualStyle, WorldLocation, SurfaceNormal, HitActor) directly to Blueprint gameplay mechanics.TriggerMapAlert) and custom-colored (TriggerMapAlertWithColor) off-screen screen-edge beacons (bDirectionalMapAlertEdge, up to 4 concurrent colors) projected through the active Perspective/Orthographic frustum onto the exact viewport border facing each off-screen world location, fading cleanly once the target enters the camera frame.TriggerArtilleryShock) scales impulse by 3D distance and camera altitude; UAdaptiveCameraStrategyCombatZoneComponent and RegisterOrUpdateCombatZone drive low-altitude battlefield micro-vibrations and broadcast OnCombatProximityIntensityChanged for audio mixing.MasterIntensity Scaling: Every profile asset exposes MasterIntensity (default 0.65) and every feature struct exposes MasterIntensity ([0.0 .. 1.0], default 1.0).AdaptiveCamera_Strategy.uplugin):| 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. |
AdaptiveCamera_Strategy/ into <PathToProject>/Plugins/ and enable it under Edit -> Plugins -> Camera -> Adaptive Camera: Strategy.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.APawn or APlayerController, click Add Component, and add Adaptive Camera: Strategy Component (UAdaptiveCameraStrategyComponent).UAdaptiveCameraStrategyCombatZoneComponent) to squads, vehicles, or battle actors to drive low-altitude battlefield proximity rumble automatically.UAdaptiveCameraStrategyProfileDataAssetContent/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.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.| 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. |
Category = "Adaptive Camera|Runtime" / "Adaptive Camera|Strategy"): Matching setters/getters on both Component and CameraModifier (SetMasterIntensityOverride, SetRuntimeMasterIntensityScale, SetAccessibilityOverrides, SetMotionIntensityScale, SetCameraRollScale, SetChromaticAberrationScale, SetReduceFlashIntensity, SetBypassForCineCamera, SetBypassForExternalCameraActors, SetOrthographicProjectionOverride, ClearOrthographicProjectionOverride, IsOrthographicProjectionActive, GetCurrentOrthoWidthCm, SetMapBoundsOverride, ClearMapBoundsOverride, HasMapBoundsOverride, SetZoomAltitudeRangeOverride, ClearZoomAltitudeRangeOverride, HasZoomAltitudeRangeOverride, GetActiveWorldMarkerCount, SetGroundReferenceElevation, SetActiveWorldMarkerMode, CycleActiveWorldMarkerMode, SetScanModeEnabled, ClearScanModeOverrides, SetTacticalShaderSystemEnabled, ClearTacticalShaderSystemOverride, GetActiveSettings, GetCurrentZoomAlpha, GetTargetZoomAlpha, GetLastGroundAimPoint).UAdaptiveCameraStrategyAnimNotify): Supports TacticalScanPulse, UnitSelectionMarker, AttackOrderMarker, DefenseOrderMarker, MoveOrderMarker, ConstructOrderMarker, MapAlert, and ArtilleryShock (labeled Explosion Shock in Editor UI).AdaptiveCameraStrategyFX.usf targets desktop SDR post-tonemap output (r.HDR.EnableHDROutput 0, SM5/SM6, non-VR), with automatic camera-projected 2D fallback when Forward Shading MSAA (NumSamples > 1) is active, translucent horizontal plane projection for non-depth-writing surfaces, and anti-washout compositing on bright snow/sand (SceneColorRGB > 0.90).bEnableOrthographicProjection = true), physical DepthOfFieldFstop is automatically disabled and only explicit bEnableTiltShiftEdgeBlur screen-space edge blur applies (CameraToViewTarget uses the resolved ground aim target).FAdaptiveCameraStrategyModule registers AdaptiveCameraStrategyProfile with UAssetManager at initialization (/AdaptiveCamera_Strategy/Presets, Rules=(CookRule=AlwaysCook), bHasBlueprintClasses=False). To explicitly mirror this in Config/DefaultGame.ini under [/Script/Engine.AssetManagerSettings]:
+PrimaryAssetTypesToScan=(PrimaryAssetType="AdaptiveCameraStrategyProfile",AssetBaseClass="/Script/AdaptiveCameraStrategy.AdaptiveCameraStrategyProfileDataAsset",bHasBlueprintClasses=False,bIsEditorOnly=False,Directories=((Path="/AdaptiveCamera_Strategy/Presets")),Rules=(Priority=-1,ChunkId=-1,bApplyRecursively=True,CookRule=AlwaysCook))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) |
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"
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
fractumsoftware@gmail.comWin64 and Linux (SM5/SM6 renderers, non-VR).