Difference between revisions of "BBLM (File Format)"
Jump to navigation
Jump to search
Line 39: | Line 39: | ||
| 0x68 || Uint32[6] || {{Unknown-left|'''Unknown'''. Always 00 00 00 00.}} | | 0x68 || Uint32[6] || {{Unknown-left|'''Unknown'''. Always 00 00 00 00.}} | ||
|- | |- | ||
− | | 0x80 || Uint8 || { | + | | 0x80 || Uint8 || Determines how the generated output image (source) is blended with the original image (destination). Source and destination are always added together. |
+ | {|class=wikitable | ||
+ | ! Value !! Output | ||
+ | |- | ||
+ | | 0 || No modifications. | ||
+ | |- | ||
+ | | 1 || The source is multiplied with its complement (inverted color), thus discarding the brightest color channels. | ||
+ | |- | ||
+ | | 2 || The tint alpha determines the transparency of the source. | ||
+ | |- | ||
+ | | 3 || Same as 2, but the destination is multiplied with the inverted alpha, creating a weighted average. | ||
+ | |- | ||
+ | | 4 || The source is multiplied with itself, emphasising the brighter colors. | ||
+ | |} | ||
|- | |- | ||
| 0x81 || Uint8 || Number of blur stages in the second blur. | | 0x81 || Uint8 || Number of blur stages in the second blur. |
Revision as of 13:51, 10 December 2022
The BBLM (Binary BLooM) filetype controls blur, bloom and color filtering of the final image output.
File Format
Offset | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0x00 | String | File magic. Always PBLM in ASCII. | ||||||||||||
0x04 | UInt32 | File size. Always 0xA4 in MKW. | ||||||||||||
0x08 | UInt8 | Version. Always 01 in MKW. | ||||||||||||
0x0C | UInt32 | Unknown. Always 00 00 00 00. | ||||||||||||
0x10 | Float | Threshold intensity | ||||||||||||
0x14 | Byte[4] | Threshold color | ||||||||||||
0x18 | Byte[4] | Tint color | ||||||||||||
0x1C | Short | Bitfield | ||||||||||||
0x20 | Float | First blur strength | ||||||||||||
0x24 | Float | First blur color intensity | ||||||||||||
0x28 | Uint32[6] | Unknown. Always 00 00 00 00. | ||||||||||||
0x40 | Float | Second blur stage 1 strength | ||||||||||||
0x44 | Float | Second blur stage 1 color intensity | ||||||||||||
0x48 | Uint32[6] | Unknown. Always 00 00 00 00. | ||||||||||||
0x60 | Float | Second blur stage 2 strength | ||||||||||||
0x64 | Float | Second blur stage 2 color intensity | ||||||||||||
0x68 | Uint32[6] | Unknown. Always 00 00 00 00. | ||||||||||||
0x80 | Uint8 | Determines how the generated output image (source) is blended with the original image (destination). Source and destination are always added together.
| ||||||||||||
0x81 | Uint8 | Number of blur stages in the second blur. | ||||||||||||
0x9c | Float[2] | Bloom color intensity per stage |