<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.wexosmk.xyz/index.php?action=history&amp;feed=atom&amp;title=BFG_%28File_Format%29</id>
	<title>BFG (File Format) - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.wexosmk.xyz/index.php?action=history&amp;feed=atom&amp;title=BFG_%28File_Format%29"/>
	<link rel="alternate" type="text/html" href="https://wiki.wexosmk.xyz/index.php?title=BFG_(File_Format)&amp;action=history"/>
	<updated>2026-05-06T17:00:49Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://wiki.wexosmk.xyz/index.php?title=BFG_(File_Format)&amp;diff=90&amp;oldid=prev</id>
		<title>Wexos: Imported from avsys wiki</title>
		<link rel="alternate" type="text/html" href="https://wiki.wexosmk.xyz/index.php?title=BFG_(File_Format)&amp;diff=90&amp;oldid=prev"/>
		<updated>2024-05-01T17:08:00Z</updated>

		<summary type="html">&lt;p&gt;Imported from avsys wiki&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;BFG&amp;#039;&amp;#039;&amp;#039; (&amp;#039;&amp;#039;&amp;#039;B&amp;#039;&amp;#039;&amp;#039;inary &amp;#039;&amp;#039;&amp;#039;F&amp;#039;&amp;#039;&amp;#039;o&amp;#039;&amp;#039;&amp;#039;G&amp;#039;&amp;#039;&amp;#039;) files are one of the multiple [[post-effect]] controllers [[Mario Kart Wii]] provides. It controls fog used in tracks, and they appear in the &amp;quot;./posteffect&amp;quot; folder inside [[U8 (File Format)|U8 file]]s.&lt;br /&gt;
&lt;br /&gt;
= File Format =&lt;br /&gt;
The file byte order is always big endian. The structure of the file is based in four fog entries, where each entry is 0x1C bytes long.&lt;br /&gt;
&lt;br /&gt;
{|class=wikitable&lt;br /&gt;
! Offset !! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x00 || Int32 || &amp;#039;&amp;#039;&amp;#039;Fog type&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
* 0x00 = No fog.&lt;br /&gt;
* 0x01 = Perspective projection linear.&lt;br /&gt;
* 0x02 = Perspective projection exponential.&lt;br /&gt;
* 0x03 = Perspective projection exponent squared.&lt;br /&gt;
* 0x04 = Perspective projection inverse exponent.&lt;br /&gt;
* 0x05 = Perspective projection inverse of the square exponent.&lt;br /&gt;
* 0x06 = Orthographic projection linear.&lt;br /&gt;
* 0x07 = Orthographic projection exponential.&lt;br /&gt;
* 0x08 = Orthographic projection exponent squared.&lt;br /&gt;
* 0x09 = Orthographic projection inverse exponent.&lt;br /&gt;
* 0x0A = Orthographic projection inverse of the square exponent.&lt;br /&gt;
|-&lt;br /&gt;
| 0x04 || Float || &amp;#039;&amp;#039;&amp;#039;StartZ&amp;#039;&amp;#039;&amp;#039;. The Z-value where fog generation begins inside the view space.&lt;br /&gt;
|-&lt;br /&gt;
| 0x08 || Float || &amp;#039;&amp;#039;&amp;#039;EndZ&amp;#039;&amp;#039;&amp;#039;. The Z-value at which fog density is maximum inside the view space.&lt;br /&gt;
|-&lt;br /&gt;
| 0x0C || Byte[4] || &amp;#039;&amp;#039;&amp;#039;Fog color&amp;#039;&amp;#039;&amp;#039;, stored in RGBX format (alpha is ignored).&lt;br /&gt;
|-&lt;br /&gt;
| 0x10 || UInt16 || &amp;#039;&amp;#039;&amp;#039;Fog range correction&amp;#039;&amp;#039;&amp;#039;. 0 = Disabled, 1 = Enabled.&lt;br /&gt;
|-&lt;br /&gt;
| 0x12 || UInt16 || {{Unknown-left|Maybe center to which the range correction is applied?}}&lt;br /&gt;
|-&lt;br /&gt;
| 0x14 || Float || Affects the transition speed when swapping fog entries. 1.0 is instant; lower values create longer fades. Whether it affects swapping to this entry, from this entry, or both is unknown.&lt;br /&gt;
|-&lt;br /&gt;
| 0x18 || UInt16 || {{Unknown-left|&amp;#039;&amp;#039;&amp;#039;Unknown&amp;#039;&amp;#039;&amp;#039;. 0 in most Nintendo tracks, 5544 in N64 DK&amp;#039;s Jungle Parkway.}}&lt;br /&gt;
|-&lt;br /&gt;
| 0x1A || UInt16 || {{Unknown-left|&amp;#039;&amp;#039;&amp;#039;Unknown&amp;#039;&amp;#039;&amp;#039;.}}&lt;br /&gt;
|-&lt;br /&gt;
| 0x1C || colspan=2 {{unknown|End of fog entry}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
= Tools =&lt;br /&gt;
The following tools can handle BFG files:&lt;br /&gt;
* [[FogConv]], by [[Atlas]]&lt;br /&gt;
* [[Post-Effect Editor]], by [[Wexos]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Mario Kart Wii File Formats]]&lt;/div&gt;</summary>
		<author><name>Wexos</name></author>
	</entry>
</feed>