Environment Track Data: Difference between revisions

m
no edit summary
(ps2 enviro's actually contain 2 info structs)
mNo edit summary
 
(2 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]].''
{{todo|<small>Document version 0x04, used by Dominator <sup>(PSP)</sup>, which is slightly different to version 0x03</small>}}
 
{{todo|<small>Document version 0x04.</small>}}
This format is used to store lighting/weather values and skybox textures for a given track environment. It uses the filename <code>ENVIRO.DAT</code>.
 
ThisThe '''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>.
= Layout =
 
=== Version 0x02 (PS2, Xbox) ===
= 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 (PS2, Xbox) ===
{|class="wikitable"
|-
Line 13 ⟶ 26:
! Notes
|-
| 0x00 || Minimum environment info || [[Environment_Track_Data#Environment_Info|Environment Info]] || ||
|-
| 0x30 || Maximum environment info || Environment Info || ||
|-
| 0x60 || Specular color || CGtRGB[[Common Data Types#GtRGB|GtRGB]] || ||
|-
| 0x70 || Sun color || CGtRGBGtRGB || ||
|-
| 0x80 || Sun position || Vector3[[Common Data Types#GtV3d|GtV3d]] || ||
|-
| 0x90 || Sun corona radius || float || ||
Line 27 ⟶ 40:
| 0x94 || Is sun moon? || bool || ||
|-
| 0x98 || Gradient texture || CGtTextureGtTexture* || ||
|-
| 0x9C || Cloud texture || CGtTextureGtTexture* || ||
|-
| 0xA0 || Cloud environment map texture || CGtTextureGtTexture* || ||
|-
| 0xA4 || Sun/moon texture || CGtTextureGtTexture* || ||
|-
| 0xA8 || Version number || uint || 0x02 ||
|-
| 0xAC || File size (bytes) || uint || || Is unused in Revenge/Dominator.
|}
 
Line 49 ⟶ 62:
! Notes
|-
| 0x00 || Fog color || CGtRGBGtRGB || ||
|-
| 0x10 || Fog distance || float || ||
Line 69 ⟶ 82:
|}
 
=== Layout (Version 0x03 (PSP, Legends) ===
{|class="wikitable"
|-
Line 80 ⟶ 93:
| 0x00 || Unused data || float<br>int || ||
|-
| 0x98 || Texture offsets || [[Common_Data_Types#PSP|Texture]]GtTexture*[6] || ||
|-
! colspan="5" | Fog settings
|-
| 0xB0 || Draw fog || bool || ||
Line 90 ⟶ 101:
| 0xB8 || Fog end distance || float || ||
|-
| 0xC0 || Fog color || CGtRGBGtRGB || ||
|-
| 0xD0 || Light position || GtV3d || ||
! colspan="5" | Vehicle lighting settings
|-
| 0xD00xE0 || LightAmbient positionlighting color || Vector3GtRGB || ||
|-
| 0xE00xF0 || AmbientDiffuse lighting color || CGtRGBGtRGB || ||
|-
| 0xF00x100 || DiffuseSpecular lighting color || CGtRGBGtRGB || ||
|-
| 0x110 || Ambient lighting color (tunnel) || CGtRGBGtRGB || || 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.
| 0x100 || Specular lighting color || CGtRGB || ||
|-
| 0x1000x120 || SpecularDiffuse lighting color (tunnel) || CGtRGBGtRGB || ||
| 0x110 || Ambient lighting color (tunnel) || CGtRGB || || 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.
|-
| 0x1200x130 || DiffuseSpecular lighting color (tunnel) || CGtRGBGtRGB || ||
|-
| 0x130 || Specular lighting color (tunnel) || CGtRGB || ||
|-
| 0x140 || Specular lighting coefficient || float || || Intensity of the specular lighting applied to the vehicle.
|-
| 0x144 || Specular lighting coefficient (tunnel) || float || ||
|-
! colspan="5" | Bloom settings
|-
| 0x148 || Draw bloom || bool || 0x01 ||
Line 121 ⟶ 128:
|-
| 0x154 || Bloom blur factor || float || ||
|-
! colspan="5" | Sun settings
|-
| 0x158 || Draw sun || bool || 0x01 ||
Line 134 ⟶ 139:
| 0x168 || Number of sun copies || int || ||
|-
| 0x170 || Sun color || CGtRGBGtRGB || ||
|-
| 0x180 || Sun core color || CGtRGBGtRGB || ||
|-
| 0x190 || Sun position || Vector3GtV3d || ||
|-
| 0x1A0 || Draw sun corona || bool || 0x01 ||
Line 146 ⟶ 151:
| 0x1A8 || Sun corona Y-size || float || ||
|-
| 0x1B0 || Sun corona color || CGtRGBGtRGB || ||
|-
| 0x1C0 || Enable/disable sun blur occlusion || bool || ||
Line 156 ⟶ 161:
| 0x1CC || File size (bytes) || uint || ||
|}
 
 
[[Category:Formats_(Takedown-Dominator)]]