8,804
edits
m (→Treshold) |
m (Material animation extended, thanks to mfranz's mailinglist-mail.) |
||
Line 288: | Line 288: | ||
<object-name>Object</object-name> | <object-name>Object</object-name> | ||
<property-base>sim/model/c172p/material</property-base> | <property-base>sim/model/c172p/material</property-base> | ||
<global type="bool">true</global> | |||
... | ... | ||
lines as mentioned below | lines as mentioned below | ||
Line 294: | Line 295: | ||
</source> | </source> | ||
Optional: | '''Optional:''' | ||
* '''property-base:''' when using prop(erties), you might want to set a property-base. All props will be relative to this path. | * '''property-base:''' when using prop(erties), you might want to set a property-base. All props will be relative to this path. | ||
* '''global:''' by setting this to <tt>true</tt>, all objects using the same material as the defined object(s) (via <tt><object-name></tt>) will be affected by the animation. This is preferred to listing several objects in <object-name> tags. It's not only faster, but also doesn't break animations by forcing objects together. | |||
'''Notes:''' | |||
* Numbers are clamped to 0.0-1.0, except "shininess", which is clamped to 0-128. | |||
* By appending <tt>-prop</tt> each of the material properties can read its value from another property. | |||
==== Ambient ==== | ==== Ambient ==== | ||
Line 327: | Line 333: | ||
Emission colors are multiplied by the factor-prop value. 1 is maximum coclor intensity, while 0 is the minimum. Colors are calculated according to the [http://en.wikipedia.org/wiki/RGB_color_model RGB color model]. | Emission colors are multiplied by the factor-prop value. 1 is maximum coclor intensity, while 0 is the minimum. Colors are calculated according to the [http://en.wikipedia.org/wiki/RGB_color_model RGB color model]. | ||
==== Shininess ==== | |||
Shininess is clamped to 0-128. | |||
<source> | |||
<shininess>105</shininess> | |||
</source> | |||
==== Specular ==== | ==== Specular ==== | ||
Line 358: | Line 370: | ||
<source> | <source> | ||
<threshold>0.001</threshold> | <threshold>0.001</threshold> | ||
</source> | </source> | ||
Line 567: | Line 575: | ||
</animation> | </animation> | ||
</source> | </source> | ||
==References== | |||
* [http://www.opensubscriber.com/message/flightgear-devel@flightgear.org/958955.html "material" animation (and the bo105 as an example)] | |||
by Melchior Fanz, March 22 2005. | |||
[[Category:Aircraft enhancement|Animate models]] | [[Category:Aircraft enhancement|Animate models]] |