Environment Track Data: Difference between revisions

m
no edit summary
mNo edit summary
 
(13 intermediate revisions by the same user 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>}}
= Header =
=== PS2 (WIP) ===
 
The '''Environment Data''' format is used to store 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="3" | Version
|-
! 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>0x04Maximum ||environment Float32info || FogEnvironment hueInfo (red)|| ||
|-
| <tt>0x040x60 || <tt>0x04Specular || Float32color || Fog[[Common hueData (green)Types#GtRGB|GtRGB]] || ||
|-
| <tt>0x080x70 || <tt>0x04Sun color || Float32GtRGB || Fog hue (blue) ||
|-
| <tt>0x100x80 || <tt>0x04Sun || Float32position || Fog[[Common startData distanceTypes#GtV3d|GtV3d]] || ||
|-
| <tt>0x140x90 || <tt>0x04Sun ||corona Float32radius || Fogfloat intensity|| ||
|-
| <tt>0x1C0x94 || <tt>0x04Is sun moon? || Float32bool || Specular lighting intensity ||
|-
| <tt>0x200x98 || <tt>0x04Gradient texture || Float32GtTexture* || Sun corona intensity ||
|-
| <tt>0x600x9C || <tt>0x04Cloud texture || Float32GtTexture* || Specular lighting hue (red) ||
|-
| 0xA0 || Cloud environment map texture || GtTexture* || ||
| <tt>0x64 || <tt>0x04 || Float32 || Specular lighting hue (green) ||
|-
| <tt>0x680xA4 || <tt>0x04Sun/moon texture || Float32GtTexture* || Specular lighting hue (blue) ||
|-
| <tt>0x700xA8 || <tt>0x04Version number || Float32uint || Sun corona hue (red)0x02 ||
|-
| 0xAC || File size (bytes) || uint || || Is unused in Revenge/Dominator.
| <tt>0x74 || <tt>0x04 || Float32 || Sun corona hue (green) ||
|-
| <tt>0x78 || <tt>0x04 || Float32 || Sun corona hue (blue) ||
|-
| <tt>0x80 || <tt>0x04 || Float32 || Sun X Position ||
|-
| <tt>0x84 || <tt>0x04 || Float32 || Sun Y Position ||
|-
| <tt>0x88 || <tt>0x04 || Float32 || Sun Z Position ||
|-
| <tt>0x90 || <tt>0x04 || Float32 || Sun corona radius ||
|-
| <tt>0x98 || <tt>0x10 || CGtTexture*[4] || Texture offsets ||
|}
 
==== PSPEnvironment (Revision 1)Info ====
<!-- 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.
 
{|class="wikitable"
|-
! Offset
! LengthName
! Type
! Value
! Description
! DetailsNotes
|-
| <tt>0x00 || <tt>0x98Fog color || Float32/UInt32GtRGB || Unused data ||
|-
| 0x10 || Fog distance || float || ||
| <tt>0x98 || <tt>0x14 || [[Texture_(PSP)|Texture]]*[5] || Texture offsets ||
|-
| 0x14 || World fog intensity || float || ||
! colspan="5" | Fog settings
|-
| 0x18 || Sky fog intensity || float || ||
| <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>0xB40x1C || <tt>0x04Specular lighting intensity || Float32float || Fog start distance ||
|-
| <tt>0xB80x20 || <tt>0x04Sun corona intensity || Float32float || Fog end distance ||
|-
| <tt>0xC00x24 || <tt>0x04Precipitation || Float32float || Fog hue (red) ||
|-
| <tt>0xC40x28 || <tt>0x04Star intensity || Float32float || Fog hue (green) ||
|-
| <tt>0xC80x2C || <tt>0x04Overall brightness || Float32float || Fog hue (blue) ||
|-
|}
! colspan="5" | Lighting settings
 
= Layout (Version 0x03) =
{|class="wikitable"
|-
! Offset
| <tt>0xD0 || <tt>0x04 || Float32 || Light vector X-position ||
! Name
! Type
! Value
! Notes
|-
| <tt>0xD40x00 || <tt>0x04Unused data || Float32float<br>int || Light vector Y-position ||
|-
| <tt>0xD80x98 || <tt>0x04Texture offsets || Float32GtTexture*[6] || Light vector Z-position ||
|-
| <tt>0xE00xB0 || <tt>0x04Draw fog || Float32bool || Ambient lighting hue (red) ||
|-
| <tt>0xE40xB4 || <tt>0x04Fog start distance || Float32float || Ambient lighting hue (green) ||
|-
| <tt>0xE80xB8 || <tt>0x04Fog end distance || Float32float || Ambient lighting hue (blue) ||
|-
| <tt>0xF00xC0 || <tt>0x04Fog color || Float32GtRGB || Diffuse lighting hue (red) ||
|-
| <tt>0xF40xD0 || <tt>0x04Light position || Float32GtV3d || Diffuse lighting hue (green) ||
|-
| 0xE0 || Ambient lighting color || GtRGB || ||
| <tt>0xF8 || <tt>0x04 || Float32 || Diffuse lighting hue (blue) ||
|-
| 0xF0 || Diffuse lighting color || GtRGB || ||
| <tt>0x100 || <tt>0x04 || Float32 || Specular lighting hue (red) ||
|-
| 0x100 || Specular lighting color || GtRGB || ||
| <tt>0x104 || <tt>0x04 || Float32 || Specular lighting hue (green) ||
|-
| 0x110 || Ambient lighting color (tunnel) || GtRGB || || All values from here to 0x138</tt> (as well as 0x144</tt>'s value) are<br> only applied to the vehicle when it has entered a tunnel or overpass.
| <tt>0x108 || <tt>0x04 || Float32 || Specular lighting hue (blue) ||
|-
| 0x120 || Diffuse lighting color (tunnel) || GtRGB || ||
| <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.
|-
| 0x130 || Specular lighting color (tunnel) || GtRGB || ||
| <tt>0x114 || <tt>0x04 || Float32 || Ambient lighting hue (green, tunnel) ||
|-
| <tt>0x1180x140 || <tt>0x04Specular lighting coefficient || Float32float || Ambient|| Intensity of the specular lighting hueapplied (blue,to tunnel)the ||vehicle.
|-
| 0x144 || Specular lighting coefficient (tunnel) || float || ||
| <tt>0x120 || <tt>0x04 || Float32 || Diffuse lighting hue (red, tunnel) ||
|-
| <tt>0x1240x148 || <tt>0x04Draw bloom || Float32bool || Diffuse lighting hue (green, tunnel)0x01 ||
|-
| 0x14C || Bloom intensity || int || ||
| <tt>0x128 || <tt>0x04 || Float32 || Diffuse lighting hue (blue, tunnel) ||
|-
| 0x150 || Bloom additive amount || int32 || ||
| <tt>0x130 || <tt>0x04 || Float32 || Specular lighting hue (red, tunnel) ||
|-
| 0x154 || Bloom blur factor || float || ||
| <tt>0x134 || <tt>0x04 || Float32 || Specular lighting hue (green, tunnel) ||
|-
| <tt>0x1380x158 || <tt>0x04Draw sun || Float32bool || Specular lighting hue (blue, tunnel)0x01 ||
|-
| 0x15C || Sun size || int32 || ||
| <tt>0x140 || <tt>0x04 || Float32 || Specular lighting coefficient || Intensity of the specular lighting applied to the car.
|-
| 0x160 || Sun X-scale || float || ||
| <tt>0x144 || <tt>0x04 || Float32 || Specular lighting coefficient (tunnel) ||
|-
| 0x164 || Sun Y-scale || float || ||
! colspan="5" | Bloom settings
|-
| <tt>0x1480x168 || <tt>0x01Number ||of UInt8sun copies || Enable/disableint bloom|| ||
|-
| <tt>0x1500x170 || <tt>0x04Sun color || UInt32GtRGB || Bloom additive amount ||
|-
| <tt>0x1540x180 || <tt>0x04Sun core color || FloatGtRGB || Bloom blur factor ||
|-
| 0x190 || Sun position || GtV3d || ||
! colspan="5" | Sun settings
|-
| <tt>0x1580x1A0 || <tt>0x04Draw sun corona || UInt8bool || Enable/disable sun0x01 ||
|-
| <tt>0x15C0x1A4 || <tt>0x04Sun ||corona UInt32X-size || Sunfloat size|| ||
|-
| <tt>0x1600x1A8 || <tt>0x04Sun ||corona Float32Y-size || Sunfloat X-scale|| ||
|-
| <tt>0x1600x1B0 || <tt>0x04Sun ||corona Float32color || SunGtRGB Y-scale|| ||
|-
| 0x1C0 || Enable/disable sun blur occlusion || bool || ||
| <tt>0x168 || <tt>0x04 || UInt32 || Number of sun copies ||
|-
| <tt>0x1700x1C4 || <tt>0x04 ||Sun Float32blur offset || Sunfloat hue (red)|| ||
|-
| <tt>0x1740x1C8 || <tt>0x04 ||Version Float32number || Sunuint hue|| (green)0x03 ||
|-
| <tt>0x1780x1CC || <tt>0x04 ||File Float32size (bytes) || Sunuint hue (blue)|| ||
|-
| <tt>0x180 || <tt>0x04 || Float32 || Sun core hue (red) ||
|-
| <tt>0x184 || <tt>0x04 || Float32 || Sun core hue (green) ||
|-
| <tt>0x188 || <tt>0x04 || Float32 || Sun core hue (blue) ||
|-
| <tt>0x190 || <tt>0x04 || Float32 || Sun X Vector ||
|-
| <tt>0x194 || <tt>0x04 || Float32 || Sun Y Vector ||
|-
| <tt>0x198 || <tt>0x04 || Float32 || Sun Z Vector ||
|-
| <tt>0x1A0 || <tt>0x01 || UInt8 || Enable/disable sun corona ||
|-
| <tt>0x1A4 || <tt>0x04 || Float32 || Sun corona X-size ||
|-
| <tt>0x1A8 || <tt>0x04 || Float32 || Sun corona Y-size ||
|-
| <tt>0x1B0 || <tt>0x04 || Float32 || Sun corona hue (red) ||
|-
| <tt>0x1B4 || <tt>0x04 || Float32 || Sun corona hue (green) ||
|-
| <tt>0x1B8 || <tt>0x04 || Float32 || Sun corona hue (blue) ||
|-
| <tt>0x1C0 || <tt>0x01 || UInt8 || Enable/disable sun blur occlusion ||
|-
| <tt>0x1C4 || <tt>0x04 || Float32 || Sun blur offset ||
|}
 
 
[[Category:Formats_(Takedown-Dominator)]]