OBD:BINA/OBJC/SNDG: Difference between revisions
Jump to navigation
Jump to search
m (wrong file?) |
m (fixed a few things, kept the old table/screenshot format) |
||
Line 13: | Line 13: | ||
| BGCOLOR="#FF0000" | 43 4A 42 4F | | BGCOLOR="#FF0000" | 43 4A 42 4F | ||
| OBJC | | OBJC | ||
| ALIGN=LEFT | object | | ALIGN=LEFT | object collection | ||
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD" | |- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#FFFF00" | C8 3C 00 00 | | BGCOLOR="#FFFF00" | C8 3C 00 00 | ||
| 15560 | | 15560 | ||
| ALIGN=LEFT | | | ALIGN=LEFT | size to end of collection (this field included) | ||
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD" | |- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#00FF00" | 27 00 00 00 | | BGCOLOR="#00FF00" | 27 00 00 00 | ||
| 39 | | 39 | ||
| ALIGN=LEFT | | | ALIGN=LEFT | unknown; in every level the same; do not change it | ||
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD" | |- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#00FFFF" | 68 00 00 00 | | BGCOLOR="#00FFFF" | 68 00 00 00 | ||
| 104 | | 104 | ||
| ALIGN=LEFT | | | ALIGN=LEFT | size of the following object (black outline) | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#000000" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#000000" | ||
| COLSPAN=3 | <FONT SIZE=2 COLOR="#FFFFFF"> | | COLSPAN=3 | <FONT SIZE=2 COLOR="#FFFFFF">First object listed below.</FONT> | ||
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD" | |- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#FFC8C8" | 47 44 4E 53 | | BGCOLOR="#FFC8C8" | 47 44 4E 53 | ||
| SNDG | | SNDG | ||
| ALIGN=LEFT | sound | | ALIGN=LEFT | sound geometry | ||
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD" | |- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#FFFFC8" | 2D 23 00 00 | | BGCOLOR="#FFFFC8" | 2D 23 00 00 | ||
Line 39: | Line 39: | ||
| BGCOLOR="#C8FFC8" | 00 00 00 00 | | BGCOLOR="#C8FFC8" | 00 00 00 00 | ||
| 0 | | 0 | ||
| ALIGN=LEFT | unknown | | ALIGN=LEFT | unknown (values?) | ||
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD" | |- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#C8FFFF" | B6 52 7E C3 | | BGCOLOR="#C8FFFF" | B6 52 7E C3 | ||
Line 55: | Line 55: | ||
| BGCOLOR="#FFC8FF" | 00 00 00 00 | | BGCOLOR="#FFC8FF" | 00 00 00 00 | ||
| 0.000000 | | 0.000000 | ||
| ALIGN=LEFT | | | ALIGN=LEFT | x-rotation in degrees | ||
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD" | |- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#FFC8FF" | 00 00 00 00 | | BGCOLOR="#FFC8FF" | 00 00 00 00 | ||
| 0.000000 | | 0.000000 | ||
| ALIGN=LEFT | rotation on the y-axis in degrees | | ALIGN=LEFT | y-rotation on the y-axis in degrees | ||
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD" | |- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#FFC8FF" | 00 00 00 00 | | BGCOLOR="#FFC8FF" | 00 00 00 00 | ||
Line 66: | Line 66: | ||
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD" | |- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#FFC800" COLSPAN=2 | <TT>city_amb01</TT> | | BGCOLOR="#FFC800" COLSPAN=2 | <TT>city_amb01</TT> | ||
| ALIGN=LEFT | | | ALIGN=LEFT | link by internal field to ambient sound ('''city_amb01.amb.[[OBD:OSBD|OSBD]]''' of '''level0_Final''') | ||
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD" | |- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#C800C8" | 45 4D 4C 56 | | BGCOLOR="#C800C8" | 45 4D 4C 56 | ||
| VLME | | VLME | ||
| ALIGN=LEFT | | | 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" | |- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#C87C64" | 00 50 87 C4 | | BGCOLOR="#C87C64" | 00 50 87 C4 | ||
| -1082.500000 | | -1082.500000 | ||
| ALIGN=LEFT | | | ALIGN=LEFT | VLME: xmin<BR>SPHR: rmax | ||
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD" | |- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#C87C64" | 00 00 DC C2 | | BGCOLOR="#C87C64" | 00 00 DC C2 | ||
| -110.000000 | | -110.000000 | ||
| ALIGN=LEFT | | | ALIGN=LEFT | VLME: ymin<BR>SPHR: rmin | ||
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD" | |- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#C87C64" | 00 00 CA C2 | | BGCOLOR="#C87C64" | 00 00 CA C2 | ||
| -101.000000 | | -101.000000 | ||
| ALIGN=LEFT | | | ALIGN=LEFT | VLME: zmin<BR>SPHR: sound volume | ||
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD" | |- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#B0C3D4" | 00 50 87 44 | | BGCOLOR="#B0C3D4" | 00 50 87 44 | ||
| 1082.500000 | | 1082.500000 | ||
| ALIGN=LEFT | | | ALIGN=LEFT | VLME: xmax<BR>SPHR: sound pitch | ||
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD" | |- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#B0C3D4" | 00 00 DC 42 | | BGCOLOR="#B0C3D4" | 00 00 DC 42 | ||
| 110.000000 | | 110.000000 | ||
| ALIGN=LEFT | | | ALIGN=LEFT | VLME: ymax<BR>SPHR: not used; always zero | ||
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD" | |- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#B0C3D4" | 00 00 CA 42 | | BGCOLOR="#B0C3D4" | 00 00 CA 42 | ||
| 101.000000 | | 101.000000 | ||
| ALIGN=LEFT | | | ALIGN=LEFT | VLME: zmax<BR>SPHR: not used; always zero | ||
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD" | |- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#E7CEA5" | 00 00 80 3F | | BGCOLOR="#E7CEA5" | 00 00 80 3F | ||
| 1.000000 | | 1.000000 | ||
| ALIGN=LEFT | | | ALIGN=LEFT | VLME: sound volume<BR>SPHR: not used; always zero | ||
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD" | |- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#FFDDDD" | 00 00 80 3F | | BGCOLOR="#FFDDDD" | 00 00 80 3F | ||
| 1.000000 | | 1.000000 | ||
| ALIGN=LEFT | | | ALIGN=LEFT | VLME: sound pitch<BR>SPHR: not used; always zero | ||
|} | |} | ||
;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. [[User:Geyser|geyser]] 15:56, 26 January 2007 (CET) | |||
---- | ---- | ||
---- | ---- | ||
{{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|onistuff=b_so}} |
Revision as of 14:56, 26 January 2007
|
Hex | Translation | Meaning |
43 4A 42 4F | OBJC | object collection |
C8 3C 00 00 | 15560 | size to end of collection (this field included) |
27 00 00 00 | 39 | unknown; in every level the same; do not change it |
68 00 00 00 | 104 | size of the following object (black outline) |
First object listed below. | ||
47 44 4E 53 | SNDG | sound geometry |
2D 23 00 00 | 9005 | old file ID |
00 00 00 00 | 0 | unknown (values?) |
B6 52 7E C3 | -254,323090 | x-position of the sound |
F3 14 A5 42 | 82,540916 | y-position (height) of the sound |
EB 8B DD 41 | 27,693319 | z-position of the sound |
00 00 00 00 | 0.000000 | x-rotation in degrees |
00 00 00 00 | 0.000000 | y-rotation on the y-axis in degrees |
00 00 00 00 | 0.000000 | rotation on the z-axis in degrees |
city_amb01 | link by internal field to ambient sound (city_amb01.amb.OSBD of level0_Final) | |
45 4D 4C 56 | VLME | sound trigger type; possible types: VLME (EMLV) - axis-aligned box SPHR (RHPS) - sphere |
00 50 87 C4 | -1082.500000 | VLME: xmin SPHR: rmax |
00 00 DC C2 | -110.000000 | VLME: ymin SPHR: rmin |
00 00 CA C2 | -101.000000 | VLME: zmin SPHR: sound volume |
00 50 87 44 | 1082.500000 | VLME: xmax SPHR: sound pitch |
00 00 DC 42 | 110.000000 | VLME: ymax SPHR: not used; always zero |
00 00 CA 42 | 101.000000 | VLME: zmax SPHR: not used; always zero |
00 00 80 3F | 1.000000 | VLME: sound volume SPHR: not used; always zero |
00 00 80 3F | 1.000000 | VLME: sound pitch SPHR: not used; always zero |
- 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)
|