CARLA
DepthCamera.cpp
Go to the documentation of this file.
1 // Copyright (c) 2017 Computer Vision Center (CVC) at the Universitat Autonoma
2 // de Barcelona (UAB).
3 //
4 // This work is licensed under the terms of the MIT license.
5 // For a copy, see <https://opensource.org/licenses/MIT>.
6 
7 #include "Carla.h"
9 
11 
13 {
15 }
16 
17 ADepthCamera::ADepthCamera(const FObjectInitializer &ObjectInitializer)
18  : Super(ObjectInitializer)
19 {
21  TEXT("Material'/Carla/PostProcessingMaterials/PhysicLensDistortion.PhysicLensDistortion'"));
23 #if PLATFORM_LINUX
24  TEXT("Material'/Carla/PostProcessingMaterials/DepthEffectMaterial_GLSL.DepthEffectMaterial_GLSL'")
25 #else
26  TEXT("Material'/Carla/PostProcessingMaterials/DepthEffectMaterial.DepthEffectMaterial'")
27 #endif
28  );
29 }
30 
31 void ADepthCamera::PostPhysTick(UWorld *World, ELevelTick TickType, float DeltaSeconds)
32 {
33  TRACE_CPUPROFILER_EVENT_SCOPE(ADepthCamera::PostPhysTick);
34  FPixelReader::SendPixelsInRenderThread<ADepthCamera, FColor>(*this);
35 }
static FActorDefinition GetSensorDefinition()
Definition: DepthCamera.cpp:12
bool AddPostProcessingMaterial(const FString &Path)
Load the UMaterialInstanceDynamic at the given Path and append it to the list of shaders with Weight...
A definition of a Carla Actor with all the variation and attributes.
void PostPhysTick(UWorld *World, ELevelTick TickType, float DeltaSeconds) override
Definition: DepthCamera.cpp:31
ADepthCamera(const FObjectInitializer &ObjectInitializer)
Definition: DepthCamera.cpp:17
static FActorDefinition MakeCameraDefinition(const FString &Id, bool bEnableModifyingPostProcessEffects=false)