2011-11-28 09:31:22 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
|
|
|
<PropertyList>
|
|
|
|
<name>shaders</name>
|
|
|
|
<modal>false</modal>
|
|
|
|
<layout>vbox</layout>
|
|
|
|
<padding>20</padding>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<empty>
|
|
|
|
<stretch>1</stretch>
|
|
|
|
</empty>
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<label>Shader options</label>
|
|
|
|
</text>
|
|
|
|
|
|
|
|
<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>
|
2011-12-01 21:55:00 +00:00
|
|
|
|
2011-11-28 09:31:22 +00:00
|
|
|
<hrule/>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<text>
|
|
|
|
<label>General</label>
|
|
|
|
<halign>left</halign>
|
|
|
|
</text>
|
|
|
|
<hrule>
|
|
|
|
<stretch>true</stretch>
|
|
|
|
</hrule>
|
|
|
|
</group>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>vbox</layout>
|
|
|
|
<halign>left</halign>
|
2011-12-01 21:55:00 +00:00
|
|
|
|
2011-12-12 16:04:36 +00:00
|
|
|
<text>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>Generic</label>
|
|
|
|
</text>
|
2012-06-30 11:51:18 +00:00
|
|
|
|
2011-11-28 09:31:22 +00:00
|
|
|
<text>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>Crop</label>
|
|
|
|
<enable>
|
2012-06-20 21:11:26 +00:00
|
|
|
<not>
|
|
|
|
<property>/sim/rendering/rembrandt/enabled</property>
|
|
|
|
</not>
|
2011-11-28 09:31:22 +00:00
|
|
|
</enable>
|
|
|
|
</text>
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>Landmass</label>
|
|
|
|
<enable>
|
2012-06-20 21:11:26 +00:00
|
|
|
<not>
|
|
|
|
<property>/sim/rendering/rembrandt/enabled</property>
|
|
|
|
</not>
|
2011-11-28 09:31:22 +00:00
|
|
|
</enable>
|
|
|
|
</text>
|
2011-12-01 21:55:00 +00:00
|
|
|
|
2011-11-28 09:31:22 +00:00
|
|
|
<text>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>Persistent contrails</label>
|
|
|
|
<enable>
|
2012-06-20 21:11:26 +00:00
|
|
|
<not>
|
|
|
|
<property>/sim/rendering/rembrandt/enabled</property>
|
|
|
|
</not>
|
2011-11-28 09:31:22 +00:00
|
|
|
</enable>
|
|
|
|
</text>
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>Transition</label>
|
|
|
|
<enable>
|
2012-06-30 11:51:18 +00:00
|
|
|
<or>
|
|
|
|
<not>
|
|
|
|
<property>/sim/rendering/rembrandt/enabled</property>
|
|
|
|
</not>
|
|
|
|
<equals>
|
|
|
|
<property>/sim/rendering/materials-file</property>
|
|
|
|
<value>Materials/dds/materials.xml</value>
|
|
|
|
</equals>
|
|
|
|
</or>
|
2011-11-28 09:31:22 +00:00
|
|
|
</enable>
|
|
|
|
</text>
|
2012-06-30 11:51:18 +00:00
|
|
|
|
2011-12-01 21:55:00 +00:00
|
|
|
<text>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>Model</label>
|
|
|
|
</text>
|
|
|
|
|
2011-11-28 09:31:22 +00:00
|
|
|
<text>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>Urban</label>
|
|
|
|
</text>
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>Water</label>
|
|
|
|
</text>
|
2011-12-01 21:55:00 +00:00
|
|
|
|
2012-07-22 08:08:04 +00:00
|
|
|
<text>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>Lights</label>
|
|
|
|
<enable>
|
|
|
|
<property>/sim/rendering/rembrandt/enabled</property>
|
|
|
|
</enable>
|
|
|
|
</text>
|
|
|
|
|
2011-11-28 09:31:22 +00:00
|
|
|
</group>
|
2011-12-01 21:55:00 +00:00
|
|
|
|
2011-11-28 09:31:22 +00:00
|
|
|
<group>
|
|
|
|
<layout>vbox</layout>
|
2011-12-01 21:55:00 +00:00
|
|
|
|
2011-12-12 16:04:36 +00:00
|
|
|
<slider>
|
|
|
|
<name>generic</name>
|
|
|
|
<min>0.0</min>
|
|
|
|
<max>1.0</max>
|
|
|
|
<step>1.0</step>
|
|
|
|
<fraction>0.5</fraction>
|
|
|
|
<live>true</live>
|
|
|
|
<property>/sim/rendering/shaders/generic</property>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
<object-name>generic</object-name>
|
|
|
|
</binding>
|
|
|
|
</slider>
|
2012-06-30 11:51:18 +00:00
|
|
|
|
2011-11-28 09:31:22 +00:00
|
|
|
<slider>
|
|
|
|
<name>crop</name>
|
2012-06-20 21:11:26 +00:00
|
|
|
<enable>
|
|
|
|
<not>
|
|
|
|
<property>/sim/rendering/rembrandt/enabled</property>
|
|
|
|
</not>
|
|
|
|
</enable>
|
2011-11-28 09:31:22 +00:00
|
|
|
<min>0.0</min>
|
|
|
|
<max>1.0</max>
|
|
|
|
<step>1.0</step>
|
|
|
|
<fraction>0.5</fraction>
|
2011-12-12 16:04:36 +00:00
|
|
|
<live>true</live>
|
2011-11-28 09:31:22 +00:00
|
|
|
<property>/sim/rendering/shaders/crop</property>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
<object-name>crop</object-name>
|
|
|
|
</binding>
|
|
|
|
</slider>
|
2011-12-01 21:55:00 +00:00
|
|
|
|
2011-11-28 09:31:22 +00:00
|
|
|
<slider>
|
|
|
|
<name>landmass</name>
|
2012-06-20 21:11:26 +00:00
|
|
|
<enable>
|
|
|
|
<not>
|
|
|
|
<property>/sim/rendering/rembrandt/enabled</property>
|
|
|
|
</not>
|
|
|
|
</enable>
|
2011-11-28 09:31:22 +00:00
|
|
|
<min>0.0</min>
|
2011-12-12 16:04:36 +00:00
|
|
|
<max>5.0</max>
|
2011-11-28 09:31:22 +00:00
|
|
|
<step>1.0</step>
|
2011-12-12 16:04:36 +00:00
|
|
|
<fraction>0.17</fraction>
|
|
|
|
<live>true</live>
|
2011-11-28 09:31:22 +00:00
|
|
|
<property>/sim/rendering/shaders/landmass</property>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
<object-name>landmass</object-name>
|
|
|
|
</binding>
|
|
|
|
</slider>
|
2011-12-01 21:55:00 +00:00
|
|
|
|
2011-11-28 09:31:22 +00:00
|
|
|
<slider>
|
|
|
|
<name>contrails</name>
|
2012-06-20 21:11:26 +00:00
|
|
|
<enable>
|
|
|
|
<not>
|
|
|
|
<property>/sim/rendering/rembrandt/enabled</property>
|
|
|
|
</not>
|
|
|
|
</enable>
|
2011-11-28 09:31:22 +00:00
|
|
|
<min>0.0</min>
|
|
|
|
<max>1.0</max>
|
|
|
|
<step>1.0</step>
|
|
|
|
<fraction>0.5</fraction>
|
2011-12-12 16:04:36 +00:00
|
|
|
<live>true</live>
|
2011-11-28 09:31:22 +00:00
|
|
|
<property>/sim/rendering/shaders/contrails</property>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
<object-name>contrails</object-name>
|
|
|
|
</binding>
|
|
|
|
</slider>
|
2011-12-01 21:55:00 +00:00
|
|
|
|
2011-11-28 09:31:22 +00:00
|
|
|
<slider>
|
|
|
|
<name>transition</name>
|
2012-06-20 21:11:26 +00:00
|
|
|
<enable>
|
2012-06-30 11:51:18 +00:00
|
|
|
<or>
|
|
|
|
<not>
|
|
|
|
<property>/sim/rendering/rembrandt/enabled</property>
|
|
|
|
</not>
|
|
|
|
<equals>
|
|
|
|
<property>/sim/rendering/materials-file</property>
|
|
|
|
<value>Materials/dds/materials.xml</value>
|
|
|
|
</equals>
|
|
|
|
</or>
|
2012-06-20 21:11:26 +00:00
|
|
|
</enable>
|
2011-11-28 09:31:22 +00:00
|
|
|
<min>0.0</min>
|
|
|
|
<max>1.0</max>
|
|
|
|
<step>1.0</step>
|
|
|
|
<fraction>0.5</fraction>
|
2011-12-12 16:04:36 +00:00
|
|
|
<live>true</live>
|
2011-11-28 09:31:22 +00:00
|
|
|
<property>/sim/rendering/shaders/transition</property>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
<object-name>transition</object-name>
|
|
|
|
</binding>
|
|
|
|
</slider>
|
2011-12-01 21:55:00 +00:00
|
|
|
|
|
|
|
<slider>
|
|
|
|
<name>model</name>
|
|
|
|
<min>0.0</min>
|
2011-12-12 16:04:36 +00:00
|
|
|
<max>3.0</max>
|
2011-12-01 21:55:00 +00:00
|
|
|
<step>1.0</step>
|
2011-12-12 16:04:36 +00:00
|
|
|
<fraction>0.25</fraction>
|
|
|
|
<live>true</live>
|
2011-12-01 21:55:00 +00:00
|
|
|
<property>/sim/rendering/shaders/model</property>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
<object-name>model</object-name>
|
|
|
|
</binding>
|
|
|
|
</slider>
|
|
|
|
|
2011-11-28 09:31:22 +00:00
|
|
|
<slider>
|
|
|
|
<name>urban</name>
|
|
|
|
<min>0.0</min>
|
|
|
|
<max>5.0</max>
|
2011-12-01 21:55:00 +00:00
|
|
|
<step>1.0</step>
|
2011-12-02 15:41:42 +00:00
|
|
|
<fraction>0.17</fraction>
|
2011-12-12 16:04:36 +00:00
|
|
|
<live>true</live>
|
2011-11-28 09:31:22 +00:00
|
|
|
<property>/sim/rendering/shaders/urban</property>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
<object-name>urban</object-name>
|
|
|
|
</binding>
|
|
|
|
</slider>
|
2011-12-01 21:55:00 +00:00
|
|
|
|
2011-11-28 09:31:22 +00:00
|
|
|
<slider>
|
|
|
|
<name>water</name>
|
|
|
|
<min>0.0</min>
|
|
|
|
<max>5.0</max>
|
2011-12-01 21:55:00 +00:00
|
|
|
<step>1.0</step>
|
2011-12-02 15:41:42 +00:00
|
|
|
<fraction>0.17</fraction>
|
2011-12-12 16:04:36 +00:00
|
|
|
<live>true</live>
|
2011-11-28 09:31:22 +00:00
|
|
|
<property>/sim/rendering/shaders/water</property>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
<object-name>water</object-name>
|
2012-07-22 08:08:04 +00:00
|
|
|
</binding>
|
|
|
|
</slider>
|
|
|
|
|
|
|
|
<slider>
|
|
|
|
<name>lights</name>
|
|
|
|
<enable>
|
|
|
|
<property>/sim/rendering/rembrandt/enabled</property>
|
|
|
|
</enable>
|
|
|
|
<min>0.0</min>
|
|
|
|
<max>4.0</max>
|
|
|
|
<step>1.0</step>
|
|
|
|
<fraction>0.2</fraction>
|
|
|
|
<live>true</live>
|
|
|
|
<property>/sim/rendering/shaders/lights</property>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
<object-name>lights</object-name>
|
2011-11-28 09:31:22 +00:00
|
|
|
</binding>
|
|
|
|
</slider>
|
2011-12-01 21:55:00 +00:00
|
|
|
|
2011-11-28 09:31:22 +00:00
|
|
|
</group>
|
2011-12-01 21:55:00 +00:00
|
|
|
|
2011-11-28 09:31:22 +00:00
|
|
|
</group>
|
2012-06-30 11:51:18 +00:00
|
|
|
|
2012-06-20 21:11:26 +00:00
|
|
|
<text>
|
|
|
|
<label>Some shaders are disabled because</label>
|
|
|
|
<color>
|
|
|
|
<red>1.0</red>
|
|
|
|
<green>0.6</green>
|
|
|
|
<blue>0.6</blue>
|
|
|
|
</color>
|
|
|
|
<visible>
|
|
|
|
<property>/sim/rendering/rembrandt/enabled</property>
|
|
|
|
</visible>
|
|
|
|
</text>
|
|
|
|
<text>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>you have Rembrandt enabled.</label>
|
|
|
|
<color>
|
|
|
|
<red>1.0</red>
|
|
|
|
<green>0.6</green>
|
|
|
|
<blue>0.6</blue>
|
|
|
|
</color>
|
|
|
|
<visible>
|
|
|
|
<property>/sim/rendering/rembrandt/enabled</property>
|
|
|
|
</visible>
|
|
|
|
</text>
|
2011-12-01 21:55:00 +00:00
|
|
|
|
2011-11-28 09:31:22 +00:00
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<text>
|
|
|
|
<label>Aircraft</label>
|
|
|
|
<halign>left</halign>
|
|
|
|
</text>
|
|
|
|
<hrule>
|
|
|
|
<stretch>true</stretch>
|
|
|
|
</hrule>
|
|
|
|
</group>
|
2011-12-01 21:55:00 +00:00
|
|
|
|
2011-11-28 09:31:22 +00:00
|
|
|
<nasal>
|
|
|
|
<open>
|
|
|
|
if (props.globals.getNode("/sim/rendering/shaders/aircraft") != nil) {
|
2011-12-01 21:55:00 +00:00
|
|
|
var group = cmdarg().getChildren("group")[4];
|
|
|
|
group.removeChildren("slider");
|
|
|
|
group.removeChildren("hrule");
|
|
|
|
group.removeChildren("text");
|
|
|
|
var shaders = props.globals.getNode("/sim/rendering/shaders/aircraft").getChildren();
|
|
|
|
for(i=0; size(shaders) > i; i+=1) {
|
|
|
|
|
|
|
|
var fraction = 0.5;
|
|
|
|
var min = 0;
|
|
|
|
var max = 1;
|
|
|
|
var step = 1;
|
|
|
|
|
|
|
|
var name = shaders[i].getNode("name");
|
|
|
|
|
|
|
|
if (shaders[i].getNode("step") != nil){
|
|
|
|
step = shaders[i].getNode("step");
|
2011-11-28 09:31:22 +00:00
|
|
|
}
|
2011-12-01 21:55:00 +00:00
|
|
|
if (shaders[i].getNode("min") != nil){
|
|
|
|
min = shaders[i].getNode("min");
|
|
|
|
}
|
|
|
|
if (shaders[i].getNode("max") != nil){
|
|
|
|
max = shaders[i].getNode("max");
|
|
|
|
}
|
|
|
|
|
|
|
|
if (min != nil and max != nil and step != nil){
|
|
|
|
fraction = step/(max+step);
|
|
|
|
}
|
|
|
|
|
|
|
|
var target = group.getChild("slider", i, 1);
|
|
|
|
props.copy(group.getNode("slider-template"), target);
|
|
|
|
target.getNode("label").setValue(name != nil ? name.getValue() : (shaders[i].getName()));
|
|
|
|
target.getNode("name").setValue("aircraftshader"~i);
|
|
|
|
target.getNode("binding").getNode("object-name").setValue("aircraftshader"~i);
|
|
|
|
target.getNode("min").setValue(min);
|
|
|
|
target.getNode("max").setValue(max);
|
|
|
|
target.getNode("step").setValue(step);
|
|
|
|
target.getNode("fraction").setValue(fraction);
|
|
|
|
target.getNode("property").setValue(shaders[i].getPath()~"/quality-level");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2011-11-28 09:31:22 +00:00
|
|
|
</open>
|
|
|
|
</nasal>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>vbox</layout>
|
|
|
|
<halign>left</halign>
|
|
|
|
|
|
|
|
<slider-template>
|
2011-12-01 21:55:00 +00:00
|
|
|
<name>
|
|
|
|
<!---->
|
|
|
|
</name>
|
|
|
|
<label>
|
|
|
|
<!---->
|
|
|
|
</label>
|
|
|
|
<min>
|
|
|
|
<!---->
|
|
|
|
</min>
|
|
|
|
<max>
|
|
|
|
<!---->
|
|
|
|
</max>
|
|
|
|
<step>
|
|
|
|
<!---->
|
|
|
|
</step>
|
|
|
|
<fraction>
|
|
|
|
<!---->
|
|
|
|
</fraction>
|
|
|
|
<property>
|
|
|
|
<!---->
|
|
|
|
</property>
|
2011-11-28 09:31:22 +00:00
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
2011-12-01 21:55:00 +00:00
|
|
|
<object-name>
|
|
|
|
<!---->
|
|
|
|
</object-name>
|
2011-11-28 09:31:22 +00:00
|
|
|
</binding>
|
|
|
|
</slider-template>
|
|
|
|
</group>
|
2011-12-01 21:55:00 +00:00
|
|
|
|
2011-11-28 09:31:22 +00:00
|
|
|
<hrule/>
|
2012-06-30 11:51:18 +00:00
|
|
|
|
2012-03-10 16:05:57 +00:00
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
2011-11-28 09:31:22 +00:00
|
|
|
|
2012-03-10 16:05:57 +00:00
|
|
|
<button>
|
|
|
|
<legend>Back</legend>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-show</command>
|
|
|
|
<dialog-name>rendering</dialog-name>
|
|
|
|
</binding>
|
2012-03-11 21:00:59 +00:00
|
|
|
<binding>
|
|
|
|
<command>dialog-close</command>
|
|
|
|
</binding>
|
2012-03-10 16:05:57 +00:00
|
|
|
</button>
|
|
|
|
<button>
|
|
|
|
<legend>Close</legend>
|
|
|
|
<default>true</default>
|
|
|
|
<key>Esc</key>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-close</command>
|
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
</group>
|
2011-12-01 21:55:00 +00:00
|
|
|
|
2011-11-28 09:31:22 +00:00
|
|
|
</PropertyList>
|