Howto:Animate models: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
mNo edit summary
Line 102: Line 102:


==Animation types==
==Animation types==
===Alpha-test===
<animation>
  <type>alpha-test</type>
  <object-name>Object</object-name>
  <alpha-factor>0.01</alpha-factor>
</animation>
===Billboard===
This faces an object towards the viewer. Often used on 2D objects, like clouds, trees and lights.
<animation>
  <type>billboard</type>
  <object-name>Object</object-name>
  <spherical type="bool">true</spherical>
</animation>
* '''spherical:'''
===Dist-scale===
Used to scale an object, based on the distance to the viewer.
<animation>
  <type>dist-scale</type>
  <object-name>Object</object-name>
  <interpolation>
  <entry>
    <ind>0</ind>
    <dep>1</dep>
  </entry>
  <entry>
    <ind>300</ind>
    <dep>4</dep>
  </entry>
  <entry>
    <ind>1500</ind>
    <dep>8</dep>
  </entry>
  </interpolation>
</animation>
===Material===
An animation type that can be used in various ways.
====Changing liveries====
Used for the [[Livery over MP]] system.
<animation>
  <type>material</type>
  <object-name>Object</object-name>
  <property-base>sim/model/livery</property-base>
  <texture-prop>engine</texture-prop>
  <texture>KLM.png</texture>
</animation>
====Illumination====
{{Main article|Howto: Illuminate faces}}
<animation>
  <type>material</type>
  <object-name>Object</object-name>
  <emission>
  <red>1.0</red>
  <green>0.2</green>
  <blue>0.0</blue>
  <factor-prop>controls/lighting/panel-norm</factor-prop>
  </emission>
</animation>
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].
===Noshadow===
===Noshadow===
  <animation>
  <animation>

Navigation menu