EFTB: Difference between revisions

→‎Emitter (EMTR): add CADP attribute with some info on flags
imported>Locke
(→‎Emitter Set (ESET): ESET header - number of descendants)
imported>Locke
(→‎Emitter (EMTR): add CADP attribute with some info on flags)
Line 127: Line 127:


==== Emitter (EMTR) ====
==== Emitter (EMTR) ====
Emitters (EMTR) cause an object to cast light on surrounding surfaces. They contain the following data:
Emitters (EMTR) contain the following data:


{| class="wikitable"
{| class="wikitable"
!Offset (h)
! Offset (h)
!Size (h)
! Size (h)
!Description
! Description
|-
|-
| 0x00 || 0x60 || Name block, like in ESET
| 0x00 || 0x60 || Name block, like in ESET
Line 172: Line 172:


Emitters can also have any number of attribute nodes (e.g. CADP, CSDP, FCSF), the purpose of which is currently unknown, as well as child emitter nodes.
Emitters can also have any number of attribute nodes (e.g. CADP, CSDP, FCSF), the purpose of which is currently unknown, as well as child emitter nodes.
===== Attributes =====
'''CADP''' causes an emitter to cast light on surrounding surfaces. It contains the following data:
{| class="wikitable"
! Offset (h)
! Size
! Data Type
! Description
|-
| 0x00 || 0x04 || Bitmask || Flag determining the light's shape
|-
| 0x04 || 0x04 || Float || Radius
|-
| 0x08 || (variable) || Float || A variable number of floats whose purpose is unknown
|}
Shape flag:
{| class="wikitable"
! Flag
! Description
|-
| 0x00 || Sphere
|-
| 0x01 || Rod (e.g. swords)
|-
| 0x02 || Changes the orientation of Rod
|-
| 0x04 || Adds a dead zone to the center of Rod
|-
| 0x08 || Wide cone
|-
| 0x10 || Square
|-
| 0x20 || Point
|-
| 0x40 || Widens the Point
|}


=== Textures (TEXA) ===
=== Textures (TEXA) ===
Anonymous user