2005-04-24 14:19:49 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
|
|
|
<PropertyList>
|
2011-04-15 15:07:53 +00:00
|
|
|
<name>rendering</name>
|
|
|
|
<modal>false</modal>
|
|
|
|
<layout>vbox</layout>
|
|
|
|
<padding>20</padding>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<empty>
|
|
|
|
<stretch>1</stretch>
|
|
|
|
</empty>
|
|
|
|
|
|
|
|
<text>
|
2012-10-06 22:03:40 +00:00
|
|
|
<label>Rendering Options</label>
|
2011-04-15 15:07:53 +00:00
|
|
|
</text>
|
2010-12-27 20:19:31 +00:00
|
|
|
|
2011-04-15 15:07:53 +00:00
|
|
|
<empty>
|
|
|
|
<stretch>1</stretch>
|
|
|
|
</empty>
|
|
|
|
|
|
|
|
<button>
|
|
|
|
<pref-width>16</pref-width>
|
|
|
|
<pref-height>16</pref-height>
|
|
|
|
<legend></legend>
|
|
|
|
<keynum>27</keynum>
|
|
|
|
<border>2</border>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-close</command>
|
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
</group>
|
|
|
|
|
|
|
|
<hrule/>
|
2014-02-18 21:27:51 +00:00
|
|
|
|
2013-02-01 21:55:28 +00:00
|
|
|
<text>
|
|
|
|
<visible>
|
|
|
|
<equals>
|
|
|
|
<property>/sim/gui/dialogs/rendering/shader-warning</property>
|
|
|
|
<value>1</value>
|
|
|
|
</equals>
|
|
|
|
</visible>
|
|
|
|
<color>
|
|
|
|
<red>1.0</red>
|
|
|
|
<green>0.6</green>
|
|
|
|
<blue>0.6</blue>
|
|
|
|
</color>
|
|
|
|
<label>Warning: Intel integrated graphics detected. Your graphics card may not support shaders or complex graphics.</label>
|
|
|
|
</text>
|
2011-04-15 15:07:53 +00:00
|
|
|
|
|
|
|
<group>
|
|
|
|
<halign>center</halign>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
|
2015-05-03 16:13:50 +00:00
|
|
|
<!-- only for a gap -->
|
|
|
|
<group>
|
|
|
|
<layout>vbox</layout>
|
|
|
|
<default-padding>1</default-padding>
|
|
|
|
<text>
|
|
|
|
<label> </label>
|
|
|
|
</text>
|
|
|
|
</group>
|
|
|
|
|
2011-04-15 15:07:53 +00:00
|
|
|
<group>
|
|
|
|
<layout>vbox</layout>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<text>
|
|
|
|
<label>General</label>
|
|
|
|
<halign>left</halign>
|
|
|
|
</text>
|
|
|
|
<hrule>
|
|
|
|
<stretch>true</stretch>
|
|
|
|
</hrule>
|
|
|
|
</group>
|
|
|
|
|
|
|
|
<checkbox>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>Wireframe</label>
|
|
|
|
<name>wireframe</name>
|
|
|
|
<property>/sim/rendering/wireframe</property>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
<object-name>wireframe</object-name>
|
|
|
|
</binding>
|
|
|
|
</checkbox>
|
|
|
|
|
|
|
|
<!--
|
2011-07-31 11:13:37 +00:00
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<text>
|
|
|
|
<label>Lighting</label>
|
|
|
|
<halign>left</halign>
|
|
|
|
</text>
|
|
|
|
<hrule>
|
|
|
|
<stretch>true</stretch>
|
|
|
|
</hrule>
|
|
|
|
</group>
|
|
|
|
|
|
|
|
<checkbox>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>Sun/Moon horizon effect</label>
|
|
|
|
<property>/sim/rendering/horizon-effect</property>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
|
|
|
</checkbox>
|
|
|
|
-->
|
|
|
|
|
|
|
|
<checkbox>
|
|
|
|
<halign>left</halign>
|
2014-02-18 21:27:51 +00:00
|
|
|
<label>Use point sprites for runway lights</label>
|
2011-07-31 11:13:37 +00:00
|
|
|
<property>/sim/rendering/point-sprites</property>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
|
|
|
</checkbox>
|
2010-12-27 20:19:31 +00:00
|
|
|
|
2011-07-31 11:13:37 +00:00
|
|
|
<!--
|
|
|
|
<checkbox>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>Enhanced runway lighting</label>
|
|
|
|
<property>/sim/rendering/enhanced-lighting</property>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
|
|
|
</checkbox>
|
|
|
|
|
|
|
|
<checkbox>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>Runway light distance attenuation</label>
|
|
|
|
<property>/sim/rendering/distance-attenuation</property>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
|
|
|
</checkbox>
|
|
|
|
|
|
|
|
<checkbox>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>Specular reflections on objects</label>
|
|
|
|
<property>/sim/rendering/specular-highlight</property>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
|
|
|
</checkbox>
|
|
|
|
-->
|
2012-06-16 21:27:58 +00:00
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<halign>left</halign>
|
2014-02-18 21:27:51 +00:00
|
|
|
|
2012-06-16 21:27:58 +00:00
|
|
|
<checkbox>
|
|
|
|
<label>Throttle frame rate</label>
|
|
|
|
<name>frame-rate-throttle</name>
|
|
|
|
<property>/sim/gui/frame-rate-throttled</property>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
<object-name>frame-rate-throttle</object-name>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>
|
|
|
|
var throttled = getprop("/sim/gui/frame-rate-throttled");
|
|
|
|
if (throttled)
|
|
|
|
setprop("/sim/frame-rate-throttle-hz", 50);
|
|
|
|
else
|
|
|
|
setprop("/sim/frame-rate-throttle-hz", 0);
|
|
|
|
</script>
|
|
|
|
</binding>
|
|
|
|
</checkbox>
|
|
|
|
<empty>
|
|
|
|
<pref-width>46</pref-width>
|
|
|
|
</empty>
|
|
|
|
<slider>
|
|
|
|
<name>frame-rate</name>
|
|
|
|
<visible>
|
|
|
|
<greater-than>
|
2012-04-08 22:05:48 +00:00
|
|
|
<property>/sim/frame-rate-throttle-hz</property>
|
2012-06-16 21:27:58 +00:00
|
|
|
<value>0</value>
|
|
|
|
</greater-than>
|
|
|
|
</visible>
|
|
|
|
<min>15.0</min>
|
|
|
|
<max>70.0</max>
|
|
|
|
<step>1.0</step>
|
2012-06-17 14:43:18 +00:00
|
|
|
<live>true</live>
|
2012-06-16 21:27:58 +00:00
|
|
|
<property>/sim/frame-rate-throttle-hz</property>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
<object-name>frame-rate</object-name>
|
|
|
|
</binding>
|
|
|
|
</slider>
|
|
|
|
<text>
|
|
|
|
<visible>
|
|
|
|
<greater-than>
|
2012-04-08 22:05:48 +00:00
|
|
|
<property>/sim/frame-rate-throttle-hz</property>
|
2012-06-16 21:27:58 +00:00
|
|
|
<value>0</value>
|
|
|
|
</greater-than>
|
|
|
|
</visible>
|
|
|
|
<label>99 Hz</label>
|
|
|
|
<format>%2.0f Hz</format>
|
|
|
|
<live>true</live>
|
|
|
|
<property>/sim/frame-rate-throttle-hz</property>
|
|
|
|
</text>
|
|
|
|
</group>
|
2005-05-15 09:25:17 +00:00
|
|
|
|
2012-04-24 20:55:37 +00:00
|
|
|
<!--
|
2011-04-15 15:07:53 +00:00
|
|
|
|
|
|
|
<checkbox>
|
|
|
|
<halign>left</halign>
|
2012-04-24 20:55:37 +00:00
|
|
|
<label>Lightning</label>
|
|
|
|
<property>/sim/rendering/lightning-enable</property>
|
2011-04-15 15:07:53 +00:00
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
|
|
|
</checkbox>
|
|
|
|
|
2012-04-24 20:55:37 +00:00
|
|
|
-->
|
2011-04-15 15:07:53 +00:00
|
|
|
|
2012-10-07 22:19:03 +00:00
|
|
|
<checkbox>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>Compensate field of view for wider screens</label>
|
|
|
|
<property>sim/current-view/field-of-view-compensation</property>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
2013-09-24 18:23:43 +00:00
|
|
|
<script>view.screenWidthCompens.toggle()</script>
|
2012-10-07 22:19:03 +00:00
|
|
|
</binding>
|
|
|
|
</checkbox>
|
|
|
|
|
2017-01-21 21:44:05 +00:00
|
|
|
<checkbox>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>Animated jetways</label>
|
|
|
|
<name>jetways</name>
|
|
|
|
<property>/nasal/jetways/enabled</property>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
<object-name>jetways</object-name>
|
|
|
|
</binding>
|
|
|
|
</checkbox>
|
|
|
|
|
|
|
|
|
2015-05-03 16:13:50 +00:00
|
|
|
<empty>
|
|
|
|
<stretch>1</stretch>
|
|
|
|
</empty>
|
|
|
|
|
2012-04-24 20:55:37 +00:00
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<text>
|
2017-01-21 21:44:05 +00:00
|
|
|
<label>Scenery Layers</label>
|
2012-04-24 20:55:37 +00:00
|
|
|
<halign>left</halign>
|
|
|
|
</text>
|
|
|
|
<hrule>
|
|
|
|
<stretch>true</stretch>
|
|
|
|
</hrule>
|
|
|
|
</group>
|
2010-12-27 20:19:31 +00:00
|
|
|
|
2012-07-06 19:11:51 +00:00
|
|
|
<group>
|
2012-07-12 11:13:48 +00:00
|
|
|
<layout>table</layout>
|
2012-10-06 22:03:40 +00:00
|
|
|
|
|
|
|
<text>
|
2012-08-09 21:52:51 +00:00
|
|
|
<row>0</row>
|
2012-07-12 11:13:48 +00:00
|
|
|
<col>0</col>
|
|
|
|
<halign>left</halign>
|
2017-01-21 21:44:05 +00:00
|
|
|
<label>Pylons and power lines</label>
|
|
|
|
</text>
|
|
|
|
<combo>
|
|
|
|
<row>0</row>
|
|
|
|
<col>1</col>
|
|
|
|
<name>pylons</name>
|
|
|
|
<pref-width>200</pref-width>
|
|
|
|
<property>/sim/gui/dialogs/rendering/pylons</property>
|
|
|
|
<value>Disabled</value>
|
|
|
|
<value>Enabled</value>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
<object-name>pylons</object-name>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>
|
|
|
|
var val = getprop("/sim/gui/dialogs/rendering/pylons");
|
|
|
|
if (val == "Enabled") {
|
|
|
|
setScenerySuffix("Pylons", 1);
|
|
|
|
} else {
|
|
|
|
setScenerySuffix("Pylons", 0);
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</binding>
|
|
|
|
</combo>
|
2012-10-06 22:03:40 +00:00
|
|
|
|
2017-01-21 21:44:05 +00:00
|
|
|
<text>
|
2012-10-06 22:03:40 +00:00
|
|
|
<row>1</row>
|
|
|
|
<col>0</col>
|
|
|
|
<halign>left</halign>
|
2017-01-21 21:44:05 +00:00
|
|
|
<label>Detailed Roads and Railways</label>
|
|
|
|
</text>
|
|
|
|
<combo>
|
|
|
|
<row>1</row>
|
|
|
|
<col>1</col>
|
|
|
|
<name>roads</name>
|
|
|
|
<pref-width>200</pref-width>
|
|
|
|
<property>/sim/gui/dialogs/rendering/roads</property>
|
|
|
|
<value>Disabled</value>
|
|
|
|
<value>Enabled</value>
|
2012-07-12 11:13:48 +00:00
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
2017-01-21 21:44:05 +00:00
|
|
|
<object-name>roads</object-name>
|
2012-07-12 11:13:48 +00:00
|
|
|
</binding>
|
2017-01-21 21:44:05 +00:00
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>
|
|
|
|
var val = getprop("/sim/gui/dialogs/rendering/roads");
|
|
|
|
if (val == "Enabled") {
|
|
|
|
setScenerySuffix("Roads", 1);
|
|
|
|
} else {
|
|
|
|
setScenerySuffix("Roads", 0);
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</binding>
|
|
|
|
</combo>
|
2011-04-15 15:07:53 +00:00
|
|
|
|
2017-01-21 21:44:05 +00:00
|
|
|
<text>
|
2012-10-06 22:03:40 +00:00
|
|
|
<row>2</row>
|
2012-07-12 11:13:48 +00:00
|
|
|
<col>0</col>
|
|
|
|
<halign>left</halign>
|
2017-01-21 21:44:05 +00:00
|
|
|
<label>Buildings</label>
|
|
|
|
</text>
|
|
|
|
<combo>
|
|
|
|
<row>2</row>
|
|
|
|
<col>1</col>
|
|
|
|
<name>buildings</name>
|
|
|
|
<pref-width>200</pref-width>
|
|
|
|
<property>/sim/gui/dialogs/rendering/buildings</property>
|
|
|
|
<value>Disabled</value>
|
|
|
|
<value>Randomly Generated</value>
|
|
|
|
<value>OpenStreetMap Data</value>
|
2012-07-19 20:36:06 +00:00
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
2017-01-21 21:44:05 +00:00
|
|
|
<object-name>buildings</object-name>
|
2012-07-19 20:36:06 +00:00
|
|
|
</binding>
|
2017-01-21 21:44:05 +00:00
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>
|
|
|
|
var val = getprop("/sim/gui/dialogs/rendering/buildings");
|
|
|
|
if (val == "Disabled") {
|
|
|
|
setprop("/sim/rendering/random-buildings", 0);
|
2017-02-23 08:13:22 +00:00
|
|
|
setprop("/sim/rendering/osm-buildings", 0);
|
2017-01-21 21:44:05 +00:00
|
|
|
setScenerySuffix("Buildings", 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (val == "Randomly Generated") {
|
|
|
|
setprop("/sim/rendering/random-buildings", 1);
|
2017-02-23 08:13:22 +00:00
|
|
|
setprop("/sim/rendering/osm-buildings", 0);
|
2017-01-21 21:44:05 +00:00
|
|
|
setScenerySuffix("Buildings", 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (val == "OpenStreetMap Data") {
|
|
|
|
setprop("/sim/rendering/random-buildings", 0);
|
2017-02-23 08:13:22 +00:00
|
|
|
setprop("/sim/rendering/osm-buildings", 1);
|
2017-01-21 21:44:05 +00:00
|
|
|
setScenerySuffix("Buildings", 1);
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</binding>
|
|
|
|
</combo>
|
2014-02-18 21:27:51 +00:00
|
|
|
|
2012-08-09 20:48:27 +00:00
|
|
|
<text>
|
2012-10-06 22:03:40 +00:00
|
|
|
<row>3</row>
|
2012-07-19 20:36:06 +00:00
|
|
|
<col>0</col>
|
|
|
|
<halign>left</halign>
|
2017-01-21 21:44:05 +00:00
|
|
|
<label>Random Scenery Objects</label>
|
|
|
|
</text>
|
|
|
|
<combo>
|
|
|
|
<row>3</row>
|
|
|
|
<col>1</col>
|
2012-07-12 11:13:48 +00:00
|
|
|
<name>random-objects</name>
|
2017-01-21 21:44:05 +00:00
|
|
|
<pref-width>200</pref-width>
|
|
|
|
<property>/sim/gui/dialogs/rendering/random-objects</property>
|
|
|
|
<value>Disabled</value>
|
|
|
|
<value>Enabled</value>
|
2012-07-12 11:13:48 +00:00
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
<object-name>random-objects</object-name>
|
|
|
|
</binding>
|
2017-01-21 21:44:05 +00:00
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>
|
|
|
|
var val = getprop("/sim/gui/dialogs/rendering/random-objects");
|
|
|
|
if (val == "Enabled") {
|
|
|
|
setprop("/sim/rendering/random-objects", 1);
|
|
|
|
} else {
|
|
|
|
setprop("/sim/rendering/random-objects", 0);
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</binding>
|
|
|
|
</combo>
|
2012-06-16 21:27:58 +00:00
|
|
|
|
2017-01-21 21:44:05 +00:00
|
|
|
<text>
|
2012-10-06 22:03:40 +00:00
|
|
|
<row>4</row>
|
2012-06-16 21:27:58 +00:00
|
|
|
<col>0</col>
|
|
|
|
<halign>left</halign>
|
2017-01-21 21:44:05 +00:00
|
|
|
<label>Vegetation</label>
|
|
|
|
</text>
|
|
|
|
<combo>
|
|
|
|
<row>4</row>
|
|
|
|
<col>1</col>
|
2012-06-16 21:27:58 +00:00
|
|
|
<name>random-vegetation</name>
|
2017-01-21 21:44:05 +00:00
|
|
|
<pref-width>200</pref-width>
|
|
|
|
<property>/sim/gui/dialogs/rendering/random-vegetation</property>
|
|
|
|
<value>Disabled</value>
|
2017-07-04 20:46:20 +00:00
|
|
|
<value>Ultra Low Density</value>
|
|
|
|
<value>Very Low Density</value>
|
2017-01-21 21:44:05 +00:00
|
|
|
<value>Low Density</value>
|
|
|
|
<value>Medium Density</value>
|
|
|
|
<value>High Density</value>
|
|
|
|
<value>Very High Density</value>
|
2017-07-04 20:46:20 +00:00
|
|
|
<value>Ultra High Density</value>
|
2012-06-16 21:27:58 +00:00
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
<object-name>random-vegetation</object-name>
|
|
|
|
</binding>
|
2017-01-21 21:44:05 +00:00
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>
|
|
|
|
var val = getprop("/sim/gui/dialogs/rendering/random-vegetation");
|
|
|
|
if (val == "Disabled") {
|
|
|
|
setprop("/sim/rendering/random-vegetation", 0);
|
|
|
|
}
|
|
|
|
|
2017-07-04 20:46:20 +00:00
|
|
|
if (val == "Ultra Low Density") {
|
|
|
|
setprop("/sim/rendering/random-vegetation", 1);
|
|
|
|
setprop("/sim/rendering/vegetation-density", 0.1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (val == "Low Density") {
|
|
|
|
setprop("/sim/rendering/random-vegetation", 1);
|
|
|
|
setprop("/sim/rendering/vegetation-density", 0.25);
|
|
|
|
}
|
|
|
|
|
2017-01-21 21:44:05 +00:00
|
|
|
if (val == "Low Density") {
|
|
|
|
setprop("/sim/rendering/random-vegetation", 1);
|
|
|
|
setprop("/sim/rendering/vegetation-density", 0.5);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (val == "Medium Density") {
|
|
|
|
setprop("/sim/rendering/random-vegetation", 1);
|
|
|
|
setprop("/sim/rendering/vegetation-density", 1.0);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (val == "High Density") {
|
|
|
|
setprop("/sim/rendering/random-vegetation", 1);
|
2017-07-04 20:46:20 +00:00
|
|
|
setprop("/sim/rendering/vegetation-density", 2.0);
|
2017-01-21 21:44:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (val == "Very High Density") {
|
|
|
|
setprop("/sim/rendering/random-vegetation", 1);
|
2017-07-04 20:46:20 +00:00
|
|
|
setprop("/sim/rendering/vegetation-density", 4.0);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (val == "Ultra High Density") {
|
|
|
|
setprop("/sim/rendering/random-vegetation", 1);
|
|
|
|
setprop("/sim/rendering/vegetation-density", 8.0);
|
2017-01-21 21:44:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</binding>
|
|
|
|
</combo>
|
|
|
|
|
2012-02-05 23:08:08 +00:00
|
|
|
<text>
|
2017-01-21 21:44:05 +00:00
|
|
|
<row>5</row>
|
|
|
|
<col>0</col>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>Vegetation Shadows</label>
|
2012-02-05 23:08:08 +00:00
|
|
|
</text>
|
2017-01-21 21:44:05 +00:00
|
|
|
<combo>
|
|
|
|
<row>5</row>
|
2015-05-03 16:13:50 +00:00
|
|
|
<col>1</col>
|
2017-01-21 21:44:05 +00:00
|
|
|
<name>vegetation-shadows</name>
|
|
|
|
<pref-width>200</pref-width>
|
|
|
|
<property>/sim/gui/dialogs/rendering/vegetation-shadows</property>
|
|
|
|
<value>Disabled</value>
|
|
|
|
<value>Enabled</value>
|
2012-02-05 23:08:08 +00:00
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
2017-01-21 21:44:05 +00:00
|
|
|
<object-name>vegetation-shadows</object-name>
|
2012-02-05 23:08:08 +00:00
|
|
|
</binding>
|
2017-01-21 21:44:05 +00:00
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>
|
|
|
|
var val = getprop("/sim/gui/dialogs/rendering/vegetation-shadows");
|
|
|
|
if (val == "Enabled") {
|
2017-02-23 07:41:36 +00:00
|
|
|
setprop("/sim/rendering/random-vegetation-shadows", 1);
|
2017-01-21 21:44:05 +00:00
|
|
|
} else {
|
2017-02-23 07:41:36 +00:00
|
|
|
setprop("/sim/rendering/random-vegetation-shadows", 0);
|
2017-01-21 21:44:05 +00:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</binding>
|
|
|
|
</combo>
|
2014-02-18 21:27:51 +00:00
|
|
|
|
2017-01-21 21:44:05 +00:00
|
|
|
<text>
|
|
|
|
<row>6</row>
|
2015-02-20 07:55:13 +00:00
|
|
|
<col>0</col>
|
|
|
|
<halign>left</halign>
|
2017-01-21 21:44:05 +00:00
|
|
|
<label>Scenery Objects</label>
|
|
|
|
</text>
|
|
|
|
|
|
|
|
<combo>
|
|
|
|
<row>6</row>
|
|
|
|
<col>1</col>
|
|
|
|
<name>placed-objects</name>
|
|
|
|
<pref-width>200</pref-width>
|
|
|
|
<property>/sim/gui/dialogs/rendering/placed-objects</property>
|
|
|
|
<value>Disabled</value>
|
|
|
|
<value>Enabled</value>
|
2015-02-20 07:55:13 +00:00
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
2017-01-21 21:44:05 +00:00
|
|
|
<object-name>placed-objects</object-name>
|
2015-02-20 07:55:13 +00:00
|
|
|
</binding>
|
2017-01-21 21:44:05 +00:00
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>
|
|
|
|
var val = getprop("/sim/gui/dialogs/rendering/placed-objects");
|
|
|
|
if (val == "Enabled") {
|
|
|
|
setScenerySuffix("Objects", 1);
|
|
|
|
} else {
|
|
|
|
setScenerySuffix("Objects", 0);
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</binding>
|
|
|
|
</combo>
|
2015-02-20 07:55:13 +00:00
|
|
|
|
|
|
|
<text>
|
2017-01-21 21:44:05 +00:00
|
|
|
<row>7</row>
|
|
|
|
<col>0</col>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>Terrain Textures</label>
|
|
|
|
</text>
|
|
|
|
|
|
|
|
<combo>
|
|
|
|
<row>7</row>
|
|
|
|
<col>1</col>
|
|
|
|
<name>texture-set</name>
|
|
|
|
<pref-width>200</pref-width>
|
|
|
|
<property>sim/gui/dialogs/rendering/texture-set</property>
|
|
|
|
<value>Region-specific</value>
|
|
|
|
<value>Global</value>
|
|
|
|
<value>Global alternative (DDS format)</value>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
<object-name>texture-set</object-name>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>
|
|
|
|
var file = materials[getprop("/sim/gui/dialogs/rendering/texture-set")];
|
|
|
|
setprop("/sim/rendering/materials-file", file);
|
|
|
|
</script>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>reload-materials</command>
|
|
|
|
</binding>
|
|
|
|
</combo>
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<row>8</row>
|
|
|
|
<col>0</col>
|
2015-05-03 16:13:50 +00:00
|
|
|
<colspan>2</colspan>
|
2017-01-21 21:44:05 +00:00
|
|
|
<halign>left</halign>
|
|
|
|
<color>
|
|
|
|
<red>1.0</red>
|
|
|
|
<green>0.6</green>
|
|
|
|
<blue>0.6</blue>
|
|
|
|
</color>
|
|
|
|
<label>Warning: Pylons, Detailed Roads, Buildings use a lot of memory</label>
|
|
|
|
</text>
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<row>9</row>
|
|
|
|
<col>0</col>
|
|
|
|
<colspan>2</colspan>
|
|
|
|
<halign>left</halign>
|
|
|
|
<color>
|
|
|
|
<red>1.0</red>
|
|
|
|
<green>0.6</green>
|
|
|
|
<blue>0.6</blue>
|
|
|
|
</color>
|
|
|
|
<label>and disk space, and are only available in limited areas.</label>
|
2015-05-03 16:13:50 +00:00
|
|
|
</text>
|
2015-02-20 07:55:13 +00:00
|
|
|
|
2012-04-24 20:55:37 +00:00
|
|
|
</group>
|
|
|
|
|
2011-04-15 15:07:53 +00:00
|
|
|
<group>
|
2012-06-16 21:27:58 +00:00
|
|
|
<layout>vbox</layout>
|
|
|
|
<stretch>1</stretch>
|
2011-04-15 15:07:53 +00:00
|
|
|
</group>
|
|
|
|
|
|
|
|
</group>
|
|
|
|
|
2015-05-03 16:13:50 +00:00
|
|
|
<!-- only for a gap -->
|
|
|
|
<group>
|
|
|
|
<layout>vbox</layout>
|
|
|
|
<default-padding>1</default-padding>
|
|
|
|
<text>
|
|
|
|
<label> </label>
|
|
|
|
</text>
|
|
|
|
</group>
|
|
|
|
|
2011-04-15 15:07:53 +00:00
|
|
|
<vrule/>
|
|
|
|
|
2015-05-03 16:13:50 +00:00
|
|
|
<!-- only for a gap -->
|
|
|
|
<group>
|
|
|
|
<layout>vbox</layout>
|
|
|
|
<default-padding>1</default-padding>
|
|
|
|
<text>
|
|
|
|
<label> </label>
|
|
|
|
</text>
|
|
|
|
</group>
|
|
|
|
|
2011-04-15 15:07:53 +00:00
|
|
|
<group>
|
|
|
|
<layout>vbox</layout>
|
2014-02-18 21:27:51 +00:00
|
|
|
|
2011-04-15 15:07:53 +00:00
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<text>
|
2015-05-03 16:13:50 +00:00
|
|
|
<label>Shader Effects</label>
|
2011-04-15 15:07:53 +00:00
|
|
|
<halign>left</halign>
|
|
|
|
</text>
|
|
|
|
<hrule>
|
|
|
|
<stretch>true</stretch>
|
|
|
|
</hrule>
|
|
|
|
</group>
|
2014-02-18 21:27:51 +00:00
|
|
|
|
2011-12-12 16:04:36 +00:00
|
|
|
<group>
|
2012-03-10 16:05:57 +00:00
|
|
|
<layout>table</layout>
|
2014-02-18 21:27:51 +00:00
|
|
|
|
2012-03-10 16:05:57 +00:00
|
|
|
<checkbox>
|
2011-12-12 16:04:36 +00:00
|
|
|
<halign>left</halign>
|
2012-03-10 16:05:57 +00:00
|
|
|
<row>0</row>
|
|
|
|
<col>0</col>
|
|
|
|
<label>Custom settings (fine-tuning)</label>
|
|
|
|
<name>custom-settings</name>
|
|
|
|
<property>/sim/rendering/shaders/custom-settings</property>
|
2011-04-15 15:07:53 +00:00
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
2012-03-10 16:05:57 +00:00
|
|
|
<object-name>custom-settings</object-name>
|
2011-04-15 15:07:53 +00:00
|
|
|
</binding>
|
2012-03-10 16:05:57 +00:00
|
|
|
</checkbox>
|
2014-02-18 21:27:51 +00:00
|
|
|
|
2011-11-28 09:22:42 +00:00
|
|
|
<group>
|
2012-03-10 16:05:57 +00:00
|
|
|
<layout>hbox</layout>
|
|
|
|
<row>1</row>
|
|
|
|
<col>0</col>
|
|
|
|
<visible>
|
|
|
|
<not>
|
|
|
|
<property>/sim/rendering/shaders/custom-settings</property>
|
|
|
|
</not>
|
|
|
|
</visible>
|
|
|
|
|
2011-11-28 09:22:42 +00:00
|
|
|
<text>
|
2012-03-10 16:05:57 +00:00
|
|
|
<label>Performance</label>
|
2011-11-28 09:22:42 +00:00
|
|
|
</text>
|
2012-03-10 16:05:57 +00:00
|
|
|
<slider>
|
|
|
|
<name>quality-level</name>
|
|
|
|
<min>0.0</min>
|
|
|
|
<max>5.0</max>
|
|
|
|
<step>1.0</step>
|
|
|
|
<fraction>0.17</fraction>
|
|
|
|
<property>/sim/rendering/shaders/quality-level-internal</property>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
<object-name>quality-level</object-name>
|
|
|
|
</binding>
|
|
|
|
</slider>
|
2011-11-28 09:22:42 +00:00
|
|
|
<text>
|
2012-03-10 16:05:57 +00:00
|
|
|
<label>Quality</label>
|
|
|
|
</text>
|
|
|
|
<text>
|
|
|
|
<label>12345678</label>
|
|
|
|
<format>(%1.0f)</format>
|
|
|
|
<live>true</live>
|
|
|
|
<property>/sim/rendering/shaders/quality-level-internal</property>
|
2011-11-28 09:22:42 +00:00
|
|
|
</text>
|
2014-02-18 21:27:51 +00:00
|
|
|
|
2011-11-28 09:22:42 +00:00
|
|
|
</group>
|
2014-02-18 21:27:51 +00:00
|
|
|
|
2012-03-10 16:05:57 +00:00
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<row>1</row>
|
|
|
|
<col>0</col>
|
|
|
|
<visible>
|
2012-06-20 21:11:26 +00:00
|
|
|
<and>
|
|
|
|
<property>/sim/rendering/shaders/custom-settings</property>
|
|
|
|
<not>
|
|
|
|
<property>/sim/rendering/shaders/skydome</property>
|
|
|
|
</not>
|
|
|
|
</and>
|
2012-03-10 16:05:57 +00:00
|
|
|
</visible>
|
2014-02-18 21:27:51 +00:00
|
|
|
|
2012-03-10 16:05:57 +00:00
|
|
|
<button>
|
|
|
|
<legend>Shader Options</legend>
|
|
|
|
<halign>left</halign>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-show</command>
|
|
|
|
<dialog-name>shaders</dialog-name>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-close</command>
|
|
|
|
<dialog-name>rendering</dialog-name>
|
|
|
|
</binding>
|
|
|
|
<pref-width>200</pref-width>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
</group>
|
2012-06-20 21:11:26 +00:00
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<row>1</row>
|
|
|
|
<col>0</col>
|
|
|
|
<visible>
|
|
|
|
<and>
|
|
|
|
<property>/sim/rendering/shaders/custom-settings</property>
|
|
|
|
<property>/sim/rendering/shaders/skydome</property>
|
|
|
|
<not>
|
|
|
|
<property>/sim/rendering/rembrandt/enabled</property>
|
|
|
|
</not>
|
|
|
|
</and>
|
|
|
|
</visible>
|
2014-02-18 21:27:51 +00:00
|
|
|
|
2012-06-20 21:11:26 +00:00
|
|
|
<button>
|
|
|
|
<legend>Shader Options</legend>
|
|
|
|
<halign>left</halign>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-show</command>
|
|
|
|
<dialog-name>shaders-lightfield</dialog-name>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-close</command>
|
|
|
|
<dialog-name>rendering</dialog-name>
|
|
|
|
</binding>
|
|
|
|
<pref-width>200</pref-width>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
</group>
|
2014-02-18 21:27:51 +00:00
|
|
|
|
2012-04-04 20:29:33 +00:00
|
|
|
</group>
|
2014-02-18 21:27:51 +00:00
|
|
|
|
2012-04-04 20:29:33 +00:00
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<text>
|
2015-05-03 16:13:50 +00:00
|
|
|
<label>Atmospheric Effects</label>
|
2012-04-04 20:29:33 +00:00
|
|
|
<halign>left</halign>
|
|
|
|
</text>
|
|
|
|
<hrule>
|
|
|
|
<stretch>true</stretch>
|
|
|
|
</hrule>
|
2011-11-28 09:22:42 +00:00
|
|
|
</group>
|
2012-06-16 21:27:58 +00:00
|
|
|
|
2012-05-12 21:02:04 +00:00
|
|
|
<checkbox>
|
|
|
|
<halign>left</halign>
|
2012-06-16 21:27:58 +00:00
|
|
|
<label>Particles (smoke, dust, spray)</label>
|
|
|
|
<name>particles</name>
|
|
|
|
<property>/sim/rendering/particles</property>
|
2012-05-12 21:02:04 +00:00
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
2012-06-16 21:27:58 +00:00
|
|
|
<object-name>particles</object-name>
|
2012-05-12 21:02:04 +00:00
|
|
|
</binding>
|
|
|
|
</checkbox>
|
2012-06-16 21:27:58 +00:00
|
|
|
|
2012-05-12 21:02:04 +00:00
|
|
|
<checkbox>
|
|
|
|
<halign>left</halign>
|
2012-06-16 21:27:58 +00:00
|
|
|
<label>Precipitation</label>
|
|
|
|
<name>precipitation</name>
|
|
|
|
<property>/sim/rendering/precipitation-gui-enable</property>
|
2012-05-12 21:02:04 +00:00
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
2012-06-16 21:27:58 +00:00
|
|
|
<object-name>precipitation</object-name>
|
|
|
|
</binding>
|
|
|
|
</checkbox>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
|
|
|
<checkbox>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>2D clouds</label>
|
|
|
|
<property>/sim/rendering/bump-mapping</property>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
|
|
|
</checkbox>
|
|
|
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
<checkbox>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>3D clouds</label>
|
|
|
|
<name>3d-clouds</name>
|
|
|
|
<property>/sim/rendering/clouds3d-enable</property>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
<object-name>3d-clouds</object-name>
|
2012-05-12 21:02:04 +00:00
|
|
|
</binding>
|
|
|
|
</checkbox>
|
2012-05-18 07:00:48 +00:00
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<halign>right</halign>
|
|
|
|
<text>
|
2012-06-16 21:27:58 +00:00
|
|
|
<label>Cloud density</label>
|
2012-05-18 07:00:48 +00:00
|
|
|
<enable>
|
2012-06-16 21:27:58 +00:00
|
|
|
<property>/sim/rendering/clouds3d-enable</property>
|
2012-05-18 07:00:48 +00:00
|
|
|
</enable>
|
|
|
|
</text>
|
|
|
|
<slider>
|
2012-06-16 21:27:58 +00:00
|
|
|
<name>cloud-density</name>
|
|
|
|
<min>0</min>
|
2012-05-18 07:00:48 +00:00
|
|
|
<max>1.0</max>
|
2012-06-16 21:27:58 +00:00
|
|
|
<property>/sim/rendering/clouds3d-density</property>
|
2012-05-18 07:00:48 +00:00
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
2012-06-16 21:27:58 +00:00
|
|
|
<object-name>cloud-density</object-name>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>property-toggle</command>
|
|
|
|
<property>/sim/rendering/clouds3d-enable</property>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>property-toggle</command>
|
|
|
|
<property>/sim/rendering/clouds3d-enable</property>
|
2012-05-18 07:00:48 +00:00
|
|
|
</binding>
|
|
|
|
</slider>
|
|
|
|
<text>
|
|
|
|
<enable>
|
2012-06-16 21:27:58 +00:00
|
|
|
<property>/sim/rendering/clouds3d-enable</property>
|
2012-05-18 07:00:48 +00:00
|
|
|
</enable>
|
|
|
|
<label>12345678</label>
|
2012-05-18 10:43:28 +00:00
|
|
|
<format>%.2f</format>
|
2012-05-18 07:00:48 +00:00
|
|
|
<live>true</live>
|
2012-06-16 21:27:58 +00:00
|
|
|
<property>/sim/rendering/clouds3d-density</property>
|
2012-05-18 07:00:48 +00:00
|
|
|
</text>
|
|
|
|
</group>
|
|
|
|
|
2012-04-04 20:29:33 +00:00
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<halign>right</halign>
|
|
|
|
<text>
|
2012-06-16 21:27:58 +00:00
|
|
|
<label>Cloud visibility range</label>
|
2012-04-04 20:29:33 +00:00
|
|
|
<enable>
|
2012-06-16 21:27:58 +00:00
|
|
|
<property>/sim/rendering/clouds3d-enable</property>
|
2012-04-04 20:29:33 +00:00
|
|
|
</enable>
|
|
|
|
</text>
|
2012-06-16 21:27:58 +00:00
|
|
|
<slider>
|
|
|
|
<name>cloud-vis-range</name>
|
|
|
|
<min>1000.0</min>
|
2014-02-17 08:21:26 +00:00
|
|
|
<max>150000.0</max>
|
2012-06-16 21:27:58 +00:00
|
|
|
<property>/sim/rendering/clouds3d-vis-range</property>
|
2012-04-04 20:29:33 +00:00
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
2012-06-16 21:27:58 +00:00
|
|
|
<object-name>cloud-vis-range</object-name>
|
2012-04-04 20:29:33 +00:00
|
|
|
</binding>
|
2012-06-16 21:27:58 +00:00
|
|
|
</slider>
|
2011-04-15 15:07:53 +00:00
|
|
|
<text>
|
2012-06-16 21:27:58 +00:00
|
|
|
<enable>
|
|
|
|
<property>/sim/rendering/clouds3d-enable</property>
|
|
|
|
</enable>
|
|
|
|
<label>12345678</label>
|
|
|
|
<format>%.fm</format>
|
|
|
|
<live>true</live>
|
|
|
|
<property>/sim/rendering/clouds3d-vis-range</property>
|
2011-04-15 15:07:53 +00:00
|
|
|
</text>
|
|
|
|
</group>
|
2014-02-18 21:27:51 +00:00
|
|
|
|
2015-05-03 16:13:50 +00:00
|
|
|
<!-- mhab modified -->
|
2011-04-15 15:07:53 +00:00
|
|
|
<group>
|
2012-06-20 21:11:26 +00:00
|
|
|
<layout>table</layout>
|
2015-05-03 16:13:50 +00:00
|
|
|
|
2012-06-20 21:11:26 +00:00
|
|
|
<group>
|
2015-05-03 16:13:50 +00:00
|
|
|
<layout>vbox</layout>
|
|
|
|
<pref-height>35</pref-height>
|
2011-04-15 15:07:53 +00:00
|
|
|
<halign>left</halign>
|
2012-06-20 21:11:26 +00:00
|
|
|
<row>0</row>
|
|
|
|
<col>0</col>
|
|
|
|
<checkbox>
|
|
|
|
<halign>left</halign>
|
2015-05-03 16:13:50 +00:00
|
|
|
<label>Atmospheric Light Scattering (ALS)</label>
|
2012-06-20 21:11:26 +00:00
|
|
|
<name>skydome-scattering</name>
|
2015-05-03 16:13:50 +00:00
|
|
|
<enable>
|
2012-06-20 21:11:26 +00:00
|
|
|
<not>
|
|
|
|
<property>/sim/rendering/rembrandt/enabled</property>
|
|
|
|
</not>
|
2015-05-03 16:13:50 +00:00
|
|
|
</enable>
|
2012-06-20 21:11:26 +00:00
|
|
|
<property>/sim/rendering/shaders/skydome</property>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
<object-name>skydome-scattering</object-name>
|
|
|
|
</binding>
|
|
|
|
</checkbox>
|
|
|
|
</group>
|
2016-04-26 06:02:23 +00:00
|
|
|
<button>
|
|
|
|
<row>1</row>
|
|
|
|
<col>0</col>
|
|
|
|
<enable>
|
|
|
|
<property>/sim/rendering/shaders/skydome</property>
|
|
|
|
</enable>
|
|
|
|
<legend>Filter settings (experimental)</legend>
|
|
|
|
<halign>center</halign>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-show</command>
|
|
|
|
<dialog-name>als-filters</dialog-name>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-close</command>
|
|
|
|
<dialog-name>rendering</dialog-name>
|
|
|
|
</binding>
|
|
|
|
<pref-width>200</pref-width>
|
|
|
|
</button>
|
|
|
|
|
2014-02-18 21:27:51 +00:00
|
|
|
|
2012-06-20 21:11:26 +00:00
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
2016-04-26 06:02:23 +00:00
|
|
|
<row>2</row>
|
2012-06-20 21:11:26 +00:00
|
|
|
<col>0</col>
|
2014-02-18 21:27:51 +00:00
|
|
|
|
2012-06-20 21:11:26 +00:00
|
|
|
<text>
|
|
|
|
<label>Rembrandt</label>
|
|
|
|
<halign>left</halign>
|
2015-05-03 16:13:50 +00:00
|
|
|
<enable>
|
2012-06-20 21:11:26 +00:00
|
|
|
<property>/sim/rendering/rembrandt/enabled</property>
|
2015-05-03 16:13:50 +00:00
|
|
|
</enable>
|
2012-06-20 21:11:26 +00:00
|
|
|
</text>
|
|
|
|
<text>
|
2015-05-03 16:13:50 +00:00
|
|
|
<label>(experimental)</label>
|
2012-06-20 21:11:26 +00:00
|
|
|
<halign>left</halign>
|
|
|
|
<color>
|
|
|
|
<red>1.0</red>
|
|
|
|
<green>0.6</green>
|
|
|
|
<blue>0.6</blue>
|
|
|
|
</color>
|
2015-05-03 16:13:50 +00:00
|
|
|
<enable>
|
2012-06-20 21:11:26 +00:00
|
|
|
<property>/sim/rendering/rembrandt/enabled</property>
|
2015-05-03 16:13:50 +00:00
|
|
|
</enable>
|
2012-06-20 21:11:26 +00:00
|
|
|
</text>
|
|
|
|
<hrule>
|
|
|
|
<stretch>true</stretch>
|
|
|
|
<visible>
|
|
|
|
<property>/sim/rendering/rembrandt/enabled</property>
|
|
|
|
</visible>
|
|
|
|
</hrule>
|
|
|
|
</group>
|
2014-02-18 21:27:51 +00:00
|
|
|
|
2012-06-20 21:11:26 +00:00
|
|
|
<button>
|
2016-04-26 06:02:23 +00:00
|
|
|
<row>3</row>
|
2012-06-20 21:11:26 +00:00
|
|
|
<col>0</col>
|
2015-05-03 16:13:50 +00:00
|
|
|
<enable>
|
2012-06-16 21:27:58 +00:00
|
|
|
<property>/sim/rendering/rembrandt/enabled</property>
|
2015-05-03 16:13:50 +00:00
|
|
|
</enable>
|
2012-06-20 21:11:26 +00:00
|
|
|
<legend>Rembrandt Options</legend>
|
|
|
|
<halign>center</halign>
|
2011-04-15 15:07:53 +00:00
|
|
|
<binding>
|
2012-06-20 21:11:26 +00:00
|
|
|
<command>dialog-show</command>
|
|
|
|
<dialog-name>rembrandt</dialog-name>
|
2011-04-15 15:07:53 +00:00
|
|
|
</binding>
|
|
|
|
<binding>
|
2012-06-20 21:11:26 +00:00
|
|
|
<command>dialog-close</command>
|
|
|
|
<dialog-name>rendering</dialog-name>
|
2011-04-15 15:07:53 +00:00
|
|
|
</binding>
|
2012-06-20 21:11:26 +00:00
|
|
|
<pref-width>200</pref-width>
|
|
|
|
</button>
|
2014-02-18 21:27:51 +00:00
|
|
|
|
2011-04-15 15:07:53 +00:00
|
|
|
</group>
|
2011-12-02 15:41:42 +00:00
|
|
|
|
2011-11-28 09:22:42 +00:00
|
|
|
<empty>
|
|
|
|
<stretch>1</stretch>
|
|
|
|
</empty>
|
2011-04-15 15:07:53 +00:00
|
|
|
|
|
|
|
</group>
|
2015-05-03 16:13:50 +00:00
|
|
|
|
|
|
|
<!-- only for a gap -->
|
|
|
|
<group>
|
|
|
|
<layout>vbox</layout>
|
|
|
|
<default-padding>1</default-padding>
|
|
|
|
<text>
|
|
|
|
<label> </label>
|
|
|
|
</text>
|
|
|
|
</group>
|
|
|
|
|
2011-04-15 15:07:53 +00:00
|
|
|
</group>
|
|
|
|
|
|
|
|
<hrule/>
|
2005-04-24 14:19:49 +00:00
|
|
|
|
2011-04-15 15:07:53 +00:00
|
|
|
<button>
|
2015-05-03 16:13:50 +00:00
|
|
|
<legend> OK </legend>
|
2014-07-31 20:34:48 +00:00
|
|
|
<default>true</default>
|
|
|
|
<binding>
|
2014-08-01 21:18:19 +00:00
|
|
|
<command>nasal</command>
|
|
|
|
<script>
|
|
|
|
var reinit = 0;
|
|
|
|
foreach (var p; reload_props) {
|
|
|
|
if (reload_vals[p] != getprop(p)) {
|
|
|
|
reinit = 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (reinit) {
|
2017-03-26 19:34:41 +00:00
|
|
|
fgcommand("reinit", props.Node.new({"subsystem": "scenery"}));
|
2014-08-01 21:18:19 +00:00
|
|
|
}
|
|
|
|
</script>
|
2014-07-31 20:34:48 +00:00
|
|
|
</binding>
|
2011-04-15 15:07:53 +00:00
|
|
|
<binding>
|
|
|
|
<command>dialog-close</command>
|
|
|
|
</binding>
|
|
|
|
</button>
|
2010-04-10 13:33:14 +00:00
|
|
|
|
2011-04-15 15:07:53 +00:00
|
|
|
<nasal>
|
|
|
|
<open>
|
2017-01-21 21:44:05 +00:00
|
|
|
<![CDATA[
|
|
|
|
var getScenerySuffix = func(layer) {
|
|
|
|
var suffixes = props.globals.getNode("/sim/rendering", 1).getChildren("scenery-path-suffix");
|
|
|
|
#printf("Looking for suffix " ~ layer);
|
|
|
|
|
|
|
|
foreach (var p; suffixes) {
|
|
|
|
#printf("Checking suffix " ~ p.getNode("name",1).getValue());
|
|
|
|
#printf("Checking suffix enabled " ~ p.getNode("enabled",1).getValue());
|
|
|
|
if (p.getNode("name",1).getValue() == layer) {
|
|
|
|
#printf("Found layer " ~ layer ~ " value: " ~ p.getNode("enabled", 1).getValue() ~ " " ~ p.getNode("enabled", 1).getBoolValue());
|
|
|
|
return p.getNode("enabled", 1).getBoolValue();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
var setScenerySuffix = func(layer, enable) {
|
|
|
|
var suffixes = props.globals.getNode("/sim/rendering", 1).getChildren("scenery-path-suffix");
|
|
|
|
#printf("Setting scenery suffix" ~ layer ~ " to " ~ enable);
|
|
|
|
|
|
|
|
foreach (var p; suffixes) {
|
|
|
|
if (p.getNode("name",1).getValue() == layer) {
|
|
|
|
#printf("Matched scenery suffix" ~ layer ~ " to " ~ enable);
|
|
|
|
p.getNode("enabled", 1).setBoolValue(enable);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2014-02-18 21:27:51 +00:00
|
|
|
|
2012-10-06 22:03:40 +00:00
|
|
|
var materials = { "Region-specific" : "Materials/regions/materials.xml",
|
|
|
|
"Global" : "Materials/default/materials.xml",
|
2012-10-10 19:50:45 +00:00
|
|
|
"Global alternative (DDS format)" : "Materials/dds/materials.xml" };
|
2014-02-18 21:27:51 +00:00
|
|
|
|
|
|
|
|
2011-04-15 15:07:53 +00:00
|
|
|
gui.enable_widgets(cmdarg(), "shadows-debug", getprop("/sim/gui/devel-widgets"));
|
2012-04-01 11:06:14 +00:00
|
|
|
props.globals.getNode("/sim/rendering/shaders/quality-level", 1).setAttribute("userarchive", 0);
|
2012-04-08 22:05:48 +00:00
|
|
|
setprop("/sim/gui/frame-rate-throttled", (getprop("/sim/frame-rate-throttle-hz") > 0));
|
2012-10-06 22:03:40 +00:00
|
|
|
|
|
|
|
var matfile = getprop("/sim/rendering/materials-file");
|
|
|
|
foreach (var name; keys(materials)) {
|
2014-02-18 21:27:51 +00:00
|
|
|
if (matfile == materials[name]) {
|
|
|
|
setprop("/sim/gui/dialogs/rendering/texture-set", name);
|
2012-10-06 22:03:40 +00:00
|
|
|
}
|
|
|
|
}
|
2014-02-18 21:27:51 +00:00
|
|
|
|
|
|
|
var vendor = getprop("/sim/rendering/gl-vendor");
|
2013-02-01 21:55:28 +00:00
|
|
|
if (vendor != nil) {
|
|
|
|
vendor = string.lc(vendor);
|
|
|
|
if (find("intel", vendor) != -1) {
|
2014-02-18 21:27:51 +00:00
|
|
|
setprop("/sim/gui/dialogs/rendering/shader-warning", 1);
|
2013-02-01 21:55:28 +00:00
|
|
|
} else {
|
2014-02-18 21:27:51 +00:00
|
|
|
setprop("/sim/gui/dialogs/rendering/shader-warning", 0);
|
2013-02-01 21:55:28 +00:00
|
|
|
}
|
2014-02-18 21:27:51 +00:00
|
|
|
}
|
2014-08-01 21:18:19 +00:00
|
|
|
|
2017-01-21 21:44:05 +00:00
|
|
|
# Mapping from underlying properties to those used by the GUI.
|
|
|
|
|
|
|
|
if (getScenerySuffix("Pylons")) {
|
|
|
|
setprop("/sim/gui/dialogs/rendering/pylons", "Enabled");
|
|
|
|
} else {
|
|
|
|
setprop("/sim/gui/dialogs/rendering/pylons", "Disabled");
|
|
|
|
}
|
|
|
|
|
|
|
|
if (getScenerySuffix("Roads")) {
|
|
|
|
setprop("/sim/gui/dialogs/rendering/roads", "Enabled");
|
|
|
|
} else {
|
|
|
|
setprop("/sim/gui/dialogs/rendering/roads", "Disabled");
|
|
|
|
}
|
|
|
|
|
|
|
|
if (getScenerySuffix("Buildings")) {
|
|
|
|
setprop("/sim/gui/dialogs/rendering/buildings", "OpenStreetMap Data");
|
|
|
|
} else if (getprop("/sim/rendering/random-buildings")) {
|
|
|
|
setprop("/sim/gui/dialogs/rendering/buildings", "Random");
|
|
|
|
} else {
|
|
|
|
setprop("/sim/gui/dialogs/rendering/buildings", "Disabled");
|
|
|
|
}
|
|
|
|
|
|
|
|
if (getprop("/sim/rendering/random-objects")) {
|
|
|
|
setprop("/sim/gui/dialogs/rendering/random-objects", "Enabled");
|
|
|
|
} else {
|
|
|
|
setprop("/sim/gui/dialogs/rendering/random-objects", "Disabled");
|
|
|
|
}
|
|
|
|
|
|
|
|
if (getprop("/sim/rendering/random-vegetation")) {
|
|
|
|
var density = getprop("/sim/rendering/vegetation-density");
|
2017-07-04 20:46:20 +00:00
|
|
|
if (density < 0.2) {
|
|
|
|
setprop("/sim/gui/dialogs/rendering/random-vegetation", "Ultra Low Density");
|
|
|
|
# 0.1
|
|
|
|
} else if (density < 0.4) {
|
|
|
|
setprop("/sim/gui/dialogs/rendering/random-vegetation", "Very Low Density");
|
|
|
|
# 0.25
|
|
|
|
} else if (density < 0.8) {
|
2017-01-21 21:44:05 +00:00
|
|
|
setprop("/sim/gui/dialogs/rendering/random-vegetation", "Low Density");
|
2017-07-04 20:46:20 +00:00
|
|
|
# 0.5
|
|
|
|
} else if (density < 1.5) {
|
2017-01-21 21:44:05 +00:00
|
|
|
setprop("/sim/gui/dialogs/rendering/random-vegetation", "Medium Density");
|
2017-07-04 20:46:20 +00:00
|
|
|
# 1.0
|
|
|
|
} else if (density < 3.0) {
|
2017-01-21 21:44:05 +00:00
|
|
|
setprop("/sim/gui/dialogs/rendering/random-vegetation", "High Density");
|
2017-07-04 20:46:20 +00:00
|
|
|
# 2.0
|
|
|
|
} else if (density < 6.0) {
|
2017-01-21 21:44:05 +00:00
|
|
|
setprop("/sim/gui/dialogs/rendering/random-vegetation", "Very High Density");
|
2017-07-04 20:46:20 +00:00
|
|
|
# 4.0
|
|
|
|
} else {
|
|
|
|
setprop("/sim/gui/dialogs/rendering/random-vegetation", "Ultra High Density");
|
|
|
|
# 8.0
|
2017-01-21 21:44:05 +00:00
|
|
|
}
|
|
|
|
} else {
|
|
|
|
setprop("/sim/gui/dialogs/rendering/random-vegetation", "Disabled");
|
|
|
|
}
|
|
|
|
|
2017-02-23 07:41:36 +00:00
|
|
|
if (getprop("/sim/rendering/random-vegetation-shadows")) {
|
2017-01-21 21:44:05 +00:00
|
|
|
setprop("/sim/gui/dialogs/rendering/vegetation-shadows", "Enabled");
|
|
|
|
} else {
|
|
|
|
setprop("/sim/gui/dialogs/rendering/vegetation-shadows", "Disabled");
|
|
|
|
}
|
|
|
|
|
|
|
|
if (getScenerySuffix("Objects")) {
|
|
|
|
setprop("/sim/gui/dialogs/rendering/placed-objects", "Enabled");
|
|
|
|
} else {
|
|
|
|
setprop("/sim/gui/dialogs/rendering/placed-objects", "Disabled");
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2014-08-01 21:18:19 +00:00
|
|
|
var reload_props = [
|
|
|
|
"/sim/rendering/materials-file",
|
2017-01-21 21:44:05 +00:00
|
|
|
"/sim/rendering/osm-buildings",
|
2014-08-01 21:18:19 +00:00
|
|
|
"/sim/rendering/random-buildings",
|
|
|
|
"/sim/rendering/random-objects",
|
|
|
|
"/sim/rendering/random-vegetation",
|
2015-05-03 16:13:50 +00:00
|
|
|
"/sim/rendering/random-vegetation-shadows",
|
2014-08-01 21:18:19 +00:00
|
|
|
"/sim/rendering/vegetation-density",
|
|
|
|
"/sim/rendering/clouds3d-enable",
|
2017-01-21 21:44:05 +00:00
|
|
|
"/sim/rendering/clouds3d-density",
|
|
|
|
"/sim/rendering/scenery-path-suffix[0]/enabled",
|
|
|
|
"/sim/rendering/scenery-path-suffix[1]/enabled",
|
|
|
|
"/sim/rendering/scenery-path-suffix[2]/enabled",
|
|
|
|
"/sim/rendering/scenery-path-suffix[3]/enabled",
|
|
|
|
"/sim/rendering/scenery-path-suffix[4]/enabled",
|
|
|
|
"/sim/rendering/scenery-path-suffix[5]/enabled",
|
|
|
|
"/sim/rendering/scenery-path-suffix[6]/enabled"
|
|
|
|
];
|
2014-08-01 21:18:19 +00:00
|
|
|
|
|
|
|
var reload_vals = {};
|
|
|
|
foreach (var p; reload_props) {
|
|
|
|
reload_vals[p] = getprop(p);
|
|
|
|
}
|
|
|
|
|
2017-01-21 21:44:05 +00:00
|
|
|
|
|
|
|
]]>
|
2011-04-15 15:07:53 +00:00
|
|
|
</open>
|
|
|
|
</nasal>
|
2005-04-24 14:19:49 +00:00
|
|
|
</PropertyList>
|