From 0455b2529bf3fcfa534dcae55fcd30a3c1810de4 Mon Sep 17 00:00:00 2001 From: proxin Date: Wed, 20 Mar 2024 11:32:22 +0300 Subject: [PATCH 1/2] VisualFX draw distance, from 10 to 30 (max) --- D3D11Engine/D2DSettingsDialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/D3D11Engine/D2DSettingsDialog.cpp b/D3D11Engine/D2DSettingsDialog.cpp index 14e28e57..b66272bb 100644 --- a/D3D11Engine/D2DSettingsDialog.cpp +++ b/D3D11Engine/D2DSettingsDialog.cpp @@ -370,11 +370,11 @@ XRESULT D2DSettingsDialog::InitControls() { SV_Slider* visualFXDDSlider = new SV_Slider( MainView, MainPanel ); visualFXDDSlider->SetPositionAndSize( D2D1::Point2F( 10, 22 ), D2D1::SizeF( 150, 15 ) ); - visualFXDDSlider->AlignUnder( visualFXDDLabel, 5 ); + visualFXDDSlider->AlignUnder( visualFXDDLabel, 10 ); visualFXDDSlider->SetDataToUpdate( &Engine::GAPI->GetRendererState().RendererSettings.VisualFXDrawRadius ); visualFXDDSlider->SetIsIntegralSlider( true ); visualFXDDSlider->SetDisplayMultiplier( 0.001f ); - visualFXDDSlider->SetMinMax( 0.0f, 10000.0f ); + visualFXDDSlider->SetMinMax( 0.0f, 30000.0f ); visualFXDDSlider->SetValue( Engine::GAPI->GetRendererState().RendererSettings.VisualFXDrawRadius ); SV_Label* worldDDLabel = new SV_Label( MainView, MainPanel ); From b836645d8af8a0dbdca670662683bc6c968fc977 Mon Sep 17 00:00:00 2001 From: proxin Date: Wed, 20 Mar 2024 12:01:25 +0300 Subject: [PATCH 2/2] Fix panel & Default FX value --- D3D11Engine/D2DSettingsDialog.cpp | 4 +++- D3D11Engine/GothicGraphicsState.h | 7 ++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/D3D11Engine/D2DSettingsDialog.cpp b/D3D11Engine/D2DSettingsDialog.cpp index b66272bb..a85c130c 100644 --- a/D3D11Engine/D2DSettingsDialog.cpp +++ b/D3D11Engine/D2DSettingsDialog.cpp @@ -370,7 +370,9 @@ XRESULT D2DSettingsDialog::InitControls() { SV_Slider* visualFXDDSlider = new SV_Slider( MainView, MainPanel ); visualFXDDSlider->SetPositionAndSize( D2D1::Point2F( 10, 22 ), D2D1::SizeF( 150, 15 ) ); - visualFXDDSlider->AlignUnder( visualFXDDLabel, 10 ); + + visualFXDDSlider->AlignUnder( visualFXDDLabel, 5 ); + visualFXDDSlider->SetDataToUpdate( &Engine::GAPI->GetRendererState().RendererSettings.VisualFXDrawRadius ); visualFXDDSlider->SetIsIntegralSlider( true ); visualFXDDSlider->SetDisplayMultiplier( 0.001f ); diff --git a/D3D11Engine/GothicGraphicsState.h b/D3D11Engine/GothicGraphicsState.h index 86999ab9..f1380bff 100644 --- a/D3D11Engine/GothicGraphicsState.h +++ b/D3D11Engine/GothicGraphicsState.h @@ -545,7 +545,12 @@ struct GothicRendererSettings { IndoorVobDrawRadius = 5000.0f; OutdoorVobDrawRadius = 30000.0f; SkeletalMeshDrawRadius = 6000.0f; - VisualFXDrawRadius = 8000.0f; + VisualFXDrawRadius = 10000.0f; + +#if BUILD_SPACER_NET + VisualFXDrawRadius = 16000.0f; +#endif + OutdoorSmallVobDrawRadius = 10000.0f; SmallVobSize = 1500.0f;