OBD:BINA/OBJC/SNDG: Difference between revisions

From OniGalore
< OBD:BINA‎ | OBJC
Jump to navigation Jump to search
m (fixed a few things, kept the old table/screenshot format)
m (added family to footer template call)
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{OBD OBJC Header|align=center|type=SNDG|prev=PWRU|next=TRGV|name=Sound Group|onistuff=b_so}}
{{OBD OBJC Header | align=center | type=SNDG | prev=PWRU | next=TRGV | name=Sound Group | stuff=b_so}}
----
----
http://www6.fh-eberswalde.de/user/dkriesch/onistuff/images/bin_r_so.gif




{| BORDER=1 WIDTH=100% CELLPADDING=2 CELLSPACING=1 BGCOLOR="#000000"
[[Image:bin_r_so.gif]]
|- BGCOLOR="#FFDDBB" ALIGN=CENTER
 
| WIDTH=15% | <B>Hex</B>
 
| WIDTH=15% | <B>Translation</B>
{{Table}}
| WIDTH=70% | <B>Meaning</B>
{{OBDth}}
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD"
{{OBDtr| 0x00 | char[4]  |FF0000| 43 4A 42 4F | OBJC       | objects }}
| BGCOLOR="#FF0000" | 43 4A 42 4F
{{OBDtr| 0x04 | int32    |FFFF00| C8 3C 00 00 | 15560     | size of the complete sound group part from this position in bytes }}
| OBJC
{{OBDtr| 0x08 | int32    |00FF00| 27 00 00 00 | 39         | object list version }}
| ALIGN=LEFT | object collection
{{OBDtr| 0x0C | int32    |00FFFF| 68 00 00 00 | 104       | size of the following element in bytes }}
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD"
{{OBDtrBK}}
| BGCOLOR="#FFFF00" | C8 3C 00 00
{{OBDtr| 0x00 | char[4]  |FFC8C8| 47 44 4E 53 | SNDG       | sound geometry }}
| 15560
{{OBDtr| 0x04 | int32    |FFFFC8| 2D 23 00 00 | 9005       | old file ID }}
| ALIGN=LEFT | size to end of collection (this field included)
{{OBDtr| 0x08 | int32    |C8FFC8| 00 00 00 00 | 0         | unknown }}
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD"
{{OBDtr| 0x0C | float    |C8FFFF| B6 52 7E C3 | -254.323090| x-position of the particle }}
| BGCOLOR="#00FF00" | 27 00 00 00
{{OBDtr| 0x10 | float    |C8FFFF| F3 14 A5 42 | 82.540916 | y-position (height) of the particle }}
| 39
{{OBDtr| 0x14 | float    |C8FFFF| EB 8B DD 41 | 27.693319 | z-position of the particle }}
| ALIGN=LEFT | unknown; in every level the same; do not change it
{{OBDtr| 0x18 | float    |FFC8FF| 00 00 00 00 | 0.000000   | rotation on the x-axis in degrees }}
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD"
{{OBDtr| 0x1C | float    |FFC8FF| 00 00 00 00 | 0.000000   | rotation on the y-axis in degrees }}
| BGCOLOR="#00FFFF" | 68 00 00 00
{{OBDtr| 0x20 | float    |FFC8FF| 00 00 00 00 | 0.000000   | rotation on the z-axis in degrees }}
| 104
{{OBDtr2|0x24 | char[32] |FFC800| city_amb01               | sound name (reference to 06452-city_amb01.[[OBD:OSBD/OSAm|amb.OSBD]] of level 0) }}
| ALIGN=LEFT | size of the following object (black outline)
{{OBDtr| 0x44 | char[4]  |C800C8| 45 4D 4C 56 | VLME       | sound geometry type; the following types are possible:
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#000000"
 
| COLSPAN=3 | <FONT SIZE=2 COLOR="#FFFFFF">First object listed below.</FONT>
 
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD"
:VLME (EMLV) - volume (axis-aligned box)
| BGCOLOR="#FFC8C8" | 47 44 4E 53
:SPHR (RHPS) - sphere
| SNDG
 
| ALIGN=LEFT | sound geometry
 
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD"
}}
| BGCOLOR="#FFFFC8" | 2D 23 00 00
{{OBDtr| 0x48 | float    |C87C64| 00 50 87 C4 |-1082.500000| VLME: xmin<BR>SPHR: rmax }}
| 9005
{{OBDtr| 0x4C | float    |C87C64| 00 00 DC C2 | -110.000000| VLME: ymin<BR>SPHR: rmin }}
| ALIGN=LEFT | old file ID
{{OBDtr| 0x50 | float    |C87C64| 00 00 CA C2 | -101.000000| VLME: zmin<BR>SPHR: sound volume }}
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD"
{{OBDtr| 0x54 | float    |B0C3D4| 00 50 87 44 | 1082.500000| VLME: xmax<BR>SPHR: sound pitch }}
| BGCOLOR="#C8FFC8" | 00 00 00 00
{{OBDtr| 0x58 | float    |B0C3D4| 00 00 DC 42 | 110.000000 | VLME: ymax<BR>SPHR: field not present }}
| 0
{{OBDtr| 0x5C | float    |B0C3D4| 00 00 CA 42 | 101.000000 | VLME: zmax<BR>SPHR: field not present }}
| ALIGN=LEFT | unknown (values?)
{{OBDtr| 0x60 | float    |FFDDDD| 00 00 80 3F | 1.000000   | VLME: sound volume<BR>SPHR: field not present }}
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD"
{{OBDtr| 0x64 | float    |64AAAA| 00 00 80 3F | 1.000000   | VLME: sound pitch<BR>SPHR: field not present }}
| BGCOLOR="#C8FFFF" | B6 52 7E C3
| -254,323090
| ALIGN=LEFT | x-position of the sound
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD"
| BGCOLOR="#C8FFFF" | F3 14 A5 42
| 82,540916
| ALIGN=LEFT | y-position (height) of the sound
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD"
| BGCOLOR="#C8FFFF" | EB 8B DD 41
| 27,693319
| ALIGN=LEFT | z-position of the sound
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD"
| BGCOLOR="#FFC8FF" | 00 00 00 00
| 0.000000
| ALIGN=LEFT | x-rotation in degrees
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD"
| BGCOLOR="#FFC8FF" | 00 00 00 00
| 0.000000
| ALIGN=LEFT | y-rotation on the y-axis in degrees
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD"
| BGCOLOR="#FFC8FF" | 00 00 00 00
| 0.000000
| ALIGN=LEFT | rotation on the z-axis in degrees
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD"
| BGCOLOR="#FFC800" COLSPAN=2 | <TT>city_amb01</TT>
| ALIGN=LEFT | link by internal field to ambient sound ('''city_amb01.amb.[[OBD:OSBD|OSBD]]''' of '''level0_Final''')
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD"
| BGCOLOR="#C800C8" | 45 4D 4C 56
| VLME
| ALIGN=LEFT | sound trigger type; possible types:<BR><BR>VLME (EMLV) - axis-aligned box<BR>SPHR (RHPS) - sphere<BR><BR>
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD"
| BGCOLOR="#C87C64" | 00 50 87 C4
| -1082.500000
| ALIGN=LEFT | VLME: xmin<BR>SPHR: rmax
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD"
| BGCOLOR="#C87C64" | 00 00 DC C2
| -110.000000
| ALIGN=LEFT | VLME: ymin<BR>SPHR: rmin
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD"
| BGCOLOR="#C87C64" | 00 00 CA C2
| -101.000000
| ALIGN=LEFT | VLME: zmin<BR>SPHR: sound volume
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD"
| BGCOLOR="#B0C3D4" | 00 50 87 44
| 1082.500000
| ALIGN=LEFT | VLME: xmax<BR>SPHR: sound pitch
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD"
| BGCOLOR="#B0C3D4" | 00 00 DC 42
| 110.000000
| ALIGN=LEFT | VLME: ymax<BR>SPHR: not used; always zero
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD"
| BGCOLOR="#B0C3D4" | 00 00 CA 42
| 101.000000
| ALIGN=LEFT | VLME: zmax<BR>SPHR: not used; always zero
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD"
| BGCOLOR="#E7CEA5" | 00 00 80 3F
| 1.000000
| ALIGN=LEFT | VLME: sound volume<BR>SPHR: not used; always zero
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD"
| BGCOLOR="#FFDDDD" | 00 00 80 3F
| 1.000000
| ALIGN=LEFT | VLME: sound pitch<BR>SPHR: not used; always zero
|}
|}
;Position and rotation
;Position and rotation
:Like for other data types, those probably correspond to handles for runtime editing.
:Like for other data types, those probably correspond to handles for runtime editing.
Line 109: Line 46:
:Position is in world units (decimeters). Rotation is in degrees, trigonometric.
:Position is in world units (decimeters). Rotation is in degrees, trigonometric.
;Sound pitch
;Sound pitch
:Actually a playback speed multiplier. Other multipliers specified in the OSGr.
:Actually a playback speed multiplier. Other multipliers specified in the [[OBD:OSBD/OSGr|OSGr]].
;Radii (SPHR)
;Radii (SPHR)
:What do they correspond to? Is the following correct?
:What do they correspond to? Is the following correct?
Line 118: Line 55:




----
;Tool Mode dialog
----
 
{{OBD OBJC Header|align=center|type=SNDG|prev=PWRU|next=TRGV|name=Sound Group|onistuff=b_so}}
[[Image:Tool dialog - Sound Properties.png]]
 
 
{{OBD OBJC Footer | type=SNDG | prev=PWRU | next=TRGV | name=Sound Group | family=Level}}
 
{{OBD}}

Latest revision as of 21:22, 9 December 2023

ONI BINARY DATA
AKVA << Other file types >> CBPI
BINA : Binary data
TMBD << Other BINA >> ONIE
OBJC : Objects
PWRU << Other OBJC >> TRGV
SNDG : Sound Group
XML tutorial
Overview @ Oni Stuff
OBD.png


Bin r so.gif


Offset Type Raw Hex Value Description
0x00 char[4] 43 4A 42 4F OBJC objects
0x04 int32 C8 3C 00 00 15560 size of the complete sound group part from this position in bytes
0x08 int32 27 00 00 00 39 object list version
0x0C int32 68 00 00 00 104 size of the following element in bytes
First element (black outline)
0x00 char[4] 47 44 4E 53 SNDG sound geometry
0x04 int32 2D 23 00 00 9005 old file ID
0x08 int32 00 00 00 00 0 unknown
0x0C float B6 52 7E C3 -254.323090 x-position of the particle
0x10 float F3 14 A5 42 82.540916 y-position (height) of the particle
0x14 float EB 8B DD 41 27.693319 z-position of the particle
0x18 float 00 00 00 00 0.000000 rotation on the x-axis in degrees
0x1C float 00 00 00 00 0.000000 rotation on the y-axis in degrees
0x20 float 00 00 00 00 0.000000 rotation on the z-axis in degrees
0x24 char[32] city_amb01 sound name (reference to 06452-city_amb01.amb.OSBD of level 0)
0x44 char[4] 45 4D 4C 56 VLME sound geometry type; the following types are possible:


VLME (EMLV) - volume (axis-aligned box)
SPHR (RHPS) - sphere


0x48 float 00 50 87 C4 -1082.500000 VLME: xmin
SPHR: rmax
0x4C float 00 00 DC C2 -110.000000 VLME: ymin
SPHR: rmin
0x50 float 00 00 CA C2 -101.000000 VLME: zmin
SPHR: sound volume
0x54 float 00 50 87 44 1082.500000 VLME: xmax
SPHR: sound pitch
0x58 float 00 00 DC 42 110.000000 VLME: ymax
SPHR: field not present
0x5C float 00 00 CA 42 101.000000 VLME: zmax
SPHR: field not present
0x60 float 00 00 80 3F 1.000000 VLME: sound volume
SPHR: field not present
0x64 float 00 00 80 3F 1.000000 VLME: sound pitch
SPHR: field not present


Position and rotation
Like for other data types, those probably correspond to handles for runtime editing.
x, y, z are oriented the usual way (z+ = forward, x+ = left, y+ = up)
Position is in world units (decimeters). Rotation is in degrees, trigonometric.
Sound pitch
Actually a playback speed multiplier. Other multipliers specified in the OSGr.
Radii (SPHR)
What do they correspond to? Is the following correct?
  • r < rmin : volume = "sound volume"
  • rmin < r < rmax : volume = "sound volume" * (rmax - r)/(rmax - rmin)
  • r > rmax : volume = 0
Please confirm. geyser 15:56, 26 January 2007 (CET)


Tool Mode dialog

Tool dialog - Sound Properties.png


ONI BINARY DATA
AKVA << Other file types >> CBPI
BINA : Binary data
TMBD << Other BINA >> ONIE
OBJC : Objects
PWRU << Other OBJC >> TRGV
SNDG : Sound Group
Level file