]> git.mxchange.org Git - flightgear.git/commitdiff
Harald Johnson:
authorehofman <ehofman>
Tue, 26 Apr 2005 08:31:25 +0000 (08:31 +0000)
committerehofman <ehofman>
Tue, 26 Apr 2005 08:31:25 +0000 (08:31 +0000)
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

index f63beedb4c9144a8aa86aeab0e018ab468822ac0..9dc036242549d9ee0b6346383bd73b291193fdd7 100644 (file)
@@ -26,7 +26,6 @@
 
 #include <Main/main.hxx>
 #include <Main/fg_props.hxx>
-#include <Main/renderer.hxx>
 #include <Aircraft/aircraft.hxx>
 
 #include "environment.hxx"
 #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);