EFTB: Difference between revisions
→Emitter Sets (ESTA)
imported>Locke (Created page with "<onlyinclude> <code>EFTB</code> files define certain graphical effects of objects such as emissions, particles, and shaders. </onlyinclude> == EFTB File Layout == EFTB files...") |
imported>Locke |
||
Line 102: | Line 102: | ||
=== Emitter Sets (ESTA) === | === Emitter Sets (ESTA) === | ||
The Emitter Set Array (ESTA) contains any number of Emitter Sets (ESET), | The Emitter Set Array (ESTA) contains any number of Emitter Sets (ESET) as child nodes. | ||
==== Emitter Set (ESET) ==== | |||
Emitter sets have 0x60 bytes of data consisting of 0x10 bytes of padding, a 0x40 byte block containing a 0-terminated string designating the name of the emitter set, and 0x10 bytes of unknown data. | |||
Emitter sets also contain any number of Emitters (EMTR) as child nodes. | |||
==== Emitter (EMTR) ==== | |||
Emitters (EMTR) cause an object to cast light on surrounding surfaces. They contain the following data: | |||
{| class="wikitable" | |||
!Offset (h) | |||
!Size (h) | |||
!Description | |||
|- | |||
| 0x00 || 0x60 || Name block, like in ESET | |||
|- | |||
| 0x60 || 0x18 || Six Unsigned Ints specifying the sizes of the color arrays | |||
* Color 0 | |||
* Alpha 0 | |||
* Color 1 | |||
* Alpha 1 | |||
* Scale{{check}} | |||
* Unknown | |||
|- | |||
| colspan="2" | ... || Unknown | |||
|- | |||
| 0x420 || 0x80 || Color 0 array (eight sets of four 32-bit floats describing Red, Green, Blue, and Time) | |||
|- | |||
| 0x4a0 || 0x80 || Alpha 0 array | |||
|- | |||
| 0x520 || 0x80 || Color 1 array | |||
|- | |||
| 0x5a0 || 0x80 || Alpha 1 array | |||
|- | |||
| 0x620 || 0x40 || Unknown array | |||
|- | |||
| 0x660 || 0x80 || Scale{{check}} array | |||
|- | |||
| colspan="2" | ... || Unknown | |||
|- | |||
| 0xa08 || 0x10 || Constant Color 0 if Color 0 array is empty | |||
|- | |||
| 0xa18 || 0x10 || Constant Color 1 if Color 1 array is empty | |||
|- | |||
| 0xa28 || 0x30 || Unknown | |||
|- | |||
| 0xa58 || 0x60 || Three 0x20 blocks consisting of a 64-bit Unsigned Long Texture ID and 0x18 bytes padding | |||
|- | |||
| 0xab8 || 0x30 || Unknown | |||
|} | |||
Emitters can also have any number of attribute nodes (e.g. CADP, CSDP, FCSF), the purpose of which is currently unknown. | |||
=== Textures (TEXA) === | === Textures (TEXA) === |