Difference between revisions of "UV Animation PLG (RW Section)"

From GTAMods Wiki
Jump to navigation Jump to search
(See also)
Line 17: Line 17:
 
== See also ==
 
== See also ==
 
* [[Material (RW Section)|Material]]
 
* [[Material (RW Section)|Material]]
 +
* [[User Data PLG (RW Section)|User Data PLG]]
 
* [[Material Effects PLG (RW Section)|Material Effects PLG]]
 
* [[Material Effects PLG (RW Section)|Material Effects PLG]]
 
* [[Reflection Material (RW Section)|Reflection Material]]
 
* [[Reflection Material (RW Section)|Reflection Material]]

Revision as of 12:19, 15 May 2020

{{{NAME}}}
RenderWare Stream Section
Vendor {{{VENDORNAME}}}
Module {{{MODULENAME}}}
Module ID 0x{{{MODULEID}}}
Identifier 0x{{{IDENTIFIER}}}
Chunk ID 0x{{{MODULEID}}}{{{IDENTIFIER}}}
Versions All
Hierarchy
Parents:
None
Children:
None
Extensions:
None
File Format

UV Animation PLG is an extension to the Material section in the Renderware stream file format. It is part of the Renderware Toolkit and can be used animate a texture in UV-Space.

Binary structure

The existence of this section is typically determined by a effect within a Material Effects section, which is also an extension of the Material section. It contains the names of UV animations that are to be attached to this material. The maximum is 8 but most often only one animation is found here.

 uint32         mask
 char[n][32]    animation names

Where n is the number of animations. To each of the 8 animation slots corresponds a bit in the mask (slot n has bit 1<<n set, counting from 0). If bit n is set, a 32 byte string follows (with n counting up).

A UV animation can animate up to 8 nodes/UV sets.

See also