Updated ExposureCompensation
This commit is contained in:
parent
943b04a580
commit
78c7564835
|
@ -441,7 +441,7 @@ void UActorBlueprintFunctionLibrary::MakeCameraDefinition(
|
||||||
FActorVariation ExposureCompensation;
|
FActorVariation ExposureCompensation;
|
||||||
ExposureCompensation.Id = TEXT("exposure_compensation");
|
ExposureCompensation.Id = TEXT("exposure_compensation");
|
||||||
ExposureCompensation.Type = EActorAttributeType::Float;
|
ExposureCompensation.Type = EActorAttributeType::Float;
|
||||||
ExposureCompensation.RecommendedValues = { TEXT("-1.8") };
|
ExposureCompensation.RecommendedValues = { TEXT("0.0") };
|
||||||
ExposureCompensation.bRestrictToRecommended = false;
|
ExposureCompensation.bRestrictToRecommended = false;
|
||||||
|
|
||||||
// - Manual ------------------------------------------------
|
// - Manual ------------------------------------------------
|
||||||
|
@ -1399,7 +1399,7 @@ void UActorBlueprintFunctionLibrary::SetCamera(
|
||||||
Camera->SetExposureMethod(EAutoExposureMethod::AEM_Manual);
|
Camera->SetExposureMethod(EAutoExposureMethod::AEM_Manual);
|
||||||
}
|
}
|
||||||
Camera->SetExposureCompensation(
|
Camera->SetExposureCompensation(
|
||||||
RetrieveActorAttributeToFloat("exposure_compensation", Description.Variations, -1.8f));
|
RetrieveActorAttributeToFloat("exposure_compensation", Description.Variations, 0.0f));
|
||||||
Camera->SetShutterSpeed(
|
Camera->SetShutterSpeed(
|
||||||
RetrieveActorAttributeToFloat("shutter_speed", Description.Variations, 200.0f));
|
RetrieveActorAttributeToFloat("shutter_speed", Description.Variations, 200.0f));
|
||||||
Camera->SetISO(
|
Camera->SetISO(
|
||||||
|
|
|
@ -110,12 +110,12 @@ EAutoExposureMethod ASceneCaptureSensor::GetExposureMethod() const
|
||||||
void ASceneCaptureSensor::SetExposureCompensation(float Compensation)
|
void ASceneCaptureSensor::SetExposureCompensation(float Compensation)
|
||||||
{
|
{
|
||||||
check(CaptureComponent2D != nullptr);
|
check(CaptureComponent2D != nullptr);
|
||||||
// Looks like windows and linux have different outputs with the
|
|
||||||
// same exposure compensation
|
|
||||||
#if PLATFORM_LINUX
|
#if PLATFORM_LINUX
|
||||||
CaptureComponent2D->PostProcessSettings.AutoExposureBias = Compensation;
|
// Looks like Windows and Linux have different outputs with the
|
||||||
|
// same exposure compensation, this fixes it.
|
||||||
|
CaptureComponent2D->PostProcessSettings.AutoExposureBias = Compensation - 1.5f;
|
||||||
#else
|
#else
|
||||||
CaptureComponent2D->PostProcessSettings.AutoExposureBias = Compensation + 1.8f;
|
CaptureComponent2D->PostProcessSettings.AutoExposureBias = Compensation;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -563,6 +563,12 @@ namespace SceneCaptureSensor_local_ns {
|
||||||
// Color Grading
|
// Color Grading
|
||||||
PostProcessSettings.bOverride_WhiteTemp = true;
|
PostProcessSettings.bOverride_WhiteTemp = true;
|
||||||
PostProcessSettings.bOverride_WhiteTint = true;
|
PostProcessSettings.bOverride_WhiteTint = true;
|
||||||
|
PostProcessSettings.bOverride_ColorContrast = true;
|
||||||
|
#if PLATFORM_LINUX
|
||||||
|
// Looks like Windows and Linux have different outputs with the
|
||||||
|
// same exposure compensation, this fixes it.
|
||||||
|
PostProcessSettings.ColorContrast = FVector4(1.5f, 1.5f, 1.5f, 1.0f);
|
||||||
|
#endif
|
||||||
|
|
||||||
// Chromatic Aberration
|
// Chromatic Aberration
|
||||||
PostProcessSettings.bOverride_SceneFringeIntensity = true;
|
PostProcessSettings.bOverride_SceneFringeIntensity = true;
|
||||||
|
|
|
@ -120,7 +120,7 @@ if ${BUILD_CARLAUE4} ; then
|
||||||
# This command fails sometimes but normally we can continue anyway.
|
# This command fails sometimes but normally we can continue anyway.
|
||||||
set +e
|
set +e
|
||||||
log "Generate Unreal project files."
|
log "Generate Unreal project files."
|
||||||
${UE4_ROOT}/GenerateProjectFiles.sh -project="${PWD}/CarlaUE4.uproject" -game -engine -makefiles
|
${UE4_ROOT}/GenerateProjectFiles.sh -project="${PWD}/CarlaUE4.uproject" -game -engine -makefile
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue