From a78dae1fb7c813f43dea3f56377e8dd282d67e86 Mon Sep 17 00:00:00 2001 From: ehofman Date: Tue, 26 Apr 2005 08:31:25 +0000 Subject: [PATCH] Harald Johnson: Changes ======= - corrected some strange behavior when playing with the render dialog options - the density slider is now working : if you are fps limited and still want to see clouds in the distance you should play with that - added the choice for texture resolution, its more comprehensible now (before it was wrongly allways choosing 64x64 textures) - changed the initial texture size : you now have 64 texture of 64x64, this uses 1Mo of texture memory (before it was 20 texture of 256x256, that took more memory and there was not enought impostors) - sun vector is now right so the lighting is a bit better - removed useless sort and light computations for impostors, this should save a lot of cpu - blending of distant cloud is more accurate now - clouds are now positioned correctly, they don't try to escape you anymore - no more red/white boxes around cloud - textures are now filtered (no more big pixels) known bugs ========== - distant objects are seen in front of clouds --- src/Environment/environment_mgr.cxx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Environment/environment_mgr.cxx b/src/Environment/environment_mgr.cxx index f63beedb4..9dc036242 100644 --- a/src/Environment/environment_mgr.cxx +++ b/src/Environment/environment_mgr.cxx @@ -26,7 +26,6 @@ #include
#include
-#include
#include #include "environment.hxx" @@ -34,6 +33,11 @@ #include "environment_mgr.hxx" +class SGSky; +extern SGSky *thesky; + + + FGEnvironmentMgr::FGEnvironmentMgr () : _environment(new FGEnvironment) { @@ -161,6 +165,9 @@ FGEnvironmentMgr::bind () fgTie("/sim/rendering/clouds3d-cache-size", &sgEnviro, &SGEnviro::get_clouds_CacheSize, &SGEnviro::set_clouds_CacheSize); + fgTie("/sim/rendering/clouds3d-cache-resolution", &sgEnviro, + &SGEnviro::get_CacheResolution, + &SGEnviro::set_CacheResolution); fgTie("/sim/rendering/precipitation-enable", &sgEnviro, &SGEnviro::get_precipitation_enable_state, &SGEnviro::set_precipitation_enable_state);