Difference between revisions of "BDOF (File Format)"

From Custom Mario Kart
Jump to navigation Jump to search
Line 1: Line 1:
The '''BDOF''' ('''B'''inary '''D'''epth '''O'''f '''F'''ield) file controls effects like focus, sharpness and blur in tracks. It is always seen in the "./posteffect" folder inside an [[U8 (File Format)|U8 file]].
+
'''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 an [[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.
  
 
== File Format ==
 
== File Format ==

Revision as of 17:33, 9 September 2018

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.
0x0C UInt32 Unknown.
0x10 Byte Unknown.
0x11 Byte Unknown.
0x12 Byte Near blur power.
0x13 Byte Far blur power.
0x14 Byte Unknown.
0x15 Byte Unknown.
0x16 Byte Unknown.
0x17 Byte Unknown.
0x18 Float DOF start.
0x1C Float DOF end.
0x20 Float Blur scale? Low value means in focus and high means blurry.
0x24 Float Unknown.
0x28 Float? Unknown.
0x2C Float? Unknown.
0x30 Float Unknown.
0x34 Float Unknown.
0x38 Float Unknown.
0x3C Float Unknown.
0x40 Byte[16] Padding?

Tools

The following tools can handle BDOF files: