From dd80c82747d0610de5aef87f2e43d510aaca7d68 Mon Sep 17 00:00:00 2001 From: Stuart Buchanan Date: Wed, 27 Jan 2021 20:05:49 +0000 Subject: [PATCH] WS30: Property configuration VPB Configure the VPB elevation mesh via properties: /scenery/elevation-mesh/sample-ratio controls the elevation mesh sampling, allowing reduction in mesh size /scenery/elevation-mesh/vertical-scale is just for fun and scales the mesh vertically making mountains taller. /scenery/elevation-mesh/constraint-gap-m controls how much below airports etc. elevation vertices are forced to be. --- defaults.xml | 5 +++ gui/dialogs/rendering.xml | 70 ++++++++++++++++++++++++++++++++++++++- 2 files changed, 74 insertions(+), 1 deletion(-) diff --git a/defaults.xml b/defaults.xml index f154915a6..f99437f42 100644 --- a/defaults.xml +++ b/defaults.xml @@ -1325,6 +1325,11 @@ Started September 2000 by David Megginson, david@megginson.com false false + + 1.0 + 1.0 + 1.0 + true diff --git a/gui/dialogs/rendering.xml b/gui/dialogs/rendering.xml index 7deb64310..8915fba33 100644 --- a/gui/dialogs/rendering.xml +++ b/gui/dialogs/rendering.xml @@ -181,7 +181,7 @@ hbox left - + max-plod @@ -218,6 +218,72 @@ + + hbox + right + + + /scenery/use-vpb + true + + + + + + + + elev-sample + 0.05 + 1.0 + 0.05 + 0.17 + /scenery/elevation-mesh/sample-ratio + + dialog-apply + elev-sample + + + + + %.2f + true + /scenery/elevation-mesh/sample-ratio + + + + + hbox + right + + + /scenery/use-vpb + true + + + + + + + + elev-delta + 0.0 + 20.0 + 1.0 + 0.17 + /scenery/elevation-mesh/constraint-gap-m + + dialog-apply + elev-delta + + + + + %2dm + true + /scenery/elevation-mesh/constraint-gap-m + + + 1 @@ -1091,6 +1157,8 @@ "/sim/rendering/vegetation-density", "/sim/rendering/clouds3d-enable", "/sim/rendering/clouds3d-density", + "/scenery/elevation-mesh/sample-ratio", + "/scenery/elevation-mesh/constraint-gap-m", "/sim/rendering/scenery-path-suffix[0]/enabled", "/sim/rendering/scenery-path-suffix[1]/enabled", "/sim/rendering/scenery-path-suffix[2]/enabled",