Difference between revisions of "BDOF (File Format)"
Jump to navigation
Jump to search
Line 12: | Line 12: | ||
| 0x04 || UInt32 || '''File size'''. Always 0x50. | | 0x04 || UInt32 || '''File size'''. Always 0x50. | ||
|- | |- | ||
− | | 0x08 || UInt32 || {{Unknown-left|'''Unknown'''.}} | + | | 0x08 || UInt32 || {{Unknown-left|'''Unknown'''. Always 0.}} |
|- | |- | ||
− | | 0x0C || UInt32 || {{Unknown-left|'''Unknown'''.}} | + | | 0x0C || UInt32 || {{Unknown-left|'''Unknown'''. Always 0.}} |
|- | |- | ||
− | | 0x10 || | + | | 0x10 || UInt16 || Seems to be some filter bitmask. |
|- | |- | ||
− | | | + | | 0x12 || Byte || Inverse alpha. |
|- | |- | ||
− | | | + | | 0x13 || Byte || Alpha. |
|- | |- | ||
− | | | + | | 0x14 || UInt32 || DOF type: |
+ | * 0 = '''Unknown'''. Probably none. | ||
+ | * 1 = Only use inverse calculation. | ||
+ | * 2 = Use both normal and inverse calculations. | ||
|- | |- | ||
− | | | + | | 0x18 || Float || DOF plane distance. |
|- | |- | ||
− | | | + | | 0x1C || Float || DOF correction? This value seems to adjust the plane distance as well. |
|- | |- | ||
− | | | + | | 0x20 || Float || {{Unknown-left|'''Unknown'''.}} |
|- | |- | ||
− | | | + | | 0x24 || Float || DOF expand. A higher value means blurrier. |
|- | |- | ||
− | | | + | | 0x28 || Float[2] || {{Unknown-left|'''Unknown'''.}} |
|- | |- | ||
− | | | + | | 0x30 || Float[2] || {{Unknown-left|'''Unknown'''.}} |
|- | |- | ||
− | | | + | | 0x38 || Float[2] || {{Unknown-left|'''Unknown'''.}} |
|- | |- | ||
− | + | | 0x40 || Byte[16] || Padding. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | 0x40 || Byte[16] || Padding | ||
|} | |} | ||
Revision as of 22:09, 25 April 2019
BDOF (Binary Depth Of Field) is a Post-effect file that controls effects like focus, sharpness and blur in tracks. It is always seen in the "./posteffect" folder inside an U8 file.
There is unused code that allows the usage of a secondary BDOF file, named posteffect.bdof_demo. This one has the same format as a normal BDOF file, and it seems to be used only in the course introduction if present.
File Format
Offset | Type | Description |
---|---|---|
0x00 | String | File magic. Always PDOF in ASCII. |
0x04 | UInt32 | File size. Always 0x50. |
0x08 | UInt32 | Unknown. Always 0. |
0x0C | UInt32 | Unknown. Always 0. |
0x10 | UInt16 | Seems to be some filter bitmask. |
0x12 | Byte | Inverse alpha. |
0x13 | Byte | Alpha. |
0x14 | UInt32 | DOF type:
|
0x18 | Float | DOF plane distance. |
0x1C | Float | DOF correction? This value seems to adjust the plane distance as well. |
0x20 | Float | Unknown. |
0x24 | Float | DOF expand. A higher value means blurrier. |
0x28 | Float[2] | Unknown. |
0x30 | Float[2] | Unknown. |
0x38 | Float[2] | Unknown. |
0x40 | Byte[16] | Padding. |
Tools
The following tools can handle BDOF files: