> I have to admit that looks very good. Good volumetric fog is kind of the > holy grail in simulation (well one of them.) Would it be possible to > post > some quick instructions somewhere for how to configure your local weather > system to do this?
Sure... technically it's just effect volumes with reduced visibility placed underneath a very low layer of relatively thin stratiform clouds. It just can't be done from the menu - a few lines of Nasal are required. * open /Nasal/weather_tiles.nas * edit the test tile (or create your own tile structure for experimenting), which for stupid reasons is named 'set_4_8_stratus_tile' * uncomment 'Test tile' in the first combo in /gui/dialogs/local_weather_tiles.xml to see it in the menu The code I placed into the test tile is #################### var phi = alpha * math.pi/180.0; # create 14 fog banks for (var i=0; i<14; i=i+1) { # select a random position and orientation within the tile var x = 2.0 * (rand()-0.5) * 18000; var y = 2.0 * (rand()-0.5) * 18000; var beta = (rand() -0.5) * 180.0; # create a low patch of thin stratiform clouds local_weather.create_streak("Stratus (thin)",blat+get_lat(x,y,phi), blon+get_lon(x,y,phi), 500 ,0.0,6,800.0,0.2,500.0,8,800.0,0.2,500.0,alpha+beta,1.0); # create a rectangular effect volume with 600 m visibility underneath the cloud patch local_weather.create_effect_volume(2, blat+get_lat(x,y,phi), blon+get_lon(x,y,phi), 4800.0, 6400.0, alpha, 0.0, 500.0, 600.0, -1, -1, -1, -1, 0,-1); } ######################## * select the test tile from the environment/local-weather-tiles menu (dependent on dynamical weather on or not, fog should even drift) It isn't perfect (effect volume size needs to be tuned, cloudlet spacing could be optimized, nested effect volumes would make smoother transitions when flying out of the fog...), but it's something to work with. The two function calls 'create_streak' and 'create_effect_volume' appear a bit opaque, but they should be documented in /Docs/ README.local_weather.html. Hope that helps... * Thorsten ------------------------------------------------------------------------------ Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel