Difference between revisions of "BDOF (File Format)"
Jump to navigation
Jump to search
m (Grammar.) |
|||
Line 1: | Line 1: | ||
− | '''BDOF''' ('''B'''inary '''D'''epth '''O'''f '''F'''ield) is a [[ | + | '''BDOF''' ('''B'''inary '''D'''epth '''O'''f '''F'''ield) is a [[post-effect]] file that controls effects like focus, sharpness and blur in tracks. It is always seen in the "./posteffect" folder inside a [[U8 (File Format)|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. | 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. |
Revision as of 10:53, 31 December 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 a 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: