OBD:BINA/PAR3: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 57: Line 57:
{{OBDtr| 0x18 | int16      |FF8000| 01 00      | 1          | number of variables }}
{{OBDtr| 0x18 | int16      |FF8000| 01 00      | 1          | number of variables }}
{{OBDtr| 0x1a | int16      |FF8000| 01 00      | 1          | number of events/actions }}
{{OBDtr| 0x1a | int16      |FF8000| 01 00      | 1          | number of events/actions }}
{{OBDtr| 0x1c | int16      |FF8000| 01 00      | 1          | number of emitted particles }}
{{OBDtr| 0x1c | int16      |FF8000| 01 00      | 1          | number of emitters }}
{{OBDtr| 0x1e | int16      |FF8000| 00 01      | 256        | unknown; always the same }}
{{OBDtr| 0x1e | int16      |FF8000| 00 01      | 256        | unknown; always the same }}
|}
|}
Line 313: Line 313:
----
----


==Emitted particles==
==Emitters==
Every emitted particle takes up 444=0x1BC bytes. The number of emitted particles is specified at 0x1C in the header.
Every emitter takes up 444=0x1BC bytes. The number of emitters is specified at 0x1C in the header. Each emitter has space for 12 parameters but it appears that the last 2 are never used.


http://ssg.oni2.net/images/bin_r_33.gif
http://ssg.oni2.net/images/bin_r_33.gif
Line 327: Line 327:
{{OBDtr| 0x4C | float    |FF00FF| 00 00 20 41 | 10.000000 | amount of (sprite) copies }}
{{OBDtr| 0x4C | float    |FF00FF| 00 00 20 41 | 10.000000 | amount of (sprite) copies }}
{{OBDtr| 0x50 | int32    |FFC8C8| 00 00 00 00 | 0        | unknown }}
{{OBDtr| 0x50 | int32    |FFC8C8| 00 00 00 00 | 0        | unknown }}
{{OBDtr| 0x54 | int32    |FFC8C8| 00 00 00 00 | 0        | emit rate; can use elements 1 and 2; possible values (in dec):
{{OBDtr| 0x54 | int32    |FFC8C8| 00 00 00 00 | 0        | emit rate; can use parameters 1 and 2; possible values (in dec):
:0 - continuous (emit interval)
:0 - continuous (emit interval)
:1 - random (min interval, max interval)
:1 - random (min interval, max interval)
Line 333: Line 333:
:3 - distance (distance)
:3 - distance (distance)
:4 - attractor (recharge time, check interval) }}
:4 - attractor (recharge time, check interval) }}
{{OBDtr| 0x58 | int32    |FFC8C8| 00 00 00 00 | 0        | position; can use elements 3, 4 and 5; possible values (in dec):
{{OBDtr| 0x58 | int32    |FFC8C8| 00 00 00 00 | 0        | position; can use parameters 3, 4 and 5; possible values (in dec):
:0 - point
:0 - point
:1 - line (radius)
:1 - line (radius)
Line 342: Line 342:
:6 - body-surface (offset radius)
:6 - body-surface (offset radius)
:7 - body-bones (offset radius)}}
:7 - body-bones (offset radius)}}
{{OBDtr| 0x5C | int32    |FFC8C8| 03 00 00 00 | 3        | direction; can use elements 6, 7 and 8; possible values (in dec):
{{OBDtr| 0x5C | int32    |FFC8C8| 03 00 00 00 | 3        | direction; can use parameters 6, 7 and 8; possible values (in dec):
:0 - straight
:0 - straight
:1 - random
:1 - random
Line 350: Line 350:
:5 - inaccurate (base angle, inaccuracy, center bias)
:5 - inaccurate (base angle, inaccuracy, center bias)
:6 - attractor}}
:6 - attractor}}
{{OBDtr| 0x60 | int32    |FFC8C8| 00 00 00 00 | 0        | speed; can use elements 9 and 10; possible values (in dec):
{{OBDtr| 0x60 | int32    |FFC8C8| 00 00 00 00 | 0        | speed; can use parameters 9 and 10; possible values (in dec):
:0 - uniform (speed)
:0 - uniform (speed)
:1 - stratified (speed 1, speed 2)}}
:1 - stratified (speed 1, speed 2)}}
{{OBDtr| 0x64 | int32    |FFC8C8| 0C 00 00 00 | 12        | orientation dir; can use element 11?; possible values (in dec):
{{OBDtr| 0x64 | int32    |FFC8C8| 0C 00 00 00 | 12        | orientation dir; possible values (in dec):
:0 - parent +X
:0 - parent +X
:1 - parent -X
:1 - parent -X
Line 370: Line 370:
:14 - towards-emitter
:14 - towards-emitter
:15 - awayfrom-emitter}}
:15 - awayfrom-emitter}}
{{OBDtr| 0x68 | int32    |FFC8C8| 04 00 00 00 | 4        | orientation up; can use element 12? same possible values as for orientation dir }}
{{OBDtr| 0x68 | int32    |FFC8C8| 04 00 00 00 | 4        | orientation up; same possible values as for orientation dir }}
{{OBDtrBK}}
{{OBDtrBK|First emitter parameter }}
{{OBDtr| 0x00 | int32    |FFFFC8| 04 00 00 00 | 4        | value type: random float }}
{{OBDtr| 0x00 | int32    |FFFFC8| 04 00 00 00 | 4        | value type: random float }}
{{OBDtr| 0x04 | float    |C8FFC8| 00 00 00 3E | 0.125000  | attractor - recharge time min value }}
{{OBDtr| 0x04 | float    |C8FFC8| 00 00 00 3E | 0.125000  | attractor - recharge time min value }}
Line 379: Line 379:
{{OBDtr| 0x18 |          |FFC8FF|            |          | not used for random float values }}
{{OBDtr| 0x18 |          |FFC8FF|            |          | not used for random float values }}
|}
|}


----
----
----
----
{{OBD BINA Footer|prev=ONIE|type=PAR3|next=SABD|name=3D Particle|onistuff=b_3d}}
{{OBD BINA Footer|prev=ONIE|type=PAR3|next=SABD|name=3D Particle|onistuff=b_3d}}
708

edits