Environment Keyframe: Difference between revisions

Added infobox and normalized some content.
(Created page with "=== Keyframe === {| class="wikitable" ! Offset !! Size !! Type !! Name !! Description !! More Information !! Comments |- | 0x0 || 0x4 || uint32_t || muVersion || || 8 || |- | 0x4 || 0xC || || || padding || || |- | 0x10 || 0x20 || BloomData || mBloomData || || BloomData format || |- | 0x30 || 0x50 || VignetteData || mVignetteData || || VignetteData format || |- | 0x80 || 0x4 || TintData || mTintData || || TintData format || |- | 0x84 || 0xC || || || padding...")
 
(Added infobox and normalized some content.)
 
(5 intermediate revisions by 2 users not shown)
Line 1:
{{ParadiseResourceTypeInfobox
=== Keyframe ===
| name = EnvironmentKeyframe
| id = 0x10012
| category = Game-specific<br />(Burnout Paradise)
| memdist = Main Memory only
| imports = [[Colour Cube]]
}}
 
Keyframe resources are the primary way to control the environment lighting and effects such as tint and bloom.
 
= Structures =
=== BrnWorld::EnvironmentSettings::Keyframe ===
==== 32-bit ====
{| class="wikitable"
! Offset !! SizeLength !! Type !! Name !! Description !! More Information !! Comments
|-
| 0x0 || 0x4 || uint32_t || muVersion || || 8 ||
|-
| 0x4 || 0xC || || || padding || Padding ||
|-
| 0x10 || 0x20 || [[#BrnEffects::BloomData|BloomData]] || mBloomData || || BloomData format ||
|-
| 0x30 || 0x50 || [[#BrnEffects::VignetteData|VignetteData]] || mVignetteData || || VignetteData format ||
|-
| 0x80 || 0x4 || [[#BrnEffects::TintData|TintData]] || mTintData || || TintData format ||
|-
| 0x84 || 0xC || || || padding || Padding ||
|-
| 0x90 || 0xB0 || [[#BrnWorld::EnvironmentSettings::ScatteringData|ScatteringData]] || mScatteringData || || ScatteringData format ||
|-
| 0x140 || 0x90 || [[#BrnWorld::EnvironmentSettings::LightingData|LightingData]] || mLightingData || || LightingData format ||
|-
| 0x1D0 || 0x70 || [[#BrnWorld::EnvironmentSettings::CloudsData|CloudsData]] || mCloudsData || || CloudsData format ||
|}
 
==== BloomData64-bit ====
 
{| class="wikitable"
! Offset !! SizeLength !! Type !! Name !! Description !! More Information !! Comments
|-
| 0x0 || 0x4 || float32_t || mfLuminanceuint32_t || muVersion || || 8
|-
| 0x4 || 0x40xC || float32_t || mfThreshold || || Padding ||
|-
| 0x80x10 || 0x80x20 || [[#BrnEffects::BloomData|| BloomData]] || paddingmBloomData || ||
|-
| 0x100x30 || 0x100x50 || Vector4 [[#BrnEffects::VignetteData|| mv4ScaleVignetteData]] || mVignetteData || ||
|}
 
=== VignetteData ===
 
{| class="wikitable"
! Offset !! Size !! Type !! Name !! Description !! More Information !! Comments
|-
| 0x00x80 || 0x40x8 || float32_t [[#BrnEffects::TintData|| mfAngleTintData]] || mTintData || ||
|-
| 0x40x88 || 0x40x8 || float32_t || mfSharpness || || Padding ||
|-
| 0x80x90 || 0x80xB0 || [[#BrnWorld::EnvironmentSettings::ScatteringData|| ScatteringData]] || paddingmScatteringData || ||
|-
| 0x100x140 || 0x100x90 || Vector2 [[#BrnWorld::EnvironmentSettings::LightingData|| mv2AmountLightingData]] || mLightingData || ||
|-
| 0x200x1D0 || 0x100x70 || Vector2 [[#BrnWorld::EnvironmentSettings::CloudsData|| mv2CentreCloudsData]] || mCloudsData || ||
|-
| 0x30 || 0x10 || Vector4 || mv4InnerColour || || ||
|-
| 0x40 || 0x10 || Vector4 || mv4OuterColour || || ||
|}
 
=== TintDataBrnEffects::BloomData ===
 
{| class="wikitable"
! Offset !! SizeLength !! Type !! Name !! Description !! More Information !! Comments
|-
| 0x0 || 0x4 || ColourCube * || mpColourCube || || ||
|}
 
=== ScatteringData ===
 
{| class="wikitable"
! Offset !! Size !! Type !! Name !! Description !! More Information !! Comments
|-
| 0x0 || 0x10 || Vector3 || mv3SkyTopColour || || ||
|-
| 0x10 || 0x10 || Vector3 || mv3SkyHorColour || || ||
|-
| 0x20 || 0x10 || Vector3 || mv3SkySunColour || || ||
|-
| 0x30 || 0x4 || float32_t || mfSkyHorPow || || ||
|-
| 0x34 || 0x4 || float32_t || mfSkySunPow || || ||
|-
| 0x38 || 0x4 || float32_t || mfSkyDrk || || ||
|-
| 0x3C || 0x4 || float32_t || mfSkyHorBleedScl || || ||
|-
| 0x40 || 0x4 || float32_t || mfSkyHorBleedPow || || ||
|-
| 0x44 || 0x4 || float32_t || mfSkySunBleedPow || || ||
|-
| 0x48 || 0x8 || || || padding || ||
|-
| 0x50 || 0x10 || Vector3 || mv3ScattTopColour || || ||
|-
| 0x60 || 0x10 || Vector3 || mv3ScattHorColour || || ||
|-
| 0x70 || 0x10 || Vector3 || mv3ScattSunColour || || ||
|-
| 0x80 || 0x4 || float32_t || mfScattHorPow || || ||
|-
| 0x84 || 0x4 || float32_t || mfScattSunPow || || ||
|-
| 0x88 || 0x4 || float32_t || mfScattDrk || || ||
|-
| 0x8C || 0x4 || float32_t || mfScattHorBleedScl || || ||
|-
| 0x90 || 0x4 || float32_t || mfScattHorBleedPow || || ||
|-
| 0x94 || 0x4 || float32_t || mfScattSunBleedPow || || ||
|-
| 0x980x0 || 0x80x4 || float32_t[2] || mafScattDist || mfLuminance || ||
|-
| 0xA00x4 || 0x4 || float32_t || mfScattPow || mfThreshold || ||
|-
| 0xA40x8 || 0x40x8 || float32_t || mfScattCap || || Padding ||
|-
| 0xA80x10 || 0x80x10 || [[Vector4]] || || paddingmv4Scale || ||
|}
 
=== LightningDataBrnEffects::VignetteData ===
{| class="wikitable"
! Offset !! SizeLength !! Type !! Name !! Description !! More Information !! Comments
|-
| 0x0 || 0x100x4 || Vector3 || mv3KeyLightColourfloat32_t || mfAngle || ||
|-
| 0x100x4 || 0x100x4 || Vector3 || mv3SpecularColourfloat32_t || mfSharpness || ||
|-
| 0x200x8 || 0x100x8 || Vector3 || mv3KeyFillColour || || Padding ||
|-
| 0x300x10 || 0x10 || Vector3 || mv3ShadowFillColour[[Vector2]] || mv2Amount || ||
|-
| 0x400x20 || 0x10 || Vector3 || mv3RightFillColour[[Vector2]] || mv2Centre || ||
|-
| 0x500x30 || 0x10 || Vector3 || mv3LeftFillColour[[Vector4]] || mv4InnerColour || ||
|-
| 0x600x40 || 0x10 || Vector3 || mv3UpFillColour[[Vector4]] || mv4OuterColour || ||
|-
| 0x70 || 0x10 || Vector3 || mv3DownFillColour || || ||
|-
| 0x80 || 0x4 || float32_t || mfAmbientIrradianceScale || || ||
|-
| 0x84 || 0xC || || || padding || ||
|}
 
=== CloudsDataBrnEffects::TintData ===
==== 32-bit ====
 
{| class="wikitable"
! Offset !! SizeLength !! Type !! Name !! Description !! More Information !! Comments
|-
| 0x0 || 0x20 || Vector3[2] || mav3LayerLiteColour || || ||
|-
| 0x20 || 0x20 || Vector3[2] || mav3LayerDarkColour || || ||
|-
| 0x40 || 0x8 || float32_t[2] || mafLayerDensity || || ||
|-
| 0x48 || 0x8 || float32_t[2] || mafLayerFeathering || || ||
|-
| 0x50 || 0x8 || float32_t[2] || mafLayerOpacity || || ||
|-
| 0x58 || 0x8 || float32_t[2] || mafLayerSpeed || || ||
|-
| 0x60 || 0x8 || float32_t[2] || mafLayerScale || || ||
|-
| 0x68 || 0x4 || float32_t || mfDirectionAngle || || ||
|-
| 0x6C0x0 || 0x4 || [[Colour Cube|| ColourCube]]* || paddingmpColourCube || ||
|}
 
==== PS464-bit ====
=== Keyframe ===
{| class="wikitable"
! Offset !! SizeLength !! Type !! Name !! Description !! More Information !! Comments
|-
| 0x0 || 0x40x8 || uint32_t[[Colour Cube|| muVersionColourCube]]* || mpColourCube || 8 ||
|-
| 0x4 || 0xC || || || padding || ||
|-
| 0x10 || 0x20 || BloomData || mBloomData || || BloomData format ||
|-
| 0x30 || 0x50 || VignetteData || mVignetteData || || VignetteData format ||
|-
| 0x80 || 0x4 || TintData || mTintData || || TintData format ||
|-
| 0x84 || 0xC || || || padding || ||
|-
| 0x90 || 0xB0 || ScatteringData || mScatteringData || || ScatteringData format ||
|-
| 0x140 || 0x90 || LightingData || mLightingData || || LightingData format ||
|-
| 0x1D0 || 0x70 || CloudsData || mCloudsData || || CloudsData format ||
|}
 
=== BloomData ===
=== BrnWorld::EnvironmentSettings::ScatteringData ===
{| class="wikitable"
! Offset !! SizeLength !! Type !! Name !! Description !! More Information !! Comments
|-
| 0x0 || 0x40x10 || float32_t || mfLuminance[[Vector3]] || mv3SkyTopColour || ||
|-
| 0x40x10 || 0x40x10 || float32_t || mfThreshold[[Vector3]] || mv3SkyHorColour || ||
|-
| 0x80x20 || 0x80x10 || [[Vector3]] || || paddingmv3SkySunColour || ||
|-
| 0x100x30 || 0x100x4 || Vector4 || mv4Scalefloat32_t || mfSkyHorPow || ||
|}
=== VignetteData ===
{| class="wikitable"
! Offset !! Size !! Type !! Name !! Description !! More Information !! Comments
|-
| 0x00x34 || 0x4 || float32_t || mfAngle || mfSkySunPow || ||
|-
| 0x40x38 || 0x4 || float32_t || mfSharpness || mfSkyDrk || ||
|-
| 0x80x3C || 0x80x4 || float32_t || || paddingmfSkyHorBleedScl || ||
|-
| 0x100x40 || 0x100x4 || Vector2 || mv2Amountfloat32_t || mfSkyHorBleedPow || ||
|-
| 0x200x44 || 0x100x4 || Vector2 || mv2Centrefloat32_t || mfSkySunBleedPow || ||
|-
| 0x300x48 || 0x100x8 || Vector4 || mv4InnerColour || || Padding ||
|-
| 0x400x50 || 0x10 || Vector4 || mv4OuterColour[[Vector3]] || mv3ScattTopColour || ||
|}
=== TintData ===
{| class="wikitable"
! Offset !! Size !! Type !! Name !! Description !! More Information !! Comments
|-
| 0x00x60 || 0x80x10 || ColourCube * || mpColourCube[[Vector3]] || mv3ScattHorColour || ||
|}
=== ScatteringData ===
{| class="wikitable"
! Offset !! Size !! Type !! Name !! Description !! More Information !! Comments
|-
| 0x00x70 || 0x10 || [[Vector3]] || mv3SkyTopColour || mv3ScattSunColour || ||
|-
| 0x100x80 || 0x100x4 || Vector3 || mv3SkyHorColourfloat32_t || mfScattHorPow || ||
|-
| 0x200x84 || 0x100x4 || Vector3 || mv3SkySunColourfloat32_t || mfScattSunPow || ||
|-
| 0x300x88 || 0x4 || float32_t || mfSkyHorPow || mfScattDrk || ||
|-
| 0x340x8C || 0x4 || float32_t || mfSkySunPow || mfScattHorBleedScl || ||
|-
| 0x380x90 || 0x4 || float32_t || mfSkyDrk || mfScattHorBleedPow || ||
|-
| 0x3C0x94 || 0x4 || float32_t || mfSkyHorBleedScl || mfScattSunBleedPow || ||
|-
| 0x400x98 || 0x40x8 || float32_t[2] || mfSkyHorBleedPow || mafScattDist || ||
|-
| 0x440xA0 || 0x4 || float32_t || mfSkySunBleedPow || mfScattPow || ||
|-
| 0x480xA4 || 0x80x4 || float32_t || || paddingmfScattCap || ||
|-
| 0x500xA8 || 0x100x8 || Vector3 || mv3ScattTopColour || || Padding ||
|-
| 0x60 || 0x10 || Vector3 || mv3ScattHorColour || || ||
|-
| 0x70 || 0x10 || Vector3 || mv3ScattSunColour || || ||
|-
| 0x80 || 0x4 || float32_t || mfScattHorPow || || ||
|-
| 0x84 || 0x4 || float32_t || mfScattSunPow || || ||
|-
| 0x88 || 0x4 || float32_t || mfScattDrk || || ||
|-
| 0x8C || 0x4 || float32_t || mfScattHorBleedScl || || ||
|-
| 0x90 || 0x4 || float32_t || mfScattHorBleedPow || || ||
|-
| 0x94 || 0x4 || float32_t || mfScattSunBleedPow || || ||
|-
| 0x98 || 0x8 || float32_t[2] || mafScattDist || || ||
|-
| 0xA0 || 0x4 || float32_t || mfScattPow || || ||
|-
| 0xA4 || 0x4 || float32_t || mfScattCap || || ||
|-
| 0xA8 || 0x8 || || || padding || ||
|}
 
=== LightningData ===
=== BrnWorld::EnvironmentSettings::LightingData ===
{| class="wikitable"
! Offset !! SizeLength !! Type !! Name !! Description !! More Information !! Comments
|-
| 0x0 || 0x10 || [[Vector3]] || mv3KeyLightColour || || ||
|-
| 0x10 || 0x10 || [[Vector3]] || mv3SpecularColour || || ||
|-
| 0x20 || 0x10 || [[Vector3]] || mv3KeyFillColour || || ||
|-
| 0x30 || 0x10 || [[Vector3]] || mv3ShadowFillColour || || ||
|-
| 0x40 || 0x10 || [[Vector3]] || mv3RightFillColour || || ||
|-
| 0x50 || 0x10 || [[Vector3]] || mv3LeftFillColour || || ||
|-
| 0x60 || 0x10 || [[Vector3]] || mv3UpFillColour || || ||
|-
| 0x70 || 0x10 || [[Vector3]] || mv3DownFillColour || || ||
|-
| 0x80 || 0x4 || float32_t || mfAmbientIrradianceScale || || ||
|-
| 0x84 || 0xC || || || padding || Padding ||
|}
 
=== CloudsData ===
=== BrnWorld::EnvironmentSettings::CloudsData ===
{| class="wikitable"
! Offset !! SizeLength !! Type !! Name !! Description !! More Information !! Comments
|-
| 0x0 || 0x20 || [[Vector3]][2] || mav3LayerLiteColour || || ||
|-
| 0x20 || 0x20 || [[Vector3]][2] || mav3LayerDarkColour || || ||
|-
| 0x40 || 0x8 || float32_t[2] || mafLayerDensity || || ||
|-
| 0x48 || 0x8 || float32_t[2] || mafLayerFeathering || || ||
|-
| 0x50 || 0x8 || float32_t[2] || mafLayerOpacity || || ||
|-
| 0x58 || 0x8 || float32_t[2] || mafLayerSpeed || || ||
|-
| 0x60 || 0x8 || float32_t[2] || mafLayerScale || || ||
|-
| 0x68 || 0x4 || float32_t || mfDirectionAngle || || ||
|-
| 0x6C || 0x4 || || || padding || Padding ||
|}