From 77e6ebb7d261e04248c24de078c68a53cb4a3548 Mon Sep 17 00:00:00 2001 From: doterop Date: Fri, 19 Jun 2020 08:44:28 +0200 Subject: [PATCH] Changed rendermode --- .../Plugins/Carla/Source/Carla/Sensor/SceneCaptureSensor.cpp | 1 + .../Plugins/Carla/Source/Carla/Sensor/SceneCaptureSensor.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Sensor/SceneCaptureSensor.cpp b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Sensor/SceneCaptureSensor.cpp index 8cb1d194a..14b356b4e 100644 --- a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Sensor/SceneCaptureSensor.cpp +++ b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Sensor/SceneCaptureSensor.cpp @@ -63,6 +63,7 @@ ASceneCaptureSensor::ASceneCaptureSensor(const FObjectInitializer &ObjectInitial CaptureComponent2D = CreateDefaultSubobject( FName(*FString::Printf(TEXT("SceneCaptureComponent2D_%d"), SCENE_CAPTURE_COUNTER))); CaptureComponent2D->SetupAttachment(RootComponent); + CaptureComponent2D->PrimitiveRenderMode = ESceneCapturePrimitiveRenderMode::PRM_RenderScenePrimitives; SceneCaptureSensor_local_ns::SetCameraDefaultOverrides(*CaptureComponent2D); diff --git a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Sensor/SceneCaptureSensor.h b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Sensor/SceneCaptureSensor.h index b4ebf7e12..fd1f0a8d0 100644 --- a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Sensor/SceneCaptureSensor.h +++ b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Sensor/SceneCaptureSensor.h @@ -310,7 +310,7 @@ protected: static TArray CaptureSensors; static int32 NumCaptureSensors; - static const int32 MaxNumTextures = 2; // This has to be POT + static const int32 MaxNumTextures = 1; // This has to be POT int32 CurrentTexture = 0; int32 PreviousTexture = 0;