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: 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.
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.
UAdaptiveCameraShooter*, FAdaptiveCameraShooter*, and EAdaptiveCameraShooter*; primary asset type AdaptiveCameraShooterProfile.EAdaptiveCameraShooterPerspectiveMode (FirstPerson, ThirdPerson) with optional third-person perspective lock (bLockThirdPersonPerspective and bLockThirdPersonWhileScoped), optional incoming FOV preservation (bUseIncomingBaseFOV), and runtime overrides (SetPerspectiveMode, SetShoulderSide, ToggleShoulderSide, SetCrouchState, IsThirdPersonPerspectiveLocked). third-person mode provides configurable over-the-shoulder framing, crosshair-aligned shoulder swaps (bEnableThirdPersonShoulderConvergence, ThirdPersonConvergenceDistance), crouch camera transitions (ThirdPersonCrouchVerticalOffset), ADS tightening, ECC_Camera collision avoidance, and independent 3P scaling for stride, breathing, recoil, reload, and grenade motion.Sniper Optics): High-magnification scope FOV (88 / 16 deg, DataAsset ADSFOV range [5..95 deg]) with runtime variable zoom overrides ([5..115 deg] via SetADSZoomFOVOverride, SetWeaponZoomMagnification, AdjustADSZoomFOV, ClearADSZoomFOVOverride, GetEffectiveADSFOV), FOV-scaled look sensitivity query (GetRecommendedLookSensitivityScale), camera-forward raycast autofocus up to 1000 m (MaxFocusTraceDistance, ignoring owner pawn and attached weapons), telephoto diaphragm DOF (ADSApertureFStop = 1.8), and a reactive HLSL ocular mask (bEnableSniperScope) combining circular lens defocus, eye-relief shadow, and reticle parallax driven by turn inertia, breathing, stride, and recoil. Assign any custom 1:1 or 16:9 RGBA UTexture2D reticle (SniperScopeCustomTexture, resolved via FRHITextureReference) or use the built-in HLSL mil-dot reticle (nullptr default).bEnableADSNearWeaponBlur), lateral strafe roll (MaxStrafeRollDegrees), sprint camera motion (bEnableSprintCameraMotion), crouch transitions, corner lean (LeanInterpSpeed, LeanHorizontalOffset, LeanForwardPeekOffset) coupled to the 1P weapon (GetFirstPersonLeanWeaponTransform, GetFirstPersonADSWeaponMicroMotion, GetFirstPersonViewmodelSyncTransform, SetLeanWeaponComponent), jump and landing camera motion (TriggerJump, LandingImpactMaxDropCm), synchronized reload camera motion (TriggerReloadCameraMotion), quick and held grenade throw motion (StartGrenadeWindup, ReleaseGrenadeThrow, GetGrenadeCookAlpha), and explosion shockwaves (TriggerExplosionShock).SetSuppressionLevel and TriggerSuppression drive a non-vibrating passive incoming-fire state (SuppressionSustainDuration + progressive decay) with peripheral tunnel vignette, progressive desaturation, and world blur. TriggerDamageImpact applies directional camera impulse and an edge-anchored HLSL damage indicator.TriggerFlashbang holds opaque white or dark slate blindness (bUseDarkFlashbang and bReduceFlashIntensity supported) followed by an extended stuck-frame and ghost shadow-frame recovery trail.MasterIntensity Scaling: The profile asset (UAdaptiveCameraShooterProfileDataAsset::MasterIntensity, default 0.65) and every category struct (MasterIntensity, default 1.0, range [0.0 .. 1.0]) expose independent intensity scalars, where 0.0 disables involuntary output and 1.0 applies full configured values without compounding attenuation. Voluntary third-person shoulder, crouch, and ADS framing remains active regardless of MasterIntensity or MotionIntensityScale.AdaptiveCamera_Shooter.uplugin):| 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. |
/Plugin/AdaptiveCamera_Shooter):
FAdaptiveCameraShooterFXPS (Shaders/AdaptiveCameraShooterFX.usf) runs at EPostProcessingPass::Tonemap via RDG (AddDrawScreenPass), capturing and sampling per-slot IPooledRenderTarget stuck-frames during active flashbang recovery and releasing pooled targets when inactive.FAdaptiveCameraShooterViewExtension isolates runtime slots keyed by (Scene, LocalPlayerIndex) (MaxSupportedLocalPlayers = 4, MaxRuntimeShaderSlots = 16) via SetRuntimePassParameters_GameThread from the editor viewport preview slot (SetEditorPreviewPassParameters_GameThread), skipping scene/reflection/planar captures.UVAndScreenPos.xy through Input_UVViewportMin and Input_UVViewportSizeInverse and clamps all sample UVs (including suppression blur taps, stuck-frame/shadow-frame UVs, and chromatic shift taps) to [Input_UVViewportBilinearMin, Input_UVViewportBilinearMax] for screen percentage, split-screen, and Movie Render Queue compatibility.r.AdaptiveCameraShooter.Enable (default 1, ECVF_RenderThreadSafe): globally enables or disables the HLSL post-tonemap pass.r.AdaptiveCameraShooter.Debug (default 0, ECVF_RenderThreadSafe): draws a top diagnostic telemetry bar inside the active ViewRect showing MasterIntensity, Optics, Suppression, Damage Impact, and Flashbang levels.UAdaptiveCameraShooterComponentAdaptiveCamera_Shooter/ into <PathToProject>/Plugins/ and enable it under Edit -> Plugins -> Camera -> Adaptive Camera: Shooter or in <PathToProject>.uproject:
"Plugins": [
{ "Name": "AdaptiveCamera_Shooter", "Enabled": true }
]
APlayerController, ACharacter, or APawn Blueprint/C++ class, click Add Component, and add Adaptive Camera: Shooter Component (UAdaptiveCameraShooterComponent).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).UAdaptiveCameraShooterProfileDataAssetContent/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.AdaptiveCameraShooterStudioTab):
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.Ctrl+Z), and Live PIE Tester (Recoil, Suppression, Damage, Explosion, Grenade, Reload, Flashbang, Landing, Jump, Toggle ADS, Lean: Center/Left/Right).| 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). |
OnRecoilTriggered, OnSuppressionTriggered, OnDamageImpactTriggered, OnExplosionShockTriggered, OnFlashbangTriggered, OnLandingImpactTriggered, OnGrenadeThrowTriggered, OnReloadCameraMotionTriggered, OnJumpTriggered, OnShoulderSideChanged.UAdaptiveCameraShooterAnimNotify): Supports Recoil, Suppression, DamageImpact, ExplosionShock, Flashbang, LandingImpact, GrenadeThrow, ReloadCameraMotion, and JumpTakeoff.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.
AdaptiveCameraShooterFX.usf targets desktop SDR post-tonemap output (r.HDR.EnableHDROutput 0, SM5/SM6, non-VR) and automatically bypasses the post-tonemap pass when HDR display output is active (bIsHDR, HDR render target format, or r.HDR.EnableHDROutput != 0). Depth-gated 1P near blur is bypassed automatically when Forward Shading MSAA (NumSamples > 1) is active.UPrimaryDataAsset): Direct DefaultProfile or Blueprint SoftObjectPtr references cook automatically. When loading AdaptiveCameraShooterProfile assets dynamically by FPrimaryAssetId in a packaged Shipping build, register AdaptiveCameraShooterProfile under Project Settings -> Asset Manager -> Primary Asset Types to Scan, include directory /AdaptiveCamera_Shooter/Presets, and set CookRule = AlwaysCook.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 |
AdaptiveCamera.Shooter.* - 21 tests):
Includes 21 built-in C++ automation tests under WITH_DEV_AUTOMATION_TESTS covering damped spring convergence, preset .uasset parity, accessibility scaling, runtime override persistence, PlayerController respawn and lifecycle isolation, first-person and third-person framing and collision, recoil, reload, jump/landing, sniper scope optics, editor preview volume targeting, HDR output auto-bypass, and pause/cutscene bypass. Run headless via:
& "<UE_5.8>\Engine\Binaries\Win64\UnrealEditor-Cmd.exe" "<PathToProject>.uproject" `
-unattended -nop4 -nosplash -NullRHI `
"-ExecCmds=Automation RunTests AdaptiveCamera.Shooter;Quit" `
"-TestExit=Automation Test Queue Empty"
Config/FilterPlugin.ini): Includes /Config/..., /Content/..., /Resources/..., /Shaders/..., /Source/..., and /README.md under [FilterPlugin] so BuildPlugin packages all 6 starter profiles, icons, shaders, and source 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_Shooter\AdaptiveCamera_Shooter.uplugin" `
-Package="<OutputDir>\AdaptiveCamera_Shooter" `
-TargetPlatforms=Win64+Linux -Rocket -StrictIncludes
fractumsoftware@gmail.comWin64 and Linux (SM5/SM6 renderers, non-VR).