Howto:Animate models: Difference between revisions

Jump to navigation Jump to search
Texture animations
(→‎Range: describe LOD ranges in table)
(Texture animations)
Line 593: Line 593:
* '''factor:''' is optional.
* '''factor:''' is optional.


=== Textranslate ===
=== Texture Animations ===
 
Applying different matrix transformations to the textures of an object.
 
==== Textranslate ====
A very important animation for cockpits! This animation moves textures over a surface.
A very important animation for cockpits! This animation moves textures over a surface.


Line 615: Line 619:
* '''step:''' the step size at which the texture is translated. If this is set to 0.1, the texture will only be translated at 0.1, 0.2, 0.3 etc.
* '''step:''' the step size at which the texture is translated. If this is set to 0.1, the texture will only be translated at 0.1, 0.2, 0.3 etc.
* axis: the direction in which the texture is translated. Y is up/down, while X is left/right.
* axis: the direction in which the texture is translated. Y is up/down, while X is left/right.
==== Texrotate ====
<source>
<animation>
  <object-name>Object</object-name>
  <type>texrotate</type>
  <property>some/property/path</property>
  <factor>25</factor>
  <offset-deg>25</offset-deg>
  <center>
    <x>0.5</x>
    <y>0.5</y>
    <z>0</z>
  </center>
  <axis>
    <x>0</x>
    <y>0</y>
    <z>1</z>
  </axis>
</animation>
</source>
==== Textrapezoid ====
<source>
<animation>
  <type>textrapezoid</type>
  <object-name>HUD.l.canvas</object-name>
  <property>/hud/trapezoid-correction</property>
  <side>bottom</side>
</animation>
</source>
* '''side''': side of quad which should be scaled (''top'' (default)/''right''/''bottom''/''left'')
==== Texmultiple ====
Only one texture matrix can be applied to each object. With ''textmultiple'' multiple texture animations can be combined into a single matrix, applied to the specified object.
<source>
<animation>
  <type>texmultiple</type>
  <object-name>HUD.l.canvas</object-name>
  <transform>
    <subtype>textranslate</subtype>
    <property>/hud/offset-x</property>
    <axis>
    <x>1</x>
    <y>0</y>
    <z>0</z>
  </axis>
  </transform>
  <transform>
    <subtype>textranslate</subtype>
    <property>/hud/offset-y</property>
    <axis>
    <x>0</x>
    <y>1</y>
    <z>0</z>
  </axis>
  </transform>
  <transform>
    <subtype>textrapezoid</subtype>
    <property>/hud/trapezoid-correction</property>
  </transform>
</animation>
</source>


=== Timed ===
=== Timed ===
166

edits

Navigation menu