OBD:ENVP: Difference between revisions

From OniGalore
Jump to navigation Jump to search
m (transformation matrix)
(design)
Line 1: Line 1:
{{OBD File Header|align=right|prev=DPge|type=ENVP|next=FILM|name=Env Particle Array|family=Level|onistuff=envp}}
{{OBD_File_Header | type=ENVP | prev=DPge | next=FILM | name=Env Particle Array | family=Level | align=center}}
;Enviroment particles?
:Locklights, lights, fire, smoke, steam, "electricity" etc...
;Structure
:Header (0x20 = 32 bytes)
:Variable number of particle chunks (0xD0 = 208 bytes each)
:16-byte blank filler if needed (up to 32 byte multiple size)
{{OBD TXT dec|onistuff=oncc|size=103}}




----
[[image:envp_a.gif]]
----
http://www6.fh-eberswalde.de/user/dkriesch/onistuff/images/envp_a.gif




{| {{OBDtable}}
{{Table}}
|align=center|
{{OBDth}}
{| {{OBDtable}}
{{OBDtr| 0x00 | res_id  |FF0000| 01 9B 02 00 | 667       | 00667-.ENVP }}
|- ALIGN=CENTER BGCOLOR="#FFDDBB"
{{OBDtr| 0x04 | lev_id  |FFFF00| 01 00 00 06 | 3         | level 3 }}
! WIDTH=12% |Offset
{{OBDtr| 0x08 | char[22] |00FF00| AD DE       | dead       | unused }}
! WIDTH=12% |Hex
{{OBDtr| 0x1E | int16    |00FFFF| 42 00       | 66         | array size }}
! WIDTH=12% |Value
{{OBDtrBK}}
!Meaning
{{OBDtr2|0x00 | char[64] |FFC8C8| locklight               | particle type name (reference to 06079-3RAPlocklight.[[OBD:BINA/PAR3|BINA]] of level 0); global lookup name }}
|-
{{OBDtr2|0x40 | char[48] |FFFFC8| lock1_locklight01       | particle name; local lookup name (visible from scripts etc) }}
|0x00
{{OBDtr| 0x70 | float    |C8FFC8| 00 00 80 BF | -1.000000 | transformation matrix, xx term }}
| BGCOLOR="#FF0000" | 01 '''9B 02''' 00
{{OBDtr| 0x74 | float    |C8FFC8| 52 D2 43 B3 |-0.000000...| transformation matrix, xy term }}
| 667
{{OBDtr| 0x78 | float    |C8FFC8| 2E B4 61 B7 | -0.000013 | transformation matrix, xz term }}
| ALIGN=LEFT | 00667-.ENVP
{{OBDtr| 0x7C | float    |C8FFFF| 2F B4 61 37 | 0.000013   | transformation matrix, yx term }}
|-
{{OBDtr| 0x80 | float    |C8FFFF| FD B7 AA B7 | -0.000020 | transformation matrix, yy term }}
|0x04
{{OBDtr| 0x84 | float    |C8FFFF| 00 00 80 BF | -1.000000 | transformation matrix, yz term }}
| BGCOLOR="#FFFF00" | 01 00 00 '''06'''
{{OBDtr| 0x88 | float    |FFC8FF| 4A A5 42 33 | 0.000000...| transformation matrix, zx term }}
| 3
{{OBDtr| 0x8C | float    |FFC8FF| 00 00 80 BF | -1.000000 | transformation matrix, zy term }}
| ALIGN=LEFT | level 3
{{OBDtr| 0x90 | float    |FFC8FF| FD B7 AA 37 | 0.000020   | transformation matrix, zz term }}
|-
{{OBDtr| 0x94 | float    |FFC800| BA E1 20 44 | 643.526978 | x-position of the particle }}
|0x08-0x1D
{{OBDtr| 0x98 | float    |FFC800| C9 C4 50 41 | 13.048043 | y-position (height) of the particle }}
| BGCOLOR="#00FF00" | AD DE
{{OBDtr| 0x9C | float    |FFC800| 05 EB 89 C3 |-275.836090 | z-position of the particle }}
| dead
{{OBDtr| 0xA0 | int32    |C800C8| 00 00 80 3F | 1.000000   | unknown; always the same }}
| ALIGN=LEFT | blank filler
{{OBDtr| 0xA4 | int32    |C87C64| 00 00 80 3F | 1.000000   | unknown; always the same }}
|-
{{OBDtr| 0xA8 | int32(10)|B0C3D4| 00 00 00 00 | 0         | unknown; always zero }}
|0x1E
| BGCOLOR="#00FFFF" | 42 00
| 66
| ALIGN=LEFT | 66 environment particles in array (first particle outlined in black)
|-BGCOLOR="#000000"
| COLSPAN=4 | <FONT COLOR="#FFFFFF">First particle (0xD0 = 208 bytes)</FONT>
|-
|0x20-0x5F
| BGCOLOR="#FFC8C8" COLSPAN=2 | <TT>locklight</TT>
| ALIGN=LEFT | Global lookup name for the particle ([[OBD:BINA/3RAP|3RAPlocklight.BINA]] of level 0)
|-
|0x60-0x8F
| BGCOLOR="#FFFFC8" COLSPAN=2 | <TT>lock1_locklight01</TT>
| ALIGN=LEFT | Local lookup name for the particle (visible from scripts etc)
|-
|0x90
| BGCOLOR="#C8FFC8" | 00 00 80 BF
| -1.000000
| ALIGN=LEFT | transformation matrix, xx term
|-
|0x94
| BGCOLOR="#C8FFC8" | 52 D2 43 B3
| -4.559326e-8
| ALIGN=LEFT | transformation matrix, xy term
|-
|0x98
| BGCOLOR="#C8FFC8" | 2E B4 61 B7
| -0.000013
| ALIGN=LEFT | transformation matrix, xz term
|-
|0x9C
| BGCOLOR="#C8FFFF" | 2F B4 61 37
| 0.000013
| ALIGN=LEFT | transformation matrix, yx term
|-
|0xA0
| BGCOLOR="#C8FFFF" | FD B7 AA B7
| -0.000020
| ALIGN=LEFT | transformation matrix, yy term
|-
|0xA4
| BGCOLOR="#C8FFFF" | 00 00 80 BF
| -1.000000
| ALIGN=LEFT | transformation matrix, yz term
|-
|0xA8
| BGCOLOR="#FFC8FF" | 4A A5 42 33
| 4.531947e-8
| ALIGN=LEFT | transformation matrix, zx term
|-
|0xAC
| BGCOLOR="#FFC8FF" | 00 00 80 BF
| -1.000000
| ALIGN=LEFT | transformation matrix, zy term
|-
|0xB0
| BGCOLOR="#FFC8FF" | FD B7 AA 37
| 0.000020
| ALIGN=LEFT | transformation matrix, zz term
|-
|0xB4
| BGCOLOR="#FFC800" | BA E1 20 44
| 643.526978
| ALIGN=LEFT | x-position of the particle
|-
|0xB8
| BGCOLOR="#FFC800" | C9 C4 50 41
| 13.048043
| ALIGN=LEFT | y-position (height) of the particle
|-
|0xBC
| BGCOLOR="#FFC800" | 05 EB 89 C3
| -275.836090
| ALIGN=LEFT | z-position of the particle
|-
|0xC0
| BGCOLOR="#C800C8" | 00 00 80 3F
| 1.000000
| ALIGN=LEFT | unknown; always the same
|-
|0xC4
| BGCOLOR="#C87C64" | 00 00 80 3F
| 1.000000
| ALIGN=LEFT | unknown; always the same
|-
|0xC8-0xEF
| BGCOLOR="#B0C3D4" | 00 00 00 00
| 0
| ALIGN=LEFT | unknown; always zero
|}
|}
|}
;Enviroment particles
:Locklights, lights, fire, smoke, steam, "electricity" etc...
;Transformation matrix
;Transformation matrix
:That's what defines orientation, stretching etc.
:That's what defines orientation, stretching etc.
:It's used to build a sub system of coordinates. This is used for the facing of the particle.
:See [[OBD:CRSA|CRSA]] for a detailed explanation.
:See [[OBD:CRSA|CRSA]] for a detailed explanation.




