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: Shooter - First-Person and Third-Person Camera and Optical FX (UE 5.8)

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

Blueprint-ready first-person and third-person shooter camera modifier, raycast autofocus DOF, accessibility scaling, animation notifies, and post-tonemap HLSL optical shader pass with 6 adaptable starter UDataAsset profiles (Modern FPS, Classic FPS, Sniper Optics, Tactical TPS, Modern TPS, Hero Shooter) in Unreal Engine 5.8.


1. Architecture and Modules

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

Module Type LoadingPhase PlatformAllowList Responsibility
AdaptiveCameraShooter Runtime PostConfigInit Win64, Linux Mounts /Plugin/AdaptiveCamera_Shooter (Shaders/AdaptiveCameraShooterFX.usf), registers CVars r.AdaptiveCameraShooter.Enable and r.AdaptiveCameraShooter.Debug, registers FAdaptiveCameraShooterViewExtension after FCoreDelegates::OnPostEngineInit, and provides UAdaptiveCameraShooterProfileDataAsset, UAdaptiveCameraShooterCameraModifier, UAdaptiveCameraShooterComponent, UAdaptiveCameraShooterAnimNotify, and FAdaptiveCameraShooter* structs. Zero editor dependencies.
AdaptiveCameraShooterEditor Editor PostEngineInit Win64, Linux Registers FAdaptiveCameraShooterEditorStyle (Resources/Icon128.png, Resources/IconToolbar.svg), the dockable Adaptive Camera: Shooter panel (Tab ID: AdaptiveCameraShooterStudioTab) via FGlobalTabmanager, and the Play toolbar button (AdaptiveCameraShooterStudioToolbarButton) in LevelEditor.LevelEditorToolBar.PlayToolBar (AdaptiveCameraShooterToolbar). Provides 4 feature rack tabs (Movement, Combat and ADS, Post-Process, Accessibility), top-bar preset selector and Save as DataAsset (under /Game/), Live Preview (ADS, Suppression, Damage, Flashbang), A/B Split Compare, Scene Camera Sync -> Apply to Viewport Camera / Revert Viewport (Ctrl+Z), and Live PIE Impulse Testing.

2. Installation and Integration

Step 1 - Enable the Plugin and Add UAdaptiveCameraShooterComponent

  1. Copy AdaptiveCamera_Shooter/ into <PathToProject>/Plugins/ and enable it under Edit -> Plugins -> Camera -> Adaptive Camera: Shooter or in <PathToProject>.uproject:
    "Plugins": [
      { "Name": "AdaptiveCamera_Shooter", "Enabled": true }
    ]
    
  2. Open your local player APlayerController, ACharacter, or APawn Blueprint/C++ class, click Add Component, and add Adaptive Camera: Shooter Component (UAdaptiveCameraShooterComponent).
  3. The component guards against dedicated servers and non-local pawns, registering UAdaptiveCameraShooterCameraModifier on the owning local player’s APlayerCameraManager during BeginPlay (and across possession/respawn transitions), auto-sampling ACharacter crouch, jump/fall, and landing states, and optionally driving an attached 1P weapon USceneComponent during corner lean (SetLeanWeaponComponent).

Step 2 - Select, Customize, or Save a UAdaptiveCameraShooterProfileDataAsset

  1. Included Adaptable Starter Profiles (Content/Presets/ - 6 data assets):
    • /AdaptiveCamera_Shooter/Presets/DA_Shooter_TacticalMilSim (Modern FPS - FirstPerson locked, 90 / 62 deg FOV)
    • /AdaptiveCamera_Shooter/Presets/DA_Shooter_ClassicFPS (Classic FPS - FirstPerson locked, 102 / 86 deg FOV, zero DOF)
    • /AdaptiveCamera_Shooter/Presets/DA_Shooter_SniperADS (Sniper Optics - FirstPerson default with 3P-compatible scope entry and scoped 3P lock, 88 / 16 deg FOV, reactive HLSL Sniper Scope)
    • /AdaptiveCamera_Shooter/Presets/DA_Shooter_TacticalTPS (Tactical TPS - ThirdPerson, -12 cm pullback, 76 / 54 deg FOV, crosshair-aligned shoulder convergence enabled)
    • /AdaptiveCamera_Shooter/Presets/DA_Shooter_ModernActionTPS (Modern TPS - ThirdPerson, +28 cm pullback, 84 / 62 deg FOV)
    • /AdaptiveCamera_Shooter/Presets/DA_Shooter_HeroShooter (Hero Shooter - ThirdPerson, +125 cm pullback, 98 / 78 deg FOV) All built-in profiles serve as adaptable starting baselines that you can duplicate, customize, or save as new UDataAsset profiles for each weapon or stance.
  2. Adaptive Camera: Shooter Panel: Open from the Level Editor Play toolbar (AdaptiveCameraShooterStudioTab):
    • Switch presets from the top header bar (3x2 Apply Base Preset selector, Profile Info, Save as DataAsset…, Master Intensity, and Bypass) and edit parameters across the 4 feature rack tabs (Movement, Combat and ADS, Post-Process, Accessibility), where every feature card pairs an explicit enable/disable toggle with its dedicated 0% .. 100% intensity bar and direct parameter controls.
    • Use Live Preview, A/B Split Compare, Scene Camera Sync -> Apply to Viewport Camera / Revert Viewport (Ctrl+Z), and Live PIE Tester (Recoil, Suppression, Damage, Explosion, Grenade, Reload, Flashbang, Landing, Jump, Toggle ADS, Lean: Center/Left/Right).

Step 3 - Connect Blueprint Events, Delegates, and Animation Notifies

Blueprint / C++ API Signature and Defaults Gameplay Usage
TriggerRecoil (float Intensity = 1.0, float HorizontalBias = 0.0) Damped-spring weapon recoil impulse on fire (scaled in 3P by ThirdPersonHipRecoilScale / ThirdPersonADSRecoilScale).
TriggerReloadCameraMotion (float DurationOverride = -1.0, float Intensity = 1.0) Synchronized reload camera motion, scaled in 3P by ThirdPersonReloadMotionScale.
CancelReloadCameraMotion () Smoothly cancels an active reload camera motion sequence.
SetSuppressionLevel (float NewSuppression01) Sets passive incoming-fire suppression state ([0..1]), sustaining across SuppressionSustainDuration before decaying with peripheral world blur, desaturation, and tunnel vignette.
TriggerSuppression (FVector ThreatOrigin, float Intensity = 1.0) Accumulates passive incoming-fire suppression (and optional directional flinch) from ThreatOrigin.
TriggerDamageImpact (FVector DamageOrigin, float Intensity = 1.0) Directional spring impulse and HLSL damage indicator pointing toward DamageOrigin.
TriggerExplosionShock (FVector ExplosionOrigin, float Intensity = 1.0) Blast shockwave vibration plus directional impulse rotating Yaw/Roll away from ExplosionOrigin.
TriggerFlashbang (FVector FlashOrigin, float Intensity = 1.0, float DurationOverride = -1.0) Opaque white or dark-slate blindness hold (FlashbangBlindnessHoldRatio) with look-away angular attenuation and visual recovery trail.
TriggerJump (float Intensity = 1.0) Triggers jump camera motion (auto-detected on ACharacter).
TriggerLandingImpact (float ImpactSpeedZ = 600.0) Fall-speed-scaled landing absorption and micro-vibration up to LandingImpactMaxScale.
TriggerGrenadeThrow (float Intensity = 1.0) Quick grenade throw motion (full scale in 1P; scaled by ThirdPersonGrenadeThrowScale in 3P when bAllowGrenadeThrowInThirdPerson = true).
StartGrenadeWindup () Enters a static grenade cook hold, accumulating charge up to GrenadeMaxCookDuration.
ReleaseGrenadeThrow (float Intensity = 1.0) Releases a held grenade throw, scaling camera impulse between GrenadeQuickThrowScale and GrenadeCookedThrowMaxScale by cook duration.
CancelGrenadeWindup () Smoothly relaxes an active grenade wind-up back to neutral.
SetAimingState (bool bNewAiming) Enables/disables ADS: zoom transition, ADSApertureFStop, optional near-weapon blur (bEnableADSNearWeaponBlur), reactive HLSL Sniper Scope (bEnableSniperScope), optic curvature, 1P ADS weapon micro-motion, and 3P ADS framing.
SetADSZoomFOVOverride / SetWeaponZoomMagnification / AdjustADSZoomFOV / ClearADSZoomFOVOverride (float TargetADSFOV) / (float Magnification) / (float DeltaFOV) / () Non-mutating runtime variable ADS/scope zoom overrides ([5..115 deg]) for variable-optic scopes and weapon attachments (GetEffectiveADSFOV, HasADSZoomFOVOverride).
GetRecommendedLookSensitivityScale (pure) () const -> float Returns a look sensitivity multiplier [0.06..1.5] scaled to live ADS and Sniper Scope FOV.
IsAiming / IsSprinting / GetLeanInput / GetCurrentProfile (pure) () const Reads current component ADS aim state, sprint flag, normalized lean input [-1..+1], and active UAdaptiveCameraShooterProfileDataAsset.
IsSniperScopeActive / GetSniperScopeAlpha / GetCurrentFocusDistance (pure) () const Queries active Sniper Scope state, normalized [0..1] scope weight, and current raycast autofocus focal distance (cm).
SetCrouchState / ClearCrouchStateOverride (bool bNewCrouched) / () Sets explicit crouch override or clears it to resume automatic ACharacter / UPawnMovementComponent detection for 1P/3P crouch transitions.
SetLeanInput (float NewLeanInput) Normalized lean input [-1..+1] driving lateral/forward corner peeking (LeanHorizontalOffset, LeanForwardPeekOffset) with 1P weapon sync or ECC_Camera-swept 3P peeking.
SetLeanWeaponComponent / ClearLeanWeaponComponent (USceneComponent* InWeaponOrArmsComponent) / () Couples a 1P weapon/arms component so UAdaptiveCameraShooterComponent applies synchronized lean and ADS micro-motion automatically.
GetFirstPersonLeanWeaponTransform / GetFirstPersonADSWeaponMicroMotion / GetFirstPersonViewmodelSyncTransform (pure) (FVector& OutLocalOffset, FRotator& OutLocalRotation) const Computes additive local-space 1P weapon lean transform, ADS recoil/breathing micro-motion, or combined viewmodel sync transform for Blueprint or AnimGraph use.
SwitchProfile (UAdaptiveCameraShooterProfileDataAsset* NewProfile, float BlendTime = -1.0) Blends between two profiles at runtime while preserving active runtime overrides (ignores invalid/null profiles).

Runtime Overrides and Perspective API (Category = "Adaptive Camera|Runtime")

Exposed identically on UAdaptiveCameraShooterComponent and UAdaptiveCameraShooterCameraModifier: SetPerspectiveMode, ClearPerspectiveModeOverride, GetPerspectiveMode, HasPerspectiveModeOverride, IsThirdPersonPerspectiveLocked, SetShoulderSide, ToggleShoulderSide, GetShoulderSide, SetCrouchState, ClearCrouchStateOverride, IsCrouchedState, SetMasterIntensityOverride, ClearMasterIntensityOverride, SetRuntimeMasterIntensityScale, ClearRuntimeMasterIntensityScale, GetEffectiveMasterIntensity, SetAccessibilityOverrides, ClearAccessibilityOverrides, SetMotionIntensityScale, SetCameraRollScale, SetChromaticAberrationScale, SetReduceFlashIntensity, SetUseDarkFlashbang, SetBypassForCineCamera, and SetBypassForExternalCameraActors.

Shipping, Renderer, and Asset Manager Notes


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, and remain open for per-project tuning in the Studio panel or DataAsset editor.

Parameter Modern FPS (1P) Classic FPS (1P) Sniper Optics (1P/3P) Tactical TPS (3P) Modern TPS (3P) Hero Shooter (3P)
PerspectiveMode / bLock3P FirstPerson / true FirstPerson / true FirstPerson / false (Scoped) ThirdPerson / false ThirdPerson / false ThirdPerson / false
ThirdPersonCameraPullbackCm (cm) 0.0 0.0 0.0 -12.0 +28.0 +125.0
bEnableThirdPersonShoulderConvergence false false false true false false
BaseFOV / ADSFOV (deg) 90.0 / 62.0 102.0 / 86.0 88.0 / 16.0 76.0 / 54.0 84.0 / 62.0 98.0 / 78.0
SprintFOVOffset (deg) 2.6 3.2 2.2 2.4 3.0 3.6
MaxStrafeRollDegrees (deg) 2.60 2.40 2.10 1.65 1.85 2.20
LeanHorizontalOffset (cm) / LeanInterpSpeed 34.0 / 4.4 24.0 / 8.5 32.0 / 4.0 36.0 / 4.8 34.0 / 5.8 30.0 / 7.5
3P Shoulder Right / 3P ADS Right (cm) 54.0 / 62.0 50.0 / 54.0 54.0 / 62.0 56.0 / 64.0 52.0 / 60.0 42.0 / 50.0
LandingImpactMaxDropCm (cm) 64.0 22.0 68.0 52.0 52.0 42.0
RecoilVerticalKick (deg) / 3P Hip Scale 1.32 / 0.28 0.70 / 0.22 2.60 / 0.30 1.15 / 0.26 1.05 / 0.24 0.92 / 0.24
bEnableDynamicDOF / ApertureFStop (Hip/ADS) true / 6.3 / 2.6 false / 16.0 / 8.0 true / 7.1 / 1.8 true / 6.3 / 2.8 true / 5.6 / 3.2 true / 14.0 / 8.0
MaxFocusTraceDistance (cm) 15000.0 20000.0 85000.0 15000.0 15000.0 25000.0
ADSNearBlurSizePercent (%) 14.0 0.0 (off) 0.0 (off) 13.5 13.5 0.0 (off)
bEnableSniperScope / Parallax false / - false / - true / 1.28 false / - false / - false / -
SuppressionDesaturation / EdgeBlur 0.78 / 0.85 0.54 / 0.58 0.80 / 0.86 0.74 / 0.80 0.70 / 0.76 0.60 / 0.65
FlashbangMaxDuration (s) / StuckFrame 4.4 / 0.88 3.2 / 0.72 4.5 / 0.88 4.0 / 0.82 3.8 / 0.82 3.5 / 0.78

4. Automation Tests and Fab Packaging

# 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_Shooter\AdaptiveCamera_Shooter.uplugin" `
  -Package="<OutputDir>\AdaptiveCamera_Shooter" `
  -TargetPlatforms=Win64+Linux -Rocket -StrictIncludes

5. License and Support