From bbdc9f2318833e671bb515d42f38645c709ce658 Mon Sep 17 00:00:00 2001 From: Stuart Buchanan Date: Sat, 19 Jun 2021 18:11:49 +0100 Subject: [PATCH] WS30: Adjust based vegetation density Previously, by observation comparing actual vegetation density on Medium, WS30 had many more trees than WS20. This adjusts the base vegetation density down to match WS20. Note that at High and Very High densities, there is still a disparity that needs to be addressed. --- simgear/scene/tgdb/VPBTechnique.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simgear/scene/tgdb/VPBTechnique.cxx b/simgear/scene/tgdb/VPBTechnique.cxx index 94891994..d6aab3f9 100644 --- a/simgear/scene/tgdb/VPBTechnique.cxx +++ b/simgear/scene/tgdb/VPBTechnique.cxx @@ -1397,8 +1397,8 @@ void VPBTechnique::applyTrees(BufferData& buffer, Locator* masterLocator) const double C = r_E_lon * cos(lat); const double one_over_C = (fabs(C) > 1.0e-4) ? (1.0 / C) : 0.0; const double one_over_r_E = 1.0 / r_E_lat; - const double delta_lat = sqrt(100.0 / vegetation_density) / r_E_lat; - const double delta_lon = sqrt(100.0 / vegetation_density) / (r_E_lon * cos(loc.getLatitudeRad())); + const double delta_lat = sqrt(1000.0 / vegetation_density) / r_E_lat; + const double delta_lon = sqrt(1000.0 / vegetation_density) / (r_E_lon * cos(loc.getLatitudeRad())); const osg::Matrix rotation_vertices_c = osg::Matrix::rotate( M_PI / 2 - clat, osg::Vec3d(0.0, 1.0, 0.0),