|
CARLA
|
Base class for sensors using a USceneCaptureComponent2D for rendering the scene. More...
#include <SceneCaptureSensor.h>
Inheritance diagram for ASceneCaptureSensor:Public Member Functions | |
| bool | ArePostProcessingEffectsEnabled () const |
| ASceneCaptureSensor (const FObjectInitializer &ObjectInitializer) | |
| void | Enable16BitFormat (bool Enable=false) |
| void | EnablePostProcessingEffects (bool Enable=true) |
| void | EnqueueRenderSceneImmediate () |
| Immediate enqueues render commands of the scene at the current time. | |
| float | GetAOIntensity () const |
| float | GetAORadius () const |
| float | GetAperture () const |
| int | GetBladeCount () const |
| float | GetBloomIntensity () const |
| UTexture2D * | GetBloomKernelTexture () const |
| EBloomMethod | GetBloomMethod () const |
| float | GetBlueCorrection () const |
| USceneCaptureComponent2D_CARLA * | GetCaptureComponent () const |
| USceneCaptureComponent2D * | GetCaptureComponent2D () |
| UTextureRenderTarget2D * | GetCaptureRenderTarget () |
| float | GetChromAberrIntensity () const |
| float | GetChromAberrOffset () const |
| FVector4 | GetColorContrast () const |
| FVector4 | GetColorContrastHighlights () const |
| FVector4 | GetColorContrastMidtones () const |
| FVector4 | GetColorGamma () const |
| FVector4 | GetColorSaturation () const |
| FVector4 | GetColorSaturationHighlights () const |
| FVector4 | GetColorSaturationMidtones () const |
| float | GetDepthBlurAmount () const |
| float | GetDepthBlurRadius () const |
| float | GetDepthOfFieldMinFstop () const |
| float | GetDetailStrength () const |
| float | GetDirtMaskIntensity () const |
| float | GetExposureCalibrationConstant () const |
| float | GetExposureCompensation () const |
| float | GetExposureMaxBrightness () const |
| EAutoExposureMethod | GetExposureMethod () const |
| float | GetExposureMinBrightness () const |
| float | GetExposureSpeedDown () const |
| float | GetExposureSpeedUp () const |
| float | GetFilmBlackClip () const |
| float | GetFilmGrainIntensity () const |
| float | GetFilmShoulder () const |
| float | GetFilmSlope () const |
| float | GetFilmToe () const |
| float | GetFilmWhiteClip () const |
| float | GetFocalDistance () const |
| float | GetFOVAngle () const |
| FVector4 | GetGlobalGain () const |
| float | GetHighlightContrastScale () const |
| FVector4 | GetHighlightsGamma () const |
| uint32 | GetImageHeight () const |
| uint32 | GetImageWidth () const |
| float | GetISO () const |
| float | GetLensFlareIntensity () const |
| ELocalExposureMethod | GetLocalExposureMethod () const |
| float | GetMotionBlurIntensity () const |
| float | GetMotionBlurMaxDistortion () const |
| float | GetMotionBlurMinObjectScreenSize () const |
| FRHIGPUReadbackPoolPtr | GetReadbackPool () const |
| Per-sensor pool of recyclable RHI readback objects. | |
| FLinearColor | GetSceneColorTint () const |
| float | GetSensorWidth () const |
| float | GetShadowContrastScale () const |
| const FCarlaShowOnlyFilter & | GetShowOnlyFilter () const |
| float | GetShutterSpeed () const |
| float | GetTargetGamma () const |
| float | GetToneCurveAmount () const |
| bool | GetUseRayTracing () const |
| float | GetVignetteIntensity () const |
| float | GetWhiteTemp () const |
| float | GetWhiteTint () const |
| bool | Is16BitFormatEnabled () const |
| bool | IsDLSSUpscaleEnabled () const |
| bool | IsShowOnlyEnabled () const |
| bool | ReadPixels (TArray< FColor > &BitMap) const |
| Use for debugging purposes only. | |
| void | SaveCaptureToDisk (const FString &FilePath) const |
| Use for debugging purposes only. | |
| void | Set (const FActorDescription &ActorDescription) override |
| void | SetAOIntensity (float Intensity) |
| void | SetAORadius (float Radius) |
| void | SetAperture (float Aperture) |
| void | SetBladeCount (int Count) |
| void | SetBloomConvolutionTexture (UTexture2D *Texture) |
| void | SetBloomIntensity (float Intensity) |
| void | SetBloomMethod (EBloomMethod Method) |
| void | SetBlueCorrection (float Val) |
| void | SetChromAberrIntensity (float Intensity) |
| void | SetChromAberrOffset (float ChromAberrOffset) |
| void | SetColorContrast (FVector4 ColorContrast) |
| void | SetColorContrastHighlights (FVector4 ColorContrast) |
| void | SetColorContrastMidtones (FVector4 ColorContrast) |
| void | SetColorGamma (FVector4 ColorGamma) |
| void | SetColorSaturation (FVector4 ColorSaturation) |
| void | SetColorSaturationHighlights (FVector4 ColorSaturation) |
| void | SetColorSaturationMidtones (FVector4 ColorSaturation) |
| void | SetDepthBlurAmount (float Amount) |
| void | SetDepthBlurRadius (float Radius) |
| void | SetDepthOfFieldMinFstop (float MinFstop) |
| void | SetDetailStrength (float Val) |
| void | SetDirtMaskIntensity (float Intensity) |
| void | SetDLSSUpscale (bool Enable, float ScreenPercentage) |
| Render the capture at ScreenPercentage (25-100) of the target resolution and upscale it back with DLSS Super Resolution when available (bilinear otherwise). | |
| void | SetExposureCalibrationConstant (float Constant) |
| void | SetExposureCompensation (float Compensation) |
| void | SetExposureMaxBrightness (float Brightness) |
| void | SetExposureMethod (EAutoExposureMethod Method) |
| void | SetExposureMinBrightness (float Brightness) |
| void | SetExposureSpeedDown (float Speed) |
| void | SetExposureSpeedUp (float Speed) |
| void | SetFilmBlackClip (float BlackClip) |
| void | SetFilmGrainIntensity (float Val) |
| void | SetFilmShoulder (float Shoulder) |
| void | SetFilmSlope (float Slope) |
| void | SetFilmToe (float Toe) |
| void | SetFilmWhiteClip (float WhiteClip) |
| void | SetFocalDistance (float Distance) |
| void | SetFOVAngle (float FOVAngle) |
| void | SetGlobalGain (FVector4 Gain) |
| void | SetHighlightContrastScale (float HighlightContrastScale) |
| void | SetHighlightsGamma (FVector4 HighlightsGamma) |
| void | SetImageSize (uint32 Width, uint32 Height) |
| void | SetISO (float ISO) |
| void | SetLensFlareIntensity (float Intensity) |
| void | SetLocalExposureMethod (ELocalExposureMethod Method) |
| void | SetMotionBlurIntensity (float Intensity) |
| void | SetMotionBlurMaxDistortion (float MaxDistortion) |
| void | SetMotionBlurMinObjectScreenSize (float ScreenSize) |
| void | SetSceneColorTint (FLinearColor SceneColorTint) |
| void | SetSensorWidth (float Width) |
| void | SetShadowCatcherTags (const FString &CommaSeparatedLabels) |
| Labels whose actors are rendered alongside the show-only set so they receive its cast shadows ("Roads,Sidewalks"). | |
| void | SetShadowContrastScale (float ShadowContrastScale) |
| void | SetShowOnlyActorIds (const FString &CommaSeparatedIds) |
| CARLA actor ids always included in the show-only set. | |
| void | SetShowOnlyTags (const FString &CommaSeparatedLabels) |
| Show-only render mode (see FCarlaShowOnlyFilter): comma separated semantic label names. | |
| void | SetShutterSpeed (float Speed) |
| void | SetTargetGamma (float InTargetGamma) |
| void | SetToneCurveAmount (float ToneCurveAmount) |
| void | SetUseRayTracing (bool Enable) |
| void | SetVignetteIntensity (float VignetteIntensity) |
| void | SetWhiteTemp (float Temp) |
| void | SetWhiteTint (float Tint) |
| virtual void | UpdatePostProcessConfig (FPostProcessConfig &InOutPostProcessConfig) |
| void | WaitForRenderThreadToFinish () |
| Blocks until the render thread has finished all it's tasks. | |
Public Member Functions inherited from ASensor | |
| bool | AreClientsListening () |
| ASensor (const FObjectInitializer &ObjectInitializer) | |
| void | ClearReadyToTick () |
| std::optional< FActorAttribute > | GetAttribute (const FString Name) |
| const UCarlaEpisode & | GetEpisode () const |
| virtual void | GetMirrorState (carla::multigpu::SensorState &State) const |
| Multi-GPU: the runtime state this sensor starts its next tick from (noise generator, sweep angle, history). | |
| URandomEngine * | GetRandomEngine () |
| float | GetReadyToTickDeltaSeconds () const |
| int32 | GetSeed () const |
| auto | GetToken () const |
| Return the token that allows subscribing to this sensor's stream. | |
| bool | IsReadyToTick () const |
| bool | IsStreamReady () |
| FDataStream | MoveDataStream () |
| virtual void | OnFirstClientConnected () |
| virtual void | OnLastClientDisconnected () |
| void | PostPhysTickInternal (UWorld *World, ELevelTick TickType, float DeltaSeconds) |
| void | SetDataStream (FDataStream InStream) |
| Replace the FDataStream associated with this sensor. | |
| void | SetEpisode (const UCarlaEpisode &InEpisode) |
| virtual void | SetMirrorState (const carla::multigpu::SensorState &State) |
| void | SetPrimaryTick (float DeltaSeconds) |
| Multi-GPU secondary: tick in this engine frame, with the primary's delta. | |
| void | SetSavingDataToDisk (bool bSavingData) |
| void | SetSeed (int32 InSeed) |
| void | Tick (const float DeltaTime) final |
Static Public Member Functions | |
| static bool | ApplyPostProcessVolumeToSensor (APostProcessVolume *Origin, ASceneCaptureSensor *Dest, bool bOverrideCurrentCamera=false) |
| static bool | ResolveCameraRayTracing (bool bSensorEnabled, bool bRequired) |
Applies the carla.Camera.UseRayTracing tier policy to a camera's own ray-tracing preference. | |
Static Public Member Functions inherited from ASensor | |
| static FSensorCaptureContext | MakeCaptureContext (const ASensor &Sensor) |
| Call on the game thread right after CaptureScene(). | |
Protected Member Functions | |
| virtual void | BeginPlay () override |
| void | CaptureSceneExtended () |
| virtual void | EndPlay (const EEndPlayReason::Type EndPlayReason) override |
| bool | IsAnyGBufferClientListening () const |
| Returns true if any GBuffer stream has an active listener. | |
| virtual void | PostPhysTick (UWorld *World, ELevelTick TickType, float DeltaTime) override |
| virtual void | PrePhysTick (float DeltaSeconds) override |
| virtual bool | RequiresRayTracing () const |
| True for sensors that cannot render without hardware ray tracing (path-traced lens cameras); the tier policy never switches them off. | |
| virtual void | SetUpSceneCaptureComponent (USceneCaptureComponent2D &SceneCapture) |
| bool | ShouldCaptureThisFrame () |
| Aggregate gate: main stream or any GBuffer stream has listeners, or CVarCarlaCameraForceAllGBuffers forces every frame. | |
| void | UpdateExposureMotionBlur (UWorld *World, float DeltaTime) |
| Motion blur from the auto exposure time (carla.Camera.ExposureMotionBlur). | |
Protected Member Functions inherited from ASensor | |
| void | EndPlay (EEndPlayReason::Type EndPlayReason) override |
| template<typename SensorType > | |
| FAsyncDataStream | GetDataStream (SensorType &&Self) |
| Return the FDataStream associated with this sensor. | |
| void | PostActorCreated () override |
Protected Attributes | |
| bool | bEnable16BitFormat = false |
| Whether to change render target format to PF_A16B16G16R16, offering 16bit / channel. | |
| bool | bEnableDLSSUpscale = false |
| Render the capture at DLSSScreenPercentage of the target resolution and upscale back with DLSS Super Resolution (engine scene-capture temporal upscaler; bilinear fallback without NVIDIA hardware). | |
| bool | bEnablePostProcessingEffects = true |
| Whether to render the post-processing effects present in the scene. | |
| bool | bUseRayTracing = true |
| Whether this sensor uses hardware ray tracing for its scene capture. | |
| TObjectPtr< USceneCaptureComponent2D_CARLA > | CaptureComponent2D = nullptr |
| Scene capture component. | |
| TObjectPtr< UTextureRenderTarget2D > | CaptureRenderTarget = nullptr |
| Render target necessary for scene capture. | |
| float | DLSSScreenPercentage = 50.0f |
| Internal render resolution as a percentage of the target resolution when bEnableDLSSUpscale is set. | |
| float | ExposureSeconds = 0.0f |
| Exposure time of the last capture in seconds (exposure-linked motion blur). | |
| uint32 | ImageHeight = 600u |
| Image height in pixels. | |
| uint32 | ImageWidth = 800u |
| Image width in pixels. | |
| double | LastCaptureTime = -1.0 |
| Simulation time of this sensor's previous capture (-1 before the first). | |
| FRHIGPUReadbackPoolPtr | ReadbackPool |
| Per-sensor pool of recyclable RHI readback objects. | |
| FCarlaShowOnlyFilter | ShowOnlyFilter |
| Show-only actor filter, applied to the capture component right before every capture (see FCarlaShowOnlyFilter). | |
| float | TargetGamma = 2.2f |
Protected Attributes inherited from ASensor | |
| bool | bIsActive = false |
| bool | bSavingDataToDisk = false |
| URandomEngine * | RandomEngine = nullptr |
| Random Engine used to provide noise for sensor output. | |
| int32 | Seed = 123456789 |
| Seed of the pseudo-random engine. | |
Private Member Functions | |
| void | ApplyRayTracingSetting () |
Private Attributes | |
| int32 | NumCaptures = 0 |
| Captures rendered as camera cuts since BeginPlay (carla.Camera.SpawnCameraCuts). | |
Friends | |
| class | ACarlaGameModeBase |
| class | FPixelReader |
| class | FPixelReader2 |
Additional Inherited Members | |
Static Protected Member Functions inherited from ASensor | |
| template<typename SensorType , typename ElementType > | |
| static void | SendDataToClient (SensorType &&Sensor, TArrayView< ElementType > SensorData, const FSensorCaptureContext &CaptureContext) |
Base class for sensors using a USceneCaptureComponent2D for rendering the scene.
This class does not capture data, use FPixelReader::SendPixelsInRenderThread<FColor>(*this) in derived classes.
To access the USceneCaptureComponent2D override the SetUpSceneCaptureComponent function.
Definition at line 124 of file SceneCaptureSensor.h.
| ASceneCaptureSensor::ASceneCaptureSensor | ( | const FObjectInitializer & | ObjectInitializer | ) |
Definition at line 135 of file SceneCaptureSensor.cpp.
References ApplyRayTracingSetting(), CaptureComponent2D, CaptureRenderTarget, SCENE_CAPTURE_COUNTER, and SceneCaptureSensor_local_ns::SetCameraDefaultOverrides().
|
static |
Definition at line 868 of file SceneCaptureSensor.cpp.
References CaptureComponent2D, GetAOIntensity(), GetAORadius(), GetAperture(), GetBladeCount(), GetBloomIntensity(), GetBloomKernelTexture(), GetBloomMethod(), GetBlueCorrection(), GetChromAberrIntensity(), GetChromAberrOffset(), GetColorContrast(), GetColorContrastHighlights(), GetColorContrastMidtones(), GetColorSaturation(), GetColorSaturationHighlights(), GetColorSaturationMidtones(), GetDepthBlurAmount(), GetDepthBlurRadius(), GetDepthOfFieldMinFstop(), GetDetailStrength(), GetDirtMaskIntensity(), GetExposureCalibrationConstant(), GetExposureCompensation(), GetExposureMaxBrightness(), GetExposureMethod(), GetExposureMinBrightness(), GetExposureSpeedDown(), GetExposureSpeedUp(), GetFilmBlackClip(), GetFilmGrainIntensity(), GetFilmShoulder(), GetFilmSlope(), GetFilmToe(), GetFilmWhiteClip(), GetFocalDistance(), GetGlobalGain(), GetISO(), GetLensFlareIntensity(), GetLocalExposureMethod(), GetMotionBlurIntensity(), GetMotionBlurMaxDistortion(), GetMotionBlurMinObjectScreenSize(), GetShutterSpeed(), GetTargetGamma(), GetWhiteTemp(), GetWhiteTint(), IsValid(), SetAOIntensity(), SetAORadius(), SetAperture(), SetBladeCount(), SetBloomConvolutionTexture(), SetBloomIntensity(), SetBloomMethod(), SetBlueCorrection(), SetChromAberrIntensity(), SetChromAberrOffset(), SetColorContrast(), SetColorContrastHighlights(), SetColorContrastMidtones(), SetColorSaturation(), SetColorSaturationHighlights(), SetColorSaturationMidtones(), SetDepthBlurAmount(), SetDepthBlurRadius(), SetDepthOfFieldMinFstop(), SetDetailStrength(), SetDirtMaskIntensity(), SetExposureCalibrationConstant(), SetExposureCompensation(), SetExposureMaxBrightness(), SetExposureMethod(), SetExposureMinBrightness(), SetExposureSpeedDown(), SetExposureSpeedUp(), SetFilmBlackClip(), SetFilmGrainIntensity(), SetFilmShoulder(), SetFilmSlope(), SetFilmToe(), SetFilmWhiteClip(), SetFocalDistance(), SetGlobalGain(), SetISO(), SetLensFlareIntensity(), SetLocalExposureMethod(), SetMotionBlurIntensity(), SetMotionBlurMaxDistortion(), SetMotionBlurMinObjectScreenSize(), SetShutterSpeed(), SetTargetGamma(), SetWhiteTemp(), and SetWhiteTint().
Referenced by BeginPlay().
|
private |
Definition at line 190 of file SceneCaptureSensor.cpp.
References bUseRayTracing, CaptureComponent2D, RequiresRayTracing(), and ResolveCameraRayTracing().
Referenced by ASceneCaptureSensor(), and SetUseRayTracing().
|
inline |
Definition at line 161 of file SceneCaptureSensor.h.
Referenced by BeginPlay(), and UpdateExposureMotionBlur().
|
overrideprotectedvirtual |
Reimplemented from ASensor.
Reimplemented in ASceneCaptureCamera, ASceneCaptureCamera_RayTracedLensDistance, and ASceneCaptureCamera_RayTracedLensInstance.
Definition at line 1007 of file SceneCaptureSensor.cpp.
References ApplyPostProcessVolumeToSensor(), ArePostProcessingEffectsEnabled(), bEnable16BitFormat, bEnableDLSSUpscale, bEnablePostProcessingEffects, CaptureComponent2D, CaptureRenderTarget, CVarCarlaCameraExposureMotionBlur(), DLSSScreenPercentage, ASensor::GetEpisode(), UCarlaEpisode::GetWeather(), ImageHeight, ImageWidth, IsValid(), AWeather::NotifyWeather(), ReadbackPool, SetUpSceneCaptureComponent(), TargetGamma, UpdatePostProcessConfig(), and Weather.
|
protected |
Referenced by EnqueueRenderSceneImmediate().
|
inline |
Definition at line 233 of file SceneCaptureSensor.h.
Referenced by ANormalsCamera::ANormalsCamera(), and AOpticalFlowCamera::AOpticalFlowCamera().
|
inline |
Definition at line 155 of file SceneCaptureSensor.h.
Referenced by ADVSCamera::ADVSCamera(), ASceneCaptureCamera_RayTracedLensDistance::ASceneCaptureCamera_RayTracedLensDistance(), ASceneCaptureCamera_RayTracedLensInstance::ASceneCaptureCamera_RayTracedLensInstance(), AShaderBasedSensor::AShaderBasedSensor(), and UActorBlueprintFunctionLibrary::SetCamera().
|
overrideprotectedvirtual |
Reimplemented in ASceneCaptureCamera, and ASceneCaptureCamera_RayTracedLens.
Definition at line 1241 of file SceneCaptureSensor.cpp.
References CaptureComponent2D, CaptureRenderTarget, and ReadbackPool.
| void ASceneCaptureSensor::EnqueueRenderSceneImmediate | ( | ) |
Immediate enqueues render commands of the scene at the current time.
Definition at line 982 of file SceneCaptureSensor.cpp.
References FCarlaShowOnlyFilter::ApplyTo(), CaptureComponent2D, CaptureSceneExtended(), CVarCarlaCameraSpawnCameraCuts(), EnqueueRenderSceneImmediate(), GetCaptureComponent2D(), ASensor::GetEpisode(), FCarlaShowOnlyFilter::IsEnabled(), NumCaptures, FCarlaShowOnlyFilter::Refresh(), and ShowOnlyFilter.
Referenced by EnqueueRenderSceneImmediate(), and PostPhysTick().
| float ASceneCaptureSensor::GetAOIntensity | ( | ) | const |
Definition at line 821 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| float ASceneCaptureSensor::GetAORadius | ( | ) | const |
Definition at line 833 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| float ASceneCaptureSensor::GetAperture | ( | ) | const |
Definition at line 323 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| int ASceneCaptureSensor::GetBladeCount | ( | ) | const |
Definition at line 395 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| float ASceneCaptureSensor::GetBloomIntensity | ( | ) | const |
Definition at line 581 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| UTexture2D * ASceneCaptureSensor::GetBloomKernelTexture | ( | ) | const |
Definition at line 263 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| EBloomMethod ASceneCaptureSensor::GetBloomMethod | ( | ) | const |
Definition at line 257 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| float ASceneCaptureSensor::GetBlueCorrection | ( | ) | const |
Definition at line 785 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
|
inline |
Definition at line 139 of file SceneCaptureSensor.h.
Referenced by UActorBlueprintFunctionLibrary::SetCamera().
|
inline |
Definition at line 600 of file SceneCaptureSensor.h.
Referenced by AWeather::CheckWeatherPostProcessEffects(), and EnqueueRenderSceneImmediate().
|
inline |
Definition at line 606 of file SceneCaptureSensor.h.
Referenced by ASceneCaptureCamera_RayTracedLensDistance::BeginPlay(), ASceneCaptureCamera_RayTracedLens::PostPhysTick(), ASceneCaptureCamera_RayTracedLensDistance::PostPhysTick(), ASceneCaptureCamera_RayTracedLensInstance::PostPhysTick(), ImageUtil::ReadSensorImageDataAsync(), ImageUtil::ReadSensorImageDataAsyncFColor(), and ImageUtil::ReadSensorImageDataAsyncFLinearColor().
| float ASceneCaptureSensor::GetChromAberrIntensity | ( | ) | const |
Definition at line 617 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| float ASceneCaptureSensor::GetChromAberrOffset | ( | ) | const |
Definition at line 629 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| FVector4 ASceneCaptureSensor::GetColorContrast | ( | ) | const |
Definition at line 677 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| FVector4 ASceneCaptureSensor::GetColorContrastHighlights | ( | ) | const |
Definition at line 701 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| FVector4 ASceneCaptureSensor::GetColorContrastMidtones | ( | ) | const |
Definition at line 689 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| FVector4 ASceneCaptureSensor::GetColorGamma | ( | ) | const |
Definition at line 713 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
| FVector4 ASceneCaptureSensor::GetColorSaturation | ( | ) | const |
Definition at line 641 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| FVector4 ASceneCaptureSensor::GetColorSaturationHighlights | ( | ) | const |
Definition at line 665 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| FVector4 ASceneCaptureSensor::GetColorSaturationMidtones | ( | ) | const |
Definition at line 653 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| float ASceneCaptureSensor::GetDepthBlurAmount | ( | ) | const |
Definition at line 359 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| float ASceneCaptureSensor::GetDepthBlurRadius | ( | ) | const |
Definition at line 371 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| float ASceneCaptureSensor::GetDepthOfFieldMinFstop | ( | ) | const |
Definition at line 383 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| float ASceneCaptureSensor::GetDetailStrength | ( | ) | const |
Definition at line 797 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| float ASceneCaptureSensor::GetDirtMaskIntensity | ( | ) | const |
Definition at line 221 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| float ASceneCaptureSensor::GetExposureCalibrationConstant | ( | ) | const |
Definition at line 515 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| float ASceneCaptureSensor::GetExposureCompensation | ( | ) | const |
Definition at line 287 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| float ASceneCaptureSensor::GetExposureMaxBrightness | ( | ) | const |
Definition at line 479 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| EAutoExposureMethod ASceneCaptureSensor::GetExposureMethod | ( | ) | const |
Definition at line 269 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| float ASceneCaptureSensor::GetExposureMinBrightness | ( | ) | const |
Definition at line 467 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| float ASceneCaptureSensor::GetExposureSpeedDown | ( | ) | const |
Definition at line 491 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| float ASceneCaptureSensor::GetExposureSpeedUp | ( | ) | const |
Definition at line 503 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| float ASceneCaptureSensor::GetFilmBlackClip | ( | ) | const |
Definition at line 443 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| float ASceneCaptureSensor::GetFilmGrainIntensity | ( | ) | const |
Definition at line 809 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| float ASceneCaptureSensor::GetFilmShoulder | ( | ) | const |
Definition at line 431 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| float ASceneCaptureSensor::GetFilmSlope | ( | ) | const |
Definition at line 407 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| float ASceneCaptureSensor::GetFilmToe | ( | ) | const |
Definition at line 419 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| float ASceneCaptureSensor::GetFilmWhiteClip | ( | ) | const |
Definition at line 455 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| float ASceneCaptureSensor::GetFocalDistance | ( | ) | const |
Definition at line 347 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| float ASceneCaptureSensor::GetFOVAngle | ( | ) | const |
Definition at line 215 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
| FVector4 ASceneCaptureSensor::GetGlobalGain | ( | ) | const |
Definition at line 773 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| float ASceneCaptureSensor::GetHighlightContrastScale | ( | ) | const |
Definition at line 845 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
| FVector4 ASceneCaptureSensor::GetHighlightsGamma | ( | ) | const |
Definition at line 725 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
|
inline |
Definition at line 149 of file SceneCaptureSensor.h.
Referenced by ASceneCaptureCamera_RayTracedLensDistance::BeginPlay(), ADVSCamera::ImageToGray(), ADVSCamera::ImageToLogGray(), ASceneCaptureCamera_RayTracedLens::Set(), and ADVSCamera::Simulation().
|
inline |
Definition at line 144 of file SceneCaptureSensor.h.
Referenced by ASceneCaptureCamera_RayTracedLensDistance::BeginPlay(), ADVSCamera::ImageToGray(), ADVSCamera::ImageToLogGray(), ASceneCaptureCamera_RayTracedLens::Set(), and ADVSCamera::Simulation().
| float ASceneCaptureSensor::GetISO | ( | ) | const |
Definition at line 311 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| float ASceneCaptureSensor::GetLensFlareIntensity | ( | ) | const |
Definition at line 563 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| ELocalExposureMethod ASceneCaptureSensor::GetLocalExposureMethod | ( | ) | const |
Definition at line 239 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| float ASceneCaptureSensor::GetMotionBlurIntensity | ( | ) | const |
Definition at line 527 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| float ASceneCaptureSensor::GetMotionBlurMaxDistortion | ( | ) | const |
Definition at line 539 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| float ASceneCaptureSensor::GetMotionBlurMinObjectScreenSize | ( | ) | const |
Definition at line 551 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
|
inline |
Per-sensor pool of recyclable RHI readback objects.
May be null before BeginPlay or after EndPlay; consumers fall back to a per-call alloc in that case.
Definition at line 614 of file SceneCaptureSensor.h.
Referenced by ASceneCaptureCamera_RayTracedLens::PostPhysTick(), ASceneCaptureCamera_RayTracedLensDistance::PostPhysTick(), ASceneCaptureCamera_RayTracedLensInstance::PostPhysTick(), ImageUtil::ReadSensorImageDataAsync(), ImageUtil::ReadSensorImageDataAsyncFColor(), and ImageUtil::ReadSensorImageDataAsyncFLinearColor().
| FLinearColor ASceneCaptureSensor::GetSceneColorTint | ( | ) | const |
Definition at line 749 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
| float ASceneCaptureSensor::GetSensorWidth | ( | ) | const |
Definition at line 335 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
| float ASceneCaptureSensor::GetShadowContrastScale | ( | ) | const |
Definition at line 857 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
|
inline |
Definition at line 227 of file SceneCaptureSensor.h.
| float ASceneCaptureSensor::GetShutterSpeed | ( | ) | const |
Definition at line 299 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
|
inline |
Definition at line 257 of file SceneCaptureSensor.h.
Referenced by ApplyPostProcessVolumeToSensor().
| float ASceneCaptureSensor::GetToneCurveAmount | ( | ) | const |
Definition at line 737 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
|
inline |
Definition at line 186 of file SceneCaptureSensor.h.
| float ASceneCaptureSensor::GetVignetteIntensity | ( | ) | const |
Definition at line 761 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
| float ASceneCaptureSensor::GetWhiteTemp | ( | ) | const |
Definition at line 593 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| float ASceneCaptureSensor::GetWhiteTint | ( | ) | const |
Definition at line 605 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
|
inline |
Definition at line 239 of file SceneCaptureSensor.h.
|
protected |
Returns true if any GBuffer stream has an active listener.
Definition at line 1122 of file SceneCaptureSensor.cpp.
References CameraGBuffers.
Referenced by ShouldCaptureThisFrame().
|
inline |
Definition at line 177 of file SceneCaptureSensor.h.
|
inline |
Definition at line 222 of file SceneCaptureSensor.h.
|
overrideprotectedvirtual |
Reimplemented from ASensor.
Reimplemented in ADepthCamera, AInstanceSegmentationCamera, ANormalsCamera, AOpticalFlowCamera, ASceneCaptureCamera, ASceneCaptureCamera_RayTracedLens, ASceneCaptureCamera_RayTracedLensDistance, ASceneCaptureCamera_RayTracedLensInstance, ASemanticSegmentationCamera, and ADVSCamera.
Definition at line 1185 of file SceneCaptureSensor.cpp.
References EnqueueRenderSceneImmediate(), PostPhysTick(), ShouldCaptureThisFrame(), and UpdateExposureMotionBlur().
Referenced by PostPhysTick(), and ASceneCaptureCamera_RayTracedLens::TickCaptureAndReadback().
|
overrideprotectedvirtual |
Reimplemented from ASensor.
Definition at line 1165 of file SceneCaptureSensor.cpp.
References CaptureComponent2D, ImageWidth, PrePhysTick(), and ShouldCaptureThisFrame().
Referenced by PrePhysTick().
|
inline |
Use for debugging purposes only.
Definition at line 585 of file SceneCaptureSensor.h.
References FPixelReader::WritePixelsToArray().
Referenced by ADVSCamera::PostPhysTick().
|
inlineprotectedvirtual |
True for sensors that cannot render without hardware ray tracing (path-traced lens cameras); the tier policy never switches them off.
Reimplemented in ASceneCaptureCamera_RayTracedLens.
Definition at line 649 of file SceneCaptureSensor.h.
Referenced by ApplyRayTracingSetting().
|
static |
Applies the carla.Camera.UseRayTracing tier policy to a camera's own ray-tracing preference.
A camera that cannot render without ray tracing passes bRequired and is never switched off by the policy.
Definition at line 199 of file SceneCaptureSensor.cpp.
References GetCameraRayTracingOverride().
Referenced by ApplyRayTracingSetting(), and ASceneCaptureSensor_WideAngleLens::SetUseRayTracing().
|
inline |
Use for debugging purposes only.
Definition at line 593 of file SceneCaptureSensor.h.
References FPixelReader::SavePixelsToDisk().
|
overridevirtual |
Reimplemented from ASensor.
Reimplemented in AShaderBasedSensor.
Definition at line 172 of file SceneCaptureSensor.cpp.
References UActorBlueprintFunctionLibrary::SetCamera().
| void ASceneCaptureSensor::SetAOIntensity | ( | float | Intensity | ) |
Definition at line 815 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| void ASceneCaptureSensor::SetAORadius | ( | float | Radius | ) |
Definition at line 827 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| void ASceneCaptureSensor::SetAperture | ( | float | Aperture | ) |
Definition at line 317 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor(), and ASceneCaptureCamera_RayTracedLens::Set().
| void ASceneCaptureSensor::SetBladeCount | ( | int | Count | ) |
Definition at line 389 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| void ASceneCaptureSensor::SetBloomConvolutionTexture | ( | UTexture2D * | Texture | ) |
Definition at line 245 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| void ASceneCaptureSensor::SetBloomIntensity | ( | float | Intensity | ) |
Definition at line 575 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| void ASceneCaptureSensor::SetBloomMethod | ( | EBloomMethod | Method | ) |
Definition at line 569 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| void ASceneCaptureSensor::SetBlueCorrection | ( | float | Val | ) |
Definition at line 779 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| void ASceneCaptureSensor::SetChromAberrIntensity | ( | float | Intensity | ) |
Definition at line 611 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| void ASceneCaptureSensor::SetChromAberrOffset | ( | float | ChromAberrOffset | ) |
Definition at line 623 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| void ASceneCaptureSensor::SetColorContrast | ( | FVector4 | ColorContrast | ) |
Definition at line 671 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| void ASceneCaptureSensor::SetColorContrastHighlights | ( | FVector4 | ColorContrast | ) |
Definition at line 695 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| void ASceneCaptureSensor::SetColorContrastMidtones | ( | FVector4 | ColorContrast | ) |
Definition at line 683 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| void ASceneCaptureSensor::SetColorGamma | ( | FVector4 | ColorGamma | ) |
Definition at line 707 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
| void ASceneCaptureSensor::SetColorSaturation | ( | FVector4 | ColorSaturation | ) |
Definition at line 635 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| void ASceneCaptureSensor::SetColorSaturationHighlights | ( | FVector4 | ColorSaturation | ) |
Definition at line 659 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| void ASceneCaptureSensor::SetColorSaturationMidtones | ( | FVector4 | ColorSaturation | ) |
Definition at line 647 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| void ASceneCaptureSensor::SetDepthBlurAmount | ( | float | Amount | ) |
Definition at line 353 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| void ASceneCaptureSensor::SetDepthBlurRadius | ( | float | Radius | ) |
Definition at line 365 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| void ASceneCaptureSensor::SetDepthOfFieldMinFstop | ( | float | MinFstop | ) |
Definition at line 377 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| void ASceneCaptureSensor::SetDetailStrength | ( | float | Val | ) |
Definition at line 791 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| void ASceneCaptureSensor::SetDirtMaskIntensity | ( | float | Intensity | ) |
Definition at line 251 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
|
inline |
Render the capture at ScreenPercentage (25-100) of the target resolution and upscale it back with DLSS Super Resolution when available (bilinear otherwise).
100 or Enable=false keeps the stock full-resolution path.
Definition at line 170 of file SceneCaptureSensor.h.
Referenced by UActorBlueprintFunctionLibrary::SetCamera().
| void ASceneCaptureSensor::SetExposureCalibrationConstant | ( | float | Constant | ) |
Definition at line 509 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| void ASceneCaptureSensor::SetExposureCompensation | ( | float | Compensation | ) |
Definition at line 275 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| void ASceneCaptureSensor::SetExposureMaxBrightness | ( | float | Brightness | ) |
Definition at line 473 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| void ASceneCaptureSensor::SetExposureMethod | ( | EAutoExposureMethod | Method | ) |
Definition at line 227 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| void ASceneCaptureSensor::SetExposureMinBrightness | ( | float | Brightness | ) |
Definition at line 461 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| void ASceneCaptureSensor::SetExposureSpeedDown | ( | float | Speed | ) |
Definition at line 485 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| void ASceneCaptureSensor::SetExposureSpeedUp | ( | float | Speed | ) |
Definition at line 497 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| void ASceneCaptureSensor::SetFilmBlackClip | ( | float | BlackClip | ) |
Definition at line 437 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| void ASceneCaptureSensor::SetFilmGrainIntensity | ( | float | Val | ) |
Definition at line 803 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| void ASceneCaptureSensor::SetFilmShoulder | ( | float | Shoulder | ) |
Definition at line 425 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| void ASceneCaptureSensor::SetFilmSlope | ( | float | Slope | ) |
Definition at line 401 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| void ASceneCaptureSensor::SetFilmToe | ( | float | Toe | ) |
Definition at line 413 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| void ASceneCaptureSensor::SetFilmWhiteClip | ( | float | WhiteClip | ) |
Definition at line 449 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| void ASceneCaptureSensor::SetFocalDistance | ( | float | Distance | ) |
Definition at line 341 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ASceneCaptureCamera_RayTracedLensDistance::ApplyDistanceAOVConfig(), ASceneCaptureCamera_RayTracedLensInstance::ApplyInstanceAOVConfig(), ApplyPostProcessVolumeToSensor(), and ASceneCaptureCamera_RayTracedLens::Set().
| void ASceneCaptureSensor::SetFOVAngle | ( | float | FOVAngle | ) |
Definition at line 209 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by UActorBlueprintFunctionLibrary::SetCamera().
| void ASceneCaptureSensor::SetGlobalGain | ( | FVector4 | Gain | ) |
Definition at line 767 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| void ASceneCaptureSensor::SetHighlightContrastScale | ( | float | HighlightContrastScale | ) |
Definition at line 839 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
| void ASceneCaptureSensor::SetHighlightsGamma | ( | FVector4 | HighlightsGamma | ) |
Definition at line 719 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
| void ASceneCaptureSensor::SetImageSize | ( | uint32 | Width, |
| uint32 | Height | ||
| ) |
Definition at line 178 of file SceneCaptureSensor.cpp.
References ImageHeight, and ImageWidth.
Referenced by UActorBlueprintFunctionLibrary::SetCamera().
| void ASceneCaptureSensor::SetISO | ( | float | ISO | ) |
Definition at line 305 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| void ASceneCaptureSensor::SetLensFlareIntensity | ( | float | Intensity | ) |
Definition at line 557 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| void ASceneCaptureSensor::SetLocalExposureMethod | ( | ELocalExposureMethod | Method | ) |
Definition at line 233 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| void ASceneCaptureSensor::SetMotionBlurIntensity | ( | float | Intensity | ) |
Definition at line 521 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| void ASceneCaptureSensor::SetMotionBlurMaxDistortion | ( | float | MaxDistortion | ) |
Definition at line 533 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| void ASceneCaptureSensor::SetMotionBlurMinObjectScreenSize | ( | float | ScreenSize | ) |
Definition at line 545 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| void ASceneCaptureSensor::SetSceneColorTint | ( | FLinearColor | SceneColorTint | ) |
Definition at line 743 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
| void ASceneCaptureSensor::SetSensorWidth | ( | float | Width | ) |
Definition at line 329 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
|
inline |
Labels whose actors are rendered alongside the show-only set so they receive its cast shadows ("Roads,Sidewalks").
No effect when the show-only mode is off.
Definition at line 209 of file SceneCaptureSensor.h.
| void ASceneCaptureSensor::SetShadowContrastScale | ( | float | ShadowContrastScale | ) |
Definition at line 851 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
|
inline |
CARLA actor ids always included in the show-only set.
Definition at line 216 of file SceneCaptureSensor.h.
|
inline |
Show-only render mode (see FCarlaShowOnlyFilter): comma separated semantic label names.
Non-empty restricts the capture to the actors carrying those labels (plus the shadow catchers and explicit ids).
Definition at line 200 of file SceneCaptureSensor.h.
| void ASceneCaptureSensor::SetShutterSpeed | ( | float | Speed | ) |
Definition at line 293 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
|
inline |
Definition at line 251 of file SceneCaptureSensor.h.
Referenced by ApplyPostProcessVolumeToSensor().
| void ASceneCaptureSensor::SetToneCurveAmount | ( | float | ToneCurveAmount | ) |
Definition at line 731 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
|
inlineprotectedvirtual |
Reimplemented in AInstanceSegmentationCamera, ASemanticSegmentationCamera, and AShaderBasedSensor.
Definition at line 676 of file SceneCaptureSensor.h.
Referenced by BeginPlay().
| void ASceneCaptureSensor::SetUseRayTracing | ( | bool | Enable | ) |
Definition at line 184 of file SceneCaptureSensor.cpp.
References ApplyRayTracingSetting(), and bUseRayTracing.
Referenced by ASceneCaptureCamera_RayTracedLens::ASceneCaptureCamera_RayTracedLens(), and UActorBlueprintFunctionLibrary::SetCamera().
| void ASceneCaptureSensor::SetVignetteIntensity | ( | float | VignetteIntensity | ) |
Definition at line 755 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
| void ASceneCaptureSensor::SetWhiteTemp | ( | float | Temp | ) |
Definition at line 587 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
| void ASceneCaptureSensor::SetWhiteTint | ( | float | Tint | ) |
Definition at line 599 of file SceneCaptureSensor.cpp.
References CaptureComponent2D.
Referenced by ApplyPostProcessVolumeToSensor().
|
protected |
Aggregate gate: main stream or any GBuffer stream has listeners, or CVarCarlaCameraForceAllGBuffers forces every frame.
Non-const because ASensor::AreClientsListening() is non-const.
Definition at line 1149 of file SceneCaptureSensor.cpp.
References ASensor::AreClientsListening(), CVarCarlaCameraForceAllGBuffers(), and IsAnyGBufferClientListening().
Referenced by PostPhysTick(), PrePhysTick(), and ASceneCaptureCamera_RayTracedLens::TickCaptureAndReadback().
|
protected |
Motion blur from the auto exposure time (carla.Camera.ExposureMotionBlur).
Definition at line 1198 of file SceneCaptureSensor.cpp.
References ArePostProcessingEffectsEnabled(), CaptureComponent2D, CVarCarlaCameraExposureLog(), CVarCarlaCameraExposureMotionBlur(), CVarCarlaCameraFNumber(), CVarCarlaCameraMaxExposureMs(), CVarCarlaCameraMinExposureMs(), ExposureSeconds, and LastCaptureTime.
Referenced by PostPhysTick().
|
virtual |
Reimplemented in ASceneCaptureCamera_RayTracedLens.
Definition at line 863 of file SceneCaptureSensor.cpp.
Referenced by BeginPlay().
|
inline |
Blocks until the render thread has finished all it's tasks.
Definition at line 620 of file SceneCaptureSensor.h.
References WaitForRenderThreadToFinish().
Referenced by ADVSCamera::PostPhysTick(), and WaitForRenderThreadToFinish().
|
friend |
Definition at line 128 of file SceneCaptureSensor.h.
|
friend |
Definition at line 129 of file SceneCaptureSensor.h.
|
friend |
Definition at line 130 of file SceneCaptureSensor.h.
|
protected |
Whether to change render target format to PF_A16B16G16R16, offering 16bit / channel.
Definition at line 720 of file SceneCaptureSensor.h.
Referenced by BeginPlay().
|
protected |
Render the capture at DLSSScreenPercentage of the target resolution and upscale back with DLSS Super Resolution (engine scene-capture temporal upscaler; bilinear fallback without NVIDIA hardware).
Off by default: non-NVIDIA users keep the stock full-resolution path. Requires bEnablePostProcessingEffects (the capture needs a temporal AA method for DLSS to engage; without one the engine spatially upscales instead).
Definition at line 729 of file SceneCaptureSensor.h.
Referenced by BeginPlay().
|
protected |
Whether to render the post-processing effects present in the scene.
Definition at line 707 of file SceneCaptureSensor.h.
Referenced by BeginPlay().
|
protected |
Whether this sensor uses hardware ray tracing for its scene capture.
Defaults to true so cameras follow upstream behaviour out of the box. Setting false saves ~700 MiB-1 GiB on the GPU and is intended for sensors that do not need RT (depth, semantic, lidar). The global CVar carla.Camera.UseRayTracing forces on/off across every camera regardless of the per-sensor attribute.
Definition at line 716 of file SceneCaptureSensor.h.
Referenced by ApplyRayTracingSetting(), and SetUseRayTracing().
| struct { ... } ASceneCaptureSensor::CameraGBuffers |
Referenced by FCarlaServer::FPimpl::BindActions(), and IsAnyGBufferClientListening().
|
protected |
Scene capture component.
Definition at line 684 of file SceneCaptureSensor.h.
Referenced by ASceneCaptureCamera_RayTracedLensDistance::ApplyDistanceAOVConfig(), ASceneCaptureCamera_RayTracedLensInstance::ApplyInstanceAOVConfig(), ApplyPostProcessVolumeToSensor(), ApplyRayTracingSetting(), ASceneCaptureCamera_RayTracedLens::ASceneCaptureCamera_RayTracedLens(), ASceneCaptureSensor(), ASceneCaptureCamera_RayTracedLensInstance::BeginPlay(), BeginPlay(), EndPlay(), EnqueueRenderSceneImmediate(), GetAOIntensity(), GetAORadius(), GetAperture(), GetBladeCount(), GetBloomIntensity(), GetBloomKernelTexture(), GetBloomMethod(), GetBlueCorrection(), GetChromAberrIntensity(), GetChromAberrOffset(), GetColorContrast(), GetColorContrastHighlights(), GetColorContrastMidtones(), GetColorGamma(), GetColorSaturation(), GetColorSaturationHighlights(), GetColorSaturationMidtones(), GetDepthBlurAmount(), GetDepthBlurRadius(), GetDepthOfFieldMinFstop(), GetDetailStrength(), GetDirtMaskIntensity(), GetExposureCalibrationConstant(), GetExposureCompensation(), GetExposureMaxBrightness(), GetExposureMethod(), GetExposureMinBrightness(), GetExposureSpeedDown(), GetExposureSpeedUp(), GetFilmBlackClip(), GetFilmGrainIntensity(), GetFilmShoulder(), GetFilmSlope(), GetFilmToe(), GetFilmWhiteClip(), GetFocalDistance(), GetFOVAngle(), GetGlobalGain(), GetHighlightContrastScale(), GetHighlightsGamma(), GetISO(), GetLensFlareIntensity(), GetLocalExposureMethod(), GetMotionBlurIntensity(), GetMotionBlurMaxDistortion(), GetMotionBlurMinObjectScreenSize(), GetSceneColorTint(), GetSensorWidth(), GetShadowContrastScale(), GetShutterSpeed(), GetToneCurveAmount(), GetVignetteIntensity(), GetWhiteTemp(), GetWhiteTint(), ASceneCaptureCamera_RayTracedLens::PostPhysTick(), ASceneCaptureCamera_RayTracedLensDistance::PostPhysTick(), ASceneCaptureCamera_RayTracedLensInstance::PostPhysTick(), PrePhysTick(), ASceneCaptureCamera_RayTracedLens::Set(), SetAOIntensity(), SetAORadius(), SetAperture(), SetBladeCount(), SetBloomConvolutionTexture(), SetBloomIntensity(), SetBloomMethod(), SetBlueCorrection(), SetChromAberrIntensity(), SetChromAberrOffset(), SetColorContrast(), SetColorContrastHighlights(), SetColorContrastMidtones(), SetColorGamma(), SetColorSaturation(), SetColorSaturationHighlights(), SetColorSaturationMidtones(), SetDepthBlurAmount(), SetDepthBlurRadius(), SetDepthOfFieldMinFstop(), SetDetailStrength(), SetDirtMaskIntensity(), SetExposureCalibrationConstant(), SetExposureCompensation(), SetExposureMaxBrightness(), SetExposureMethod(), SetExposureMinBrightness(), SetExposureSpeedDown(), SetExposureSpeedUp(), SetFilmBlackClip(), SetFilmGrainIntensity(), SetFilmShoulder(), SetFilmSlope(), SetFilmToe(), SetFilmWhiteClip(), SetFocalDistance(), SetFOVAngle(), SetGlobalGain(), SetHighlightContrastScale(), SetHighlightsGamma(), SetISO(), SetLensFlareIntensity(), SetLocalExposureMethod(), SetMotionBlurIntensity(), SetMotionBlurMaxDistortion(), SetMotionBlurMinObjectScreenSize(), ASceneCaptureCamera_RayTracedLens::SetRayTracedLensExposure(), SetSceneColorTint(), SetSensorWidth(), SetShadowContrastScale(), SetShutterSpeed(), SetToneCurveAmount(), SetVignetteIntensity(), SetWhiteTemp(), SetWhiteTint(), and UpdateExposureMotionBlur().
|
protected |
Render target necessary for scene capture.
Definition at line 680 of file SceneCaptureSensor.h.
Referenced by ASceneCaptureSensor(), BeginPlay(), EndPlay(), and ADVSCamera::PostPhysTick().
| FCameraGBufferUint8 ASceneCaptureSensor::CustomDepth |
Definition at line 639 of file SceneCaptureSensor.h.
Referenced by FCarlaServer::FPimpl::BindActions().
| FCameraGBufferUint8 ASceneCaptureSensor::CustomStencil |
Definition at line 640 of file SceneCaptureSensor.h.
Referenced by FCarlaServer::FPimpl::BindActions().
|
protected |
Internal render resolution as a percentage of the target resolution when bEnableDLSSUpscale is set.
50 = quarter of the pixels, 33 = one ninth.
Definition at line 734 of file SceneCaptureSensor.h.
Referenced by BeginPlay().
|
protected |
Exposure time of the last capture in seconds (exposure-linked motion blur).
Definition at line 672 of file SceneCaptureSensor.h.
Referenced by UpdateExposureMotionBlur().
| FCameraGBufferUint8 ASceneCaptureSensor::GBufferA |
Definition at line 631 of file SceneCaptureSensor.h.
Referenced by FCarlaServer::FPimpl::BindActions().
| FCameraGBufferUint8 ASceneCaptureSensor::GBufferB |
Definition at line 632 of file SceneCaptureSensor.h.
Referenced by FCarlaServer::FPimpl::BindActions().
| FCameraGBufferUint8 ASceneCaptureSensor::GBufferC |
Definition at line 633 of file SceneCaptureSensor.h.
Referenced by FCarlaServer::FPimpl::BindActions().
| FCameraGBufferUint8 ASceneCaptureSensor::GBufferD |
Definition at line 634 of file SceneCaptureSensor.h.
Referenced by FCarlaServer::FPimpl::BindActions().
| FCameraGBufferUint8 ASceneCaptureSensor::GBufferE |
Definition at line 635 of file SceneCaptureSensor.h.
Referenced by FCarlaServer::FPimpl::BindActions().
| FCameraGBufferUint8 ASceneCaptureSensor::GBufferF |
Definition at line 636 of file SceneCaptureSensor.h.
Referenced by FCarlaServer::FPimpl::BindActions().
|
protected |
Image height in pixels.
Definition at line 703 of file SceneCaptureSensor.h.
Referenced by BeginPlay(), and SetImageSize().
|
protected |
Image width in pixels.
Definition at line 699 of file SceneCaptureSensor.h.
Referenced by BeginPlay(), PrePhysTick(), and SetImageSize().
|
protected |
Simulation time of this sensor's previous capture (-1 before the first).
Definition at line 669 of file SceneCaptureSensor.h.
Referenced by UpdateExposureMotionBlur().
|
private |
Captures rendered as camera cuts since BeginPlay (carla.Camera.SpawnCameraCuts).
Definition at line 757 of file SceneCaptureSensor.h.
Referenced by EnqueueRenderSceneImmediate().
|
protected |
Per-sensor pool of recyclable RHI readback objects.
Created in BeginPlay, dropped in EndPlay; outstanding AsyncTasks keep it alive via shared ownership.
Definition at line 739 of file SceneCaptureSensor.h.
Referenced by BeginPlay(), and EndPlay().
| FCameraGBufferUint8 ASceneCaptureSensor::SceneColor |
Definition at line 628 of file SceneCaptureSensor.h.
Referenced by FCarlaServer::FPimpl::BindActions().
| FCameraGBufferUint8 ASceneCaptureSensor::SceneDepth |
Definition at line 629 of file SceneCaptureSensor.h.
Referenced by FCarlaServer::FPimpl::BindActions().
| FCameraGBufferUint8 ASceneCaptureSensor::SceneStencil |
Definition at line 630 of file SceneCaptureSensor.h.
Referenced by FCarlaServer::FPimpl::BindActions().
|
protected |
Show-only actor filter, applied to the capture component right before every capture (see FCarlaShowOnlyFilter).
Definition at line 743 of file SceneCaptureSensor.h.
Referenced by EnqueueRenderSceneImmediate().
| FCameraGBufferUint8 ASceneCaptureSensor::SSAO |
Definition at line 638 of file SceneCaptureSensor.h.
Referenced by FCarlaServer::FPimpl::BindActions().
|
protected |
Definition at line 695 of file SceneCaptureSensor.h.
Referenced by BeginPlay().
| FCameraGBufferUint8 ASceneCaptureSensor::Velocity |
Definition at line 637 of file SceneCaptureSensor.h.
Referenced by FCarlaServer::FPimpl::BindActions().