----
{{OBD_File_Footer | type=ENVP | prev=DPge | next=FILM | name=Env Particle Array | family=Level}}
----
{{OBD TXT dec|align=center|onistuff=oncc|size=103}}
----
----
{{OBD_File_Footer|type=ENVP|prev=DPge|next=FILM|name=Env Particle Array}}

Revision as of 13:05, 15 September 2007

ONI BINARY DATA
DPge << Other file types >> FILM
ENVP : Env Particle Array
switch to XML:ENVP page
Overview @ Oni Stuff
OBD.png


Envp a.gif


Offset Type Raw Hex Value Description
0x00 res_id 01 9B 02 00 667 00667-.ENVP
0x04 lev_id 01 00 00 06 3 level 3
0x08 char[22] AD DE dead unused
0x1E int16 42 00 66 array size
First element (black outline)
0x00 char[64] locklight particle type name (reference to 06079-3RAPlocklight.BINA of level 0); global lookup name
0x40 char[48] lock1_locklight01 particle name; local lookup name (visible from scripts etc)
0x70 float 00 00 80 BF -1.000000 transformation matrix, xx term
0x74 float 52 D2 43 B3 -0.000000... transformation matrix, xy term
0x78 float 2E B4 61 B7 -0.000013 transformation matrix, xz term
0x7C float 2F B4 61 37 0.000013 transformation matrix, yx term
0x80 float FD B7 AA B7 -0.000020 transformation matrix, yy term
0x84 float 00 00 80 BF -1.000000 transformation matrix, yz term
0x88 float 4A A5 42 33 0.000000... transformation matrix, zx term
0x8C float 00 00 80 BF -1.000000 transformation matrix, zy term
0x90 float FD B7 AA 37 0.000020 transformation matrix, zz term
0x94 float BA E1 20 44 643.526978 x-position of the particle
0x98 float C9 C4 50 41 13.048043 y-position (height) of the particle
0x9C float 05 EB 89 C3 -275.836090 z-position of the particle
0xA0 int32 00 00 80 3F 1.000000 unknown; always the same
0xA4 int32 00 00 80 3F 1.000000 unknown; always the same
0xA8 int32(10) 00 00 00 00 0 unknown; always zero


Enviroment particles
Locklights, lights, fire, smoke, steam, "electricity" etc...
Transformation matrix
That's what defines orientation, stretching etc.
It's used to build a sub system of coordinates. This is used for the facing of the particle.
See CRSA for a detailed explanation.


ONI BINARY DATA
DPge << Other file types >> FILM
ENVP : Env Particle Array
Level file