Environment Track Data: Difference between revisions

m
no edit summary
(Simplify type names)
mNo edit summary
 
(32 intermediate revisions by 3 users not shown)
Line 1:
''Not to be confused with [[Burnout Game Data (Takedown-Dominator)#Environment Slice|Environment Slice]], a subtype of [[Burnout Game Data (Takedown-Dominator)|Burnout Game Data]].''
The '''Environment Slice''' container format is used to store track environment lighting/weather values and skybox textures. It uses the filename <code>ENVIRO.DAT</code>.
 
{{todo|<small>Document version 0x04.</small>}}
= Layout =
=== PSP (Revision 1) ===
<!-- TODO: Document Dom PSP aka revision 2's enviro layout -->
Note that this layout applies specifically to Burnout Legends. Burnout Dominator<sup>(PSP)</sup> uses a slightly updated revision of this format, and as such its layout is similar but not identical to this one.
 
The '''Environment SliceData''' container format is used to store track environment lighting/weather values and skybox textures for a given track environment. It uses the filename <code>ENVIRO.DAT</code>.
 
= Versions =
{| class="wikitable"
! rowspan="2" |
! colspan="53" | Fog settingsVersion
|-
! 0x02 || 0x03 || 0x04
|-
| Date || Jul 2004 || Jun 2005 || Jan 2007
|-
| Games || Takedown<br>Revenge<br>Dominator<sup>(PS2)</sup> || Legends || Dominator<sup>(PSP)</sup>
|}
 
= Layout (Version 0x02) =
{|class="wikitable"
|-
! Offset
! LengthName
! Type
! Value
! Description
! DetailsNotes
|-
| 0x00 || Minimum environment info || Environment Info || ||
|-
| <tt>0x000x30 || <tt>0x98Maximum environment info || 32-bitEnvironment NumericInfo || Unused data ||
|-
| <tt>0x980x60 || <tt>0x14Specular || UInt32color || Texture[[Common pointerData tableTypes#GtRGB|GtRGB]] || ||
|-
| 0x70 || Sun color || GtRGB || ||
! colspan="5" | Fog settings
|-
| 0x80 || Sun position || [[Common Data Types#GtV3d|GtV3d]] || ||
| <tt>0xB0 || <tt>0x01 || UInt8 || Enable/disable fog || <tt>0x00</tt> = disabled; <tt>0x01</tt> = enabled. This applies for all other boolean values in the header.
|-
| <tt>0xB40x90 || <tt>0x04Sun corona radius || Float32float || Fog start distance ||
|-
| <tt>0xB80x94 || <tt>0x04Is sun moon? || Float32bool || Fog end distance ||
|-
| <tt>0xC00x98 || <tt>0x04Gradient texture || Float32GtTexture* || Fog hue (red) ||
|-
| <tt>0xC40x9C || <tt>0x04Cloud texture || Float32GtTexture* || Fog hue (green) ||
|-
| <tt>0xC80xA0 || <tt>0x04Cloud ||environment Float32map texture || FogGtTexture* hue (blue)|| ||
|-
| 0xA4 || Sun/moon texture || GtTexture* || ||
! colspan="5" | Lighting settings
|-
| <tt>0xD00xA8 || <tt>0x04Version number || Float32uint || Light vector X-position0x02 ||
|-
| 0xAC || File size (bytes) || uint || || Is unused in Revenge/Dominator.
| <tt>0xD4 || <tt>0x04 || Float32 || Light vector Y-position ||
|}
 
==== Environment Info ====
{|class="wikitable"
|-
! Offset
| <tt>0xD8 || <tt>0x04 || Float32 || Light vector Z-position ||
! Name
! Type
! Value
! Notes
|-
| <tt>0xE00x00 || <tt>0x04Fog color || Float32GtRGB || Ambient lighting hue (red) ||
|-
| <tt>0xE40x10 || <tt>0x04Fog distance || Float32float || Ambient lighting hue (green) ||
|-
| <tt>0xE80x14 || <tt>0x04World fog intensity || Float32float || Ambient lighting hue (blue) ||
|-
| <tt>0xF00x18 || <tt>0x04Sky fog intensity || Float32float || Diffuse lighting hue (red) ||
|-
| 0x1C || Specular lighting intensity || float || ||
| <tt>0xF4 || <tt>0x04 || Float32 || Diffuse lighting hue (green) ||
|-
| <tt>0xF80x20 || <tt>0x04Sun corona intensity || Float32float || Diffuse lighting hue (blue) ||
|-
| <tt>0x1000x24 || <tt>0x04Precipitation || Float32float || Specular lighting hue (red) ||
|-
| <tt>0x1040x28 || <tt>0x04Star intensity || Float32float || Specular lighting hue (green) ||
|-
| <tt>0x1080x2C || <tt>0x04Overall brightness || Float32float || Specular lighting hue (blue) ||
|-
|}
| <tt>0x110 || <tt>0x04 || Float32 || Ambient lighting hue (red, tunnel) || All values from here to <tt>0x138</tt> (as well as <tt>0x144</tt>'s value) are only applied to the vehicle when it has entered a tunnel or overpass.
 
= Layout (Version 0x03) =
{|class="wikitable"
|-
! Offset
| <tt>0x114 || <tt>0x04 || Float32 || Ambient lighting hue (green, tunnel) ||
! Name
! Type
! Value
! Notes
|-
| 0x00 || Unused data || float<br>int || ||
| <tt>0x118 || <tt>0x04 || Float32 || Ambient lighting hue (blue, tunnel) ||
|-
| 0x98 || Texture offsets || GtTexture*[6] || ||
| <tt>0x120 || <tt>0x04 || Float32 || Diffuse lighting hue (red, tunnel) ||
|-
| <tt>0x1240xB0 || <tt>0x04Draw fog || Float32bool || Diffuse lighting hue (green, tunnel) ||
|-
| 0xB4 || Fog start distance || float || ||
| <tt>0x128 || <tt>0x04 || Float32 || Diffuse lighting hue (blue, tunnel) ||
|-
| 0xB8 || Fog end distance || float || ||
| <tt>0x130 || <tt>0x04 || Float32 || Specular lighting hue (red, tunnel) ||
|-
| <tt>0x1340xC0 || <tt>0x04Fog color || Float32GtRGB || Specular lighting hue (green, tunnel) ||
|-
| 0xD0 || Light position || GtV3d || ||
| <tt>0x138 || <tt>0x04 || Float32 || Specular lighting hue (blue, tunnel) ||
|-
| 0xE0 || Ambient lighting color || GtRGB || ||
| <tt>0x140 || <tt>0x04 || Float32 || Specular lighting coefficient || Intensity of the specular lighting applied to the car.
|-
| 0xF0 || Diffuse lighting color || GtRGB || ||
| <tt>0x144 || <tt>0x04 || Float32 || Specular lighting coefficient (tunnel) ||
|-
| 0x100 || Specular lighting color || GtRGB || ||
! colspan="5" | Bloom settings
|-
| <tt>0x110 || <tt>0x04 || Float32 || Ambient lighting huecolor (red, tunnel) || GtRGB || || All values from here to <tt>0x138</tt> (as well as <tt>0x144</tt>'s value) are<br> only applied to the vehicle when it has entered a tunnel or overpass.
| <tt>0x148 || <tt>0x01 || UInt8 || Enable/disable bloom ||
|-
| <tt>0x1500x120 || <tt>0x04Diffuse ||lighting UInt32color (tunnel) || BloomGtRGB additive amount|| ||
|-
| <tt>0x1540x130 || <tt>0x04Specular ||lighting UInt32color (tunnel) || BloomGtRGB blur factor|| ||
|-
| <tt>0x140 || <tt>0x04Specular lighting coefficient || Float32float || Specular lighting coefficient || Intensity of the specular lighting applied to the carvehicle.
! colspan="5" | Sun settings
|-
| <tt>0x1580x144 || <tt>0x04Specular ||lighting UInt8coefficient (tunnel) || Enable/disablefloat sun|| ||
|-
| <tt>0x15C0x148 || <tt>0x04Draw bloom || UInt32bool || Sun size0x01 ||
|-
| <tt>0x1600x14C || <tt>0x04Bloom intensity || Float32int || Sun X-scale ||
|-
| <tt>0x1600x150 || <tt>0x04Bloom ||additive Float32amount || Sunint32 Y-scale|| ||
|-
| <tt>0x1640x154 || <tt>0x04Bloom blur factor || UInt32float || Number of sun copies ||
|-
| <tt>0x1700x158 || <tt>0x04 ||Draw Float32sun || Sunbool hue|| (red)0x01 ||
|-
| <tt>0x1740x15C || <tt>0x04 Sun size || Float32int32 || Sun hue (green) ||
|-
| <tt>0x1780x160 || <tt>0x04 Sun X-scale || Float32float || Sun hue (blue) ||
|-
| <tt>0x1800x164 || <tt>0x04 Sun Y-scale || Float32float || Sun core hue (red) ||
|-
| <tt>0x1840x168 || <tt>0x04Number of sun copies || Float32int || Sun core hue (green) ||
|-
| <tt>0x1880x170 || <tt>0x04Sun color || Float32GtRGB || Sun core hue (blue) ||
|-
| <tt>0x1900x180 || <tt>0x04Sun core color || Float32GtRGB || Sun X Vector ||
|-
| <tt>0x1940x190 || <tt>0x04Sun position || Float32GtV3d || Sun Y Vector ||
|-
| <tt>0x1980x1A0 || <tt>0x04Draw ||sun Float32corona || Sunbool Z|| Vector0x01 ||
|-
| <tt>0x1A00x1A4 || <tt>0x01Sun corona X-size || UInt8float || Enable/disable sun corona ||
|-
| <tt>0x1A40x1A8 || <tt>0x04Sun corona Y-size || Float32float || Sun corona X-size ||
|-
| <tt>0x1A80x1B0 || <tt>0x04Sun corona color || Float32GtRGB || Sun corona Y-size ||
|-
| <tt>0x1C0 || <tt>0x01 || UInt8 || Enable/disable sun blur occlusion || bool || ||
| <tt>0x1B0 || <tt>0x04 || Float32 || Sun corona hue (red) ||
|-
| <tt>0x1B40x1C4 || <tt>0x04Sun blur offset || Float32float || Sun corona hue (green) ||
|-
| <tt>0x1B80x1C8 || <tt>0x04Version number || Float32uint || Sun corona hue (blue)0x03 ||
|-
| 0x1CC || File size (bytes) || uint || ||
| <tt>0x1C0 || <tt>0x01 || UInt8 || Enable/disable sun blur occlusion ||
|-
| <tt>0x1C4 || <tt>0x04 || Float32 || Sun blur offset ||
|}
 
 
[[Category:Formats_(Takedown-Dominator)]]