16 <label>Rendering Options</label>
24 <pref-width>16</pref-width>
25 <pref-height>16</pref-height>
30 <command>dialog-close</command>
40 <property>/sim/gui/dialogs/rendering/shader-warning</property>
49 <label>Warning: Intel integrated graphics detected. Your graphics card may not support shaders or complex graphics.</label>
53 <halign>center</halign>
62 <label>General</label>
66 <stretch>true</stretch>
72 <label>Wireframe</label>
73 <name>wireframe</name>
74 <property>/sim/rendering/wireframe</property>
76 <command>dialog-apply</command>
77 <object-name>wireframe</object-name>
85 <label>Lighting</label>
89 <stretch>true</stretch>
95 <label>Sun/Moon horizon effect</label>
96 <property>/sim/rendering/horizon-effect</property>
98 <command>dialog-apply</command>
104 <halign>left</halign>
105 <label>Use point sprites for runway lights</label>
106 <property>/sim/rendering/point-sprites</property>
108 <command>dialog-apply</command>
114 <halign>left</halign>
115 <label>Enhanced runway lighting</label>
116 <property>/sim/rendering/enhanced-lighting</property>
118 <command>dialog-apply</command>
123 <halign>left</halign>
124 <label>Runway light distance attenuation</label>
125 <property>/sim/rendering/distance-attenuation</property>
127 <command>dialog-apply</command>
132 <halign>left</halign>
133 <label>Specular reflections on objects</label>
134 <property>/sim/rendering/specular-highlight</property>
136 <command>dialog-apply</command>
141 <layout>hbox</layout>
142 <halign>left</halign>
145 <label>Throttle frame rate</label>
146 <name>frame-rate-throttle</name>
147 <property>/sim/gui/frame-rate-throttled</property>
149 <command>dialog-apply</command>
150 <object-name>frame-rate-throttle</object-name>
153 <command>nasal</command>
155 var throttled = getprop("/sim/gui/frame-rate-throttled");
157 setprop("/sim/frame-rate-throttle-hz", 50);
159 setprop("/sim/frame-rate-throttle-hz", 0);
164 <pref-width>46</pref-width>
167 <name>frame-rate</name>
170 <property>/sim/frame-rate-throttle-hz</property>
178 <property>/sim/frame-rate-throttle-hz</property>
180 <command>dialog-apply</command>
181 <object-name>frame-rate</object-name>
187 <property>/sim/frame-rate-throttle-hz</property>
192 <format>%2.0f Hz</format>
194 <property>/sim/frame-rate-throttle-hz</property>
201 <halign>left</halign>
202 <label>Lightning</label>
203 <property>/sim/rendering/lightning-enable</property>
205 <command>dialog-apply</command>
212 <halign>left</halign>
213 <label>Compensate field of view for wider screens</label>
214 <property>sim/current-view/field-of-view-compensation</property>
216 <command>nasal</command>
217 <script>view.screenWidthCompens.toggle()</script>
222 <layout>hbox</layout>
224 <label>Scenery</label>
225 <halign>left</halign>
228 <stretch>true</stretch>
233 <layout>table</layout>
238 <halign>left</halign>
239 <label>Terrain texture scheme</label>
246 <name>texture-set</name>
247 <halign>fill</halign>
248 <stretch>true</stretch>
249 <pref-width>180</pref-width>
250 <property>sim/gui/dialogs/rendering/texture-set</property>
251 <value>Region-specific</value>
252 <value>Global</value>
253 <value>Global alternative (DDS format)</value>
255 <command>dialog-apply</command>
256 <object-name>texture-set</object-name>
259 <command>nasal</command>
261 var file = materials[getprop("/sim/gui/dialogs/rendering/texture-set")];
262 setprop("/sim/rendering/materials-file", file);
266 <command>reload-materials</command>
273 <halign>left</halign>
274 <label>Animated jetways</label>
276 <property>/nasal/jetways/enabled</property>
278 <command>dialog-apply</command>
279 <object-name>jetways</object-name>
286 <halign>left</halign>
287 <label>Random buildings</label>
288 <name>random-buildings</name>
289 <property>/sim/rendering/random-buildings</property>
291 <command>dialog-apply</command>
292 <object-name>random-buildings</object-name>
305 <label>Warning: Requires lots of memory</label>
311 <halign>left</halign>
312 <label>Random objects</label>
313 <name>random-objects</name>
314 <property>/sim/rendering/random-objects</property>
316 <command>dialog-apply</command>
317 <object-name>random-objects</object-name>
324 <halign>left</halign>
325 <label>Random vegetation</label>
326 <name>random-vegetation</name>
327 <property>/sim/rendering/random-vegetation</property>
329 <command>dialog-apply</command>
330 <object-name>random-vegetation</object-name>
336 <label>density</label>
338 <property>/sim/rendering/random-vegetation</property>
344 <name>vegetation-density</name>
348 <property>/sim/rendering/vegetation-density</property>
350 <command>dialog-apply</command>
351 <object-name>vegetation-density</object-name>
357 <label>12345678</label>
358 <format>%.1f</format>
360 <property>/sim/rendering/vegetation-density</property>
362 <property>/sim/rendering/random-vegetation</property>
369 <legend>Reload Scenery</legend>
371 <command>reinit</command>
372 <subsystem>tile-manager</subsystem>
377 <layout>vbox</layout>
386 <layout>vbox</layout>
389 <layout>hbox</layout>
391 <label>Shader effects</label>
392 <halign>left</halign>
395 <stretch>true</stretch>
400 <layout>table</layout>
403 <halign>left</halign>
406 <label>Custom settings (fine-tuning)</label>
407 <name>custom-settings</name>
408 <property>/sim/rendering/shaders/custom-settings</property>
410 <command>dialog-apply</command>
411 <object-name>custom-settings</object-name>
416 <layout>hbox</layout>
421 <property>/sim/rendering/shaders/custom-settings</property>
426 <label>Performance</label>
429 <name>quality-level</name>
433 <fraction>0.17</fraction>
434 <property>/sim/rendering/shaders/quality-level-internal</property>
436 <command>dialog-apply</command>
437 <object-name>quality-level</object-name>
441 <label>Quality</label>
444 <label>12345678</label>
445 <format>(%1.0f)</format>
447 <property>/sim/rendering/shaders/quality-level-internal</property>
453 <layout>hbox</layout>
458 <property>/sim/rendering/shaders/custom-settings</property>
460 <property>/sim/rendering/shaders/skydome</property>
466 <legend>Shader Options</legend>
467 <halign>left</halign>
469 <command>dialog-show</command>
470 <dialog-name>shaders</dialog-name>
473 <command>dialog-close</command>
474 <dialog-name>rendering</dialog-name>
476 <pref-width>200</pref-width>
481 <layout>hbox</layout>
486 <property>/sim/rendering/shaders/custom-settings</property>
487 <property>/sim/rendering/shaders/skydome</property>
489 <property>/sim/rendering/rembrandt/enabled</property>
495 <legend>Shader Options</legend>
496 <halign>left</halign>
498 <command>dialog-show</command>
499 <dialog-name>shaders-lightfield</dialog-name>
502 <command>dialog-close</command>
503 <dialog-name>rendering</dialog-name>
505 <pref-width>200</pref-width>
513 <layout>hbox</layout>
515 <label>Atmospheric effects</label>
516 <halign>left</halign>
519 <stretch>true</stretch>
524 <halign>left</halign>
525 <label>Particles (smoke, dust, spray)</label>
526 <name>particles</name>
527 <property>/sim/rendering/particles</property>
529 <command>dialog-apply</command>
530 <object-name>particles</object-name>
535 <halign>left</halign>
536 <label>Precipitation</label>
537 <name>precipitation</name>
538 <property>/sim/rendering/precipitation-gui-enable</property>
540 <command>dialog-apply</command>
541 <object-name>precipitation</object-name>
548 <halign>left</halign>
549 <label>2D clouds</label>
550 <property>/sim/rendering/bump-mapping</property>
552 <command>dialog-apply</command>
559 <halign>left</halign>
560 <label>3D clouds</label>
561 <name>3d-clouds</name>
562 <property>/sim/rendering/clouds3d-enable</property>
564 <command>dialog-apply</command>
565 <object-name>3d-clouds</object-name>
570 <layout>hbox</layout>
571 <halign>right</halign>
573 <label>Cloud density</label>
575 <property>/sim/rendering/clouds3d-enable</property>
579 <name>cloud-density</name>
582 <property>/sim/rendering/clouds3d-density</property>
584 <command>dialog-apply</command>
585 <object-name>cloud-density</object-name>
588 <command>property-toggle</command>
589 <property>/sim/rendering/clouds3d-enable</property>
592 <command>property-toggle</command>
593 <property>/sim/rendering/clouds3d-enable</property>
598 <property>/sim/rendering/clouds3d-enable</property>
600 <label>12345678</label>
601 <format>%.2f</format>
603 <property>/sim/rendering/clouds3d-density</property>
608 <layout>hbox</layout>
609 <halign>right</halign>
611 <label>Cloud visibility range</label>
613 <property>/sim/rendering/clouds3d-enable</property>
617 <name>cloud-vis-range</name>
620 <property>/sim/rendering/clouds3d-vis-range</property>
622 <command>dialog-apply</command>
623 <object-name>cloud-vis-range</object-name>
628 <property>/sim/rendering/clouds3d-enable</property>
630 <label>12345678</label>
631 <format>%.fm</format>
633 <property>/sim/rendering/clouds3d-vis-range</property>
638 <layout>table</layout>
640 <layout>hbox</layout>
641 <halign>left</halign>
645 <halign>left</halign>
646 <label>Atmospheric light scattering</label>
647 <name>skydome-scattering</name>
650 <property>/sim/rendering/rembrandt/enabled</property>
653 <property>/sim/rendering/shaders/skydome</property>
655 <command>dialog-apply</command>
656 <object-name>skydome-scattering</object-name>
660 <label>(Experimental)</label>
663 <property>/sim/rendering/rembrandt/enabled</property>
676 <label>This disables most effects/shaders.</label>
677 <halign>left</halign>
680 <property>/sim/rendering/rembrandt/enabled</property>
691 <layout>hbox</layout>
696 <label>Rembrandt</label>
697 <halign>left</halign>
699 <property>/sim/rendering/rembrandt/enabled</property>
703 <label>(Experimental)</label>
704 <halign>left</halign>
711 <property>/sim/rendering/rembrandt/enabled</property>
715 <stretch>true</stretch>
717 <property>/sim/rendering/rembrandt/enabled</property>
726 <property>/sim/rendering/rembrandt/enabled</property>
728 <legend>Rembrandt Options</legend>
729 <halign>center</halign>
731 <command>dialog-show</command>
732 <dialog-name>rembrandt</dialog-name>
735 <command>dialog-close</command>
736 <dialog-name>rendering</dialog-name>
738 <pref-width>200</pref-width>
753 <legend>Close</legend>
754 <default>true</default>
757 <command>dialog-close</command>
764 var materials = { "Region-specific" : "Materials/regions/materials.xml",
765 "Global" : "Materials/default/materials.xml",
766 "Global alternative (DDS format)" : "Materials/dds/materials.xml" };
769 gui.enable_widgets(cmdarg(), "shadows-debug", getprop("/sim/gui/devel-widgets"));
770 props.globals.getNode("/sim/rendering/shaders/quality-level", 1).setAttribute("userarchive", 0);
771 setprop("/sim/gui/frame-rate-throttled", (getprop("/sim/frame-rate-throttle-hz") > 0));
773 var matfile = getprop("/sim/rendering/materials-file");
774 foreach (var name; keys(materials)) {
775 if (matfile == materials[name]) {
776 setprop("/sim/gui/dialogs/rendering/texture-set", name);
780 var vendor = getprop("/sim/rendering/gl-vendor");
782 vendor = string.lc(vendor);
783 if (find("intel", vendor) != -1) {
784 setprop("/sim/gui/dialogs/rendering/shader-warning", 1);
786 setprop("/sim/gui/dialogs/rendering/shader-warning", 0);