diff --git a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Sensor/SceneCaptureCamera.cpp b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Sensor/SceneCaptureCamera.cpp index 4c5cde58a..26bd2e08f 100644 --- a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Sensor/SceneCaptureCamera.cpp +++ b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Sensor/SceneCaptureCamera.cpp @@ -61,21 +61,11 @@ ASceneCaptureCamera::ASceneCaptureCamera(const FObjectInitializer& ObjectInitial CaptureRenderTarget->MipGenSettings = TextureMipGenSettings::TMGS_NoMipmaps; #endif CaptureRenderTarget->CompressionSettings = TextureCompressionSettings::TC_Default; - - //CaptureRenderTarget->RenderTargetFormat = ETextureRenderTargetFormat:: CaptureRenderTarget->SRGB=0; CaptureRenderTarget->bAutoGenerateMips = false; CaptureRenderTarget->AddressX = TextureAddress::TA_Clamp; CaptureRenderTarget->AddressY = TextureAddress::TA_Clamp; - - //------------------- - CaptureComponent2D = CreateDefaultSubobject(TEXT("SceneCaptureComponent2D")); - - //--addded by jbelon - //CaptureComponent2D-> - //------------------ - CaptureComponent2D->SetupAttachment(MeshComp); // Load post-processing materials. @@ -121,7 +111,7 @@ void ASceneCaptureCamera::BeginPlay() // Setup camera post-processing. if (PostProcessEffect != EPostProcessEffect::None) { - CaptureComponent2D->CaptureSource = ESceneCaptureSource::SCS_FinalColorLDR; + CaptureComponent2D->CaptureSource = ESceneCaptureSource::SCS_FinalColorLDR; //HD is much slower! } if (bRemovePostProcessing) { RemoveShowFlags(CaptureComponent2D->ShowFlags); diff --git a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Settings/CarlaSettingsDelegate.cpp b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Settings/CarlaSettingsDelegate.cpp index 695269950..4e8e1796d 100644 --- a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Settings/CarlaSettingsDelegate.cpp +++ b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Settings/CarlaSettingsDelegate.cpp @@ -303,7 +303,7 @@ void UCarlaSettingsDelegate::LaunchEpicQualityCommands(UWorld* world) const GEngine->Exec(world,TEXT("r.TranslucentLightingVolume 1")); GEngine->Exec(world,TEXT("r.LightShaftDownSampleFactor 2")); //GEngine->Exec(world,TEXT("r.OcclusionQueryLocation 0")); - GEngine->Exec(world,TEXT("r.BasePassOutputsVelocity 0")); + //GEngine->Exec(world,TEXT("r.BasePassOutputsVelocity 0")); //readonly GEngine->Exec(world,TEXT("r.DetailMode 2")); }