Howto:Animate models: Difference between revisions

Jump to navigation Jump to search
m
m (Robot: Cosmetic changes)
Line 281: Line 281:


=== Material ===
=== Material ===
An animation type that can be used in various ways.
An animation type that can be used in various ways. Of course you can combine the below mentiond systems into one (big) animation.
 
==== Changing liveries ====
Used for the [[Livery over MP]] system.


<source>
<source>
Line 290: Line 287:
   <type>material</type>  
   <type>material</type>  
   <object-name>Object</object-name>
   <object-name>Object</object-name>
   <property-base>sim/model/livery</property-base>  
   <property-base>sim/model/c172p/material</property-base>
   <texture-prop>engine</texture-prop>
   ...
   <texture>KLM.png</texture>
  lines as mentioned below
   ...
  </animation>
  </animation>
</source>
</source>


==== Illumination ====
Optional:
* '''property-base:''' when using prop(erties), you might want to set a property-base. All props will be relative to this path.
 
==== Ambient ====
<source>
  <ambient>
  <red>1.0</red>
  <green>0.2</green>
  <blue>0.0</blue>
  </ambient>
</source>
 
==== Diffuse ====
<source>
  <diffuse>
  <red>1.0</red>
  <green>0.2</green>
  <blue>0.0</blue>
  </diffuse>
</source>
 
==== Emission ====
{{Main article|Howto: Illuminate faces}}
{{Main article|Howto: Illuminate faces}}
<source>
<source>
<animation>
  <type>material</type>
  <object-name>Object</object-name>
   <emission>
   <emission>
   <red>1.0</red>
   <red>1.0</red>
Line 308: Line 324:
   <factor-prop>controls/lighting/panel-norm</factor-prop>
   <factor-prop>controls/lighting/panel-norm</factor-prop>
   </emission>
   </emission>
</animation>
</source>
</source>


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].
==== Specular ====
<source>
  <specular>
  <red>1.0</red>
  <green>0.2</green>
  <blue>0.0</blue>
  </specular>
</source>
==== Texture ====
Used for the [[Livery over MP]] system.
<source>
  <property-base>sim/model/livery</property-base>
  <texture-prop>engine</texture-prop>
  <texture>KLM.png</texture>
</source>
==== Transparency ====
<source>
  <transparency>
  <alpha-prop>rotors/tail/rpm</alpha-prop>
  <factor>-0.0015</factor>
  <offset>1</offset>
  </transparency>
</source>
==== Treshold ====
<source>
  <threshold>0.001</threshold>
</source>
<source>
  <threshold-prop>threshold</threshold-prop>
</source>


=== Noshadow ===
=== Noshadow ===

Navigation menu