Stuart Buchanan :
This provides the following enhancements & bug fixes - Fix the chequer-board bug. - Add proper cloud coverage function - so scattered clouds are now truly scattered. - Add real-time control for visibility range. - Use a limited set of clouds rather than generating a completely new Geode for each cloud. This saves sorting and display time. - Add controls to Rendering dialog to allow fine-tuning of the number of sprites, cloud visibility and the number of different types of cloud. - Add some variance to the sort back-off to avoid all clouds being sorted at the same time. - Pack attributes into vectors for performance - Re-order the cloud type determination code so that if a cloud layer could either be stratus or cumulus, cumulus is used. - Lowered the cloud level in the standard cloud configuration slightly so a cumulus layer is generated rather than stratus. These last two mean that you should see some 3D cumuli if disabling real weather fetch. My thanks to Yon Uriarte for his help with performance work.
This commit is contained in:
parent
3eb0493c7d
commit
31977abb98
2 changed files with 59 additions and 16 deletions
|
@ -114,15 +114,6 @@
|
|||
</binding>
|
||||
</checkbox>
|
||||
|
||||
<checkbox>
|
||||
<halign>left</halign>
|
||||
<label>Enable 3d clouds</label>
|
||||
<property>/sim/rendering/clouds3d-enable</property>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
</checkbox>
|
||||
|
||||
<checkbox>
|
||||
<halign>left</halign>
|
||||
<label>Random vegetation</label>
|
||||
|
@ -149,13 +140,24 @@
|
|||
</color>
|
||||
</text>
|
||||
|
||||
<checkbox>
|
||||
<padding>8</padding>
|
||||
<halign>left</halign>
|
||||
<label>Enable 3d clouds</label>
|
||||
<property>/sim/rendering/clouds3d-enable</property>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
</checkbox>
|
||||
|
||||
|
||||
<group>
|
||||
<layout>hbox</layout>
|
||||
<halign>right</halign>
|
||||
<text><label>Cloud density</label></text>
|
||||
<slider>
|
||||
<min>0</min>
|
||||
<max>100</max>
|
||||
<max>1.0</max>
|
||||
|
||||
<property>/sim/rendering/clouds3d-density</property>
|
||||
<binding>
|
||||
|
@ -164,12 +166,54 @@
|
|||
</slider>
|
||||
<text>
|
||||
<label>12345678</label>
|
||||
<format>%.0f%%</format>
|
||||
<format>%.2f</format>
|
||||
<live>true</live>
|
||||
<property>/sim/rendering/clouds3d-density</property>
|
||||
</text>
|
||||
</group>
|
||||
|
||||
<group>
|
||||
<layout>hbox</layout>
|
||||
<halign>right</halign>
|
||||
<text><label>Cloud visibility range</label></text>
|
||||
<slider>
|
||||
<min>100.0</min>
|
||||
<max>20000.0</max>
|
||||
|
||||
<property>/sim/rendering/clouds3d-vis-range</property>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
</slider>
|
||||
<text>
|
||||
<label>12345678</label>
|
||||
<format>%.fm</format>
|
||||
<live>true</live>
|
||||
<property>/sim/rendering/clouds3d-vis-range</property>
|
||||
</text>
|
||||
</group>
|
||||
|
||||
<group>
|
||||
<layout>hbox</layout>
|
||||
<halign>right</halign>
|
||||
<text><label>Cloud types</label></text>
|
||||
<slider>
|
||||
<min>1</min>
|
||||
<max>20</max>
|
||||
|
||||
<property>/sim/rendering/clouds3d-num-flavours</property>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
</slider>
|
||||
<text>
|
||||
<label>12345678</label>
|
||||
<format>%d</format>
|
||||
<live>true</live>
|
||||
<property>/sim/rendering/clouds3d-num-flavours</property>
|
||||
</text>
|
||||
</group>
|
||||
|
||||
</group>
|
||||
|
||||
<hrule/>
|
||||
|
|
|
@ -100,10 +100,9 @@ Started September 2000 by David Megginson, david@megginson.com
|
|||
<specular-highlight type="bool" userarchive="y">false</specular-highlight>
|
||||
<bump-mapping type="bool" userarchive="y">false</bump-mapping>
|
||||
<clouds3d-enable type="bool" userarchive="y">false</clouds3d-enable>
|
||||
<clouds3d-vis-range type="float" userarchive="y">25000</clouds3d-vis-range>
|
||||
<clouds3d-density type="float" userarchive="y">100</clouds3d-density>
|
||||
<clouds3d-cache-size type="int" userarchive="y">1024</clouds3d-cache-size>
|
||||
<clouds3d-cache-resolution type="int" userarchive="y">64</clouds3d-cache-resolution>
|
||||
<clouds3d-vis-range type="float" userarchive="y">20000.0</clouds3d-vis-range>
|
||||
<clouds3d-density type="float" userarchive="y">1.0</clouds3d-density>
|
||||
<clouds3d-num-flavours type="int" userarchive="y">10</clouds3d-num-flavours>
|
||||
<draw-otw type="bool">true</draw-otw>
|
||||
<shadows-ac type="bool" userarchive="y">false</shadows-ac>
|
||||
<shadows-ac-transp type="bool" userarchive="y">false</shadows-ac-transp>
|
||||
|
@ -637,7 +636,7 @@ Started September 2000 by David Megginson, david@megginson.com
|
|||
<status>true</status>
|
||||
<layer n="0">
|
||||
<coverage>scattered</coverage>
|
||||
<elevation-ft>5000</elevation-ft>
|
||||
<elevation-ft>4000</elevation-ft>
|
||||
<thickness-ft>600</thickness-ft>
|
||||
<transition-ft>150</transition-ft>
|
||||
<span-m>40000</span-m>
|
||||
|
|
Loading…
Reference in a new issue