1
0
Fork 0

Stuart Buchanan :

Attached is yet another 3D clouds patch, to fix the following:
1) The 3D clouds were not modified by the cloud coverage, due to some problems with osg::Switch
2) METAR changes to cloud coverage were not obeyed.
3) Making changes via the Cloud dialog had no effect unless 3D clouds were toggled.
4) Cloud cover was too sparse.
5) 3D Stratus clouds caused performance issues on some hardware (fixed by removing 3D stratus from cloudlayers.xml - it will now be a 2D layer).
This commit is contained in:
fredb 2008-12-19 07:42:29 +00:00
parent 0a842083d6
commit b41afb94c6
2 changed files with 26 additions and 12 deletions

View file

@ -987,11 +987,11 @@
<name>cu-con</name> <name>cu-con</name>
<count>2</count> <count>2</count>
</cloud> </cloud>
<grid-x-size type="double">3000.0</grid-x-size> <grid-x-size type="double">2000.0</grid-x-size>
<grid-y-size type="double">3000.0</grid-y-size> <grid-y-size type="double">2000.0</grid-y-size>
<grid-x-rand type="double">1500.0</grid-x-rand> <grid-x-rand type="double">500.0</grid-x-rand>
<grid-y-rand type="double">1500.0</grid-y-rand> <grid-y-rand type="double">500.0</grid-y-rand>
<grid-z-rand type="double">200.0</grid-z-rand> <grid-z-rand type="double">100.0</grid-z-rand>
</cu> </cu>
<cb> <cb>
<cloud> <cloud>
@ -1010,10 +1010,10 @@
<name>cu-con</name> <name>cu-con</name>
<count>5</count> <count>5</count>
</cloud> </cloud>
<grid-x-size type="double">6000.0</grid-x-size> <grid-x-size type="double">2000.0</grid-x-size>
<grid-y-size type="double">6000.0</grid-y-size> <grid-y-size type="double">2000.0</grid-y-size>
<grid-x-rand type="double">2000.0</grid-x-rand> <grid-x-rand type="double">500.0</grid-x-rand>
<grid-y-rand type="double">2000.0</grid-y-rand> <grid-y-rand type="double">500.0</grid-y-rand>
<grid-z-rand type="double">200.0</grid-z-rand> <grid-z-rand type="double">200.0</grid-z-rand>
</cb> </cb>
<ac> <ac>
@ -1021,13 +1021,13 @@
<name>ac-str</name> <name>ac-str</name>
<count>1</count> <count>1</count>
</cloud> </cloud>
<grid-x-size type="double">2000.0</grid-x-size> <grid-x-size type="double">1000.0</grid-x-size>
<grid-y-size type="double">2000.0</grid-y-size> <grid-y-size type="double">1000.0</grid-y-size>
<grid-x-rand type="double">100.0</grid-x-rand> <grid-x-rand type="double">100.0</grid-x-rand>
<grid-y-rand type="double">100.0</grid-y-rand> <grid-y-rand type="double">100.0</grid-y-rand>
<grid-z-rand type="double">100.0</grid-z-rand> <grid-z-rand type="double">100.0</grid-z-rand>
</ac> </ac>
<!--
<st> <st>
<cloud> <cloud>
<name>st</name> <name>st</name>
@ -1039,6 +1039,7 @@
<grid-y-rand type="double">500.0</grid-y-rand> <grid-y-rand type="double">500.0</grid-y-rand>
<grid-z-rand type="double">100.0</grid-z-rand> <grid-z-rand type="double">100.0</grid-z-rand>
</st> </st>
-->
<sc> <sc>
<cloud> <cloud>
<name>sc</name> <name>sc</name>

View file

@ -274,6 +274,12 @@
<binding> <binding>
<command>dialog-apply</command> <command>dialog-apply</command>
</binding> </binding>
<binding>
<command>nasal</command>
<script>
setprop("/environment/rebuild-layers", getprop("/environment/rebuild-layers")+1);
</script>
</binding>
<binding> <binding>
<command>dialog-close</command> <command>dialog-close</command>
</binding> </binding>
@ -287,6 +293,13 @@
<binding> <binding>
<command>dialog-apply</command> <command>dialog-apply</command>
</binding> </binding>
<binding>
<command>nasal</command>
<script>
setprop("/environment/rebuild-layers", getprop("/environment/rebuild-layers")+1);
</script>
</binding>
</button> </button>
<button> <button>