the unique lighting of mirror's edge

70
The Unique Lighting The Unique Lighting of Mirrors Edge of Mirrors Edge David Larsson, Illuminate Labs David Larsson, Illuminate Labs Henrik Halén, EA DICE Henrik Halén, EA DICE

Upload: dice

Post on 21-Aug-2014

24.531 views

Category:

Entertainment & Humor


11 download

DESCRIPTION

We present the technology and ideas behind the unique lighting in MIRRORS EDGE from DICE. Covering how DICE adopted Global illumination into their lighting process and Illuminate Labs current toolbox of state of the art lighting technology.

TRANSCRIPT

Page 1: The Unique Lighting of Mirror's Edge

The Unique Lighting of The Unique Lighting of Mirrors EdgeMirrors Edge

David Larsson, Illuminate LabsDavid Larsson, Illuminate LabsHenrik Halén, EA DICEHenrik Halén, EA DICE

Page 2: The Unique Lighting of Mirror's Edge

Illuminate LabsIlluminate LabsFounded in 2002Founded in 2002Since 3 years Since 3 years 100% focused100% focused on lighting for games on lighting for gamesBased in Gothenburg, Based in Gothenburg, SwedenSweden10 employees (8 10 employees (8 software engineerssoftware engineers))+30 +30 game studios as clientsgame studios as clientsEpicEpic Independent Partner Program member Independent Partner Program member

Page 3: The Unique Lighting of Mirror's Edge

Illuminate LabsIlluminate LabsProprietary LiquidLight® technologyProprietary LiquidLight® technologyUsed in development of many of the most exciting Used in development of many of the most exciting game titlesgame titles

Mirror’s Edge DICE Mirror’s Edge DICE Killzone 2 GuerrillaKillzone 2 GuerrillaWET A2M WET A2M Mass Effect BioWare Mass Effect BioWare Gran Turismo Polyphony DigitalGran Turismo Polyphony DigitalHeavenly Sword Ninja TheoryHeavenly Sword Ninja Theory

State of the art global illumination State of the art global illumination Efficient workflowEfficient workflow

Page 4: The Unique Lighting of Mirror's Edge

EA DICEEA DICEAround since early 1990’sAround since early 1990’s~250 Employees in Stockholm, ~250 Employees in Stockholm, SwedenSwedenSelected titlesSelected titles

Mirror’s EdgeMirror’s EdgeBattlefield SeriesBattlefield SeriesRallisport ChallengeRallisport Challenge

Acquired by EA 2006Acquired by EA 2006

Page 5: The Unique Lighting of Mirror's Edge

Mirror’s EdgeMirror’s EdgeAction AdventureAction AdventureA new take on first person movementA new take on first person movement

First person free runningFirst person free runningNo more gun-on-a-stickNo more gun-on-a-stick

You play FaithYou play FaithFree running information courierFree running information courier

Page 6: The Unique Lighting of Mirror's Edge

Mirror’s EdgeMirror’s Edge

Page 7: The Unique Lighting of Mirror's Edge

BackgroundBackgroundNo shadows at all 14 Years agoNo shadows at all 14 Years agoNew techniques showed upNew techniques showed up

LightmapsLightmapsShadowmapsShadowmapsStencil ShadowsStencil Shadows

Bake shadow/no shadowBake shadow/no shadowNot much has changed until recentlyNot much has changed until recently

Page 8: The Unique Lighting of Mirror's Edge

Global IlluminationGlobal Illumination

Page 9: The Unique Lighting of Mirror's Edge

Global IlluminationGlobal Illumination

Page 10: The Unique Lighting of Mirror's Edge

Global IlluminationGlobal Illumination

Page 11: The Unique Lighting of Mirror's Edge

No Global IlluminationNo Global Illumination

Page 12: The Unique Lighting of Mirror's Edge

Light and ShadowLight and ShadowThere is much more to lighting than There is much more to lighting than telling where the shadow istelling where the shadow isOffline resources are much greater Offline resources are much greater nownowSpend some more time computing Spend some more time computing the lightmapsthe lightmaps

Page 13: The Unique Lighting of Mirror's Edge

Beast collaborationBeast collaborationWanted standalone rendererWanted standalone rendererGood experience Illuminate Labs’ Good experience Illuminate Labs’ productsproducts

Page 14: The Unique Lighting of Mirror's Edge

Global IlluminationGlobal Illumination

Page 15: The Unique Lighting of Mirror's Edge

No Global IlluminationNo Global Illumination

Page 16: The Unique Lighting of Mirror's Edge

Beast collaborationBeast collaborationArtistic requirements met early onArtistic requirements met early on<screens similar to ref photos><screens similar to ref photos>

Page 17: The Unique Lighting of Mirror's Edge

Beast collaborationBeast collaboration

Page 18: The Unique Lighting of Mirror's Edge

Art styleArt style

Page 19: The Unique Lighting of Mirror's Edge

TechniquesTechniquesGI isn’t a set of featuresGI isn’t a set of featuresMore like a uniform solutionMore like a uniform solutionEasily recreates a number of Easily recreates a number of phenomenaphenomena

Bouncing lightBouncing lightColor bleedingColor bleedingTransparency transferTransparency transfer

Page 20: The Unique Lighting of Mirror's Edge

BounceBounce

Page 21: The Unique Lighting of Mirror's Edge

BounceBounceArtistic requirements met early onArtistic requirements met early on<screens similar to ref photos><screens similar to ref photos>

Page 22: The Unique Lighting of Mirror's Edge

BleedingBleeding<examples/demo strong color bleeds, <examples/demo strong color bleeds, boss room?>boss room?>

Page 23: The Unique Lighting of Mirror's Edge

BleedingBleeding<examples/demo strong color bleeds, <examples/demo strong color bleeds, boss room?>boss room?>

Page 24: The Unique Lighting of Mirror's Edge

BleedingBleeding<examples/demo strong color bleeds, <examples/demo strong color bleeds, boss room?>boss room?>

Page 25: The Unique Lighting of Mirror's Edge

BleedingBleeding<examples/demo strong color bleeds, <examples/demo strong color bleeds, boss room?>boss room?>

Page 26: The Unique Lighting of Mirror's Edge

Colored transparencyColored transparency

Page 27: The Unique Lighting of Mirror's Edge

Colored transparencyColored transparency

Page 28: The Unique Lighting of Mirror's Edge

Radiosity normal mapsRadiosity normal maps<tie in from bleeding examples/demo <tie in from bleeding examples/demo bounce>bounce>

Page 29: The Unique Lighting of Mirror's Edge

Radiosity normal mapsRadiosity normal maps<tie in from bleeding examples/demo <tie in from bleeding examples/demo bounce>bounce>

Page 30: The Unique Lighting of Mirror's Edge

Radiosity normal mapsRadiosity normal maps<tie in from bleeding examples/demo <tie in from bleeding examples/demo bounce>bounce>

Page 31: The Unique Lighting of Mirror's Edge

Radiosity normal mapsRadiosity normal maps<tie in from bleeding examples/demo <tie in from bleeding examples/demo bounce>bounce>

Page 32: The Unique Lighting of Mirror's Edge

Radiosity normal mapsRadiosity normal maps<tie in from bleeding examples/demo <tie in from bleeding examples/demo bounce>bounce>

Page 33: The Unique Lighting of Mirror's Edge

Radiosity normal mapsRadiosity normal maps<tie in from bleeding examples/demo <tie in from bleeding examples/demo bounce>bounce>

Page 34: The Unique Lighting of Mirror's Edge

Radiosity normal mapsRadiosity normal maps<tie in from bleeding examples/demo <tie in from bleeding examples/demo bounce>bounce>

Page 35: The Unique Lighting of Mirror's Edge

Radiosity normal mapsRadiosity normal maps<tie in from bleeding examples/demo <tie in from bleeding examples/demo bounce>bounce>

Page 36: The Unique Lighting of Mirror's Edge

Radiosity normal mapsRadiosity normal maps<tie in from bleeding examples/demo <tie in from bleeding examples/demo bounce>bounce>

Page 37: The Unique Lighting of Mirror's Edge

Soft shadowsSoft shadows<tie in from bleeding examples/demo <tie in from bleeding examples/demo bounce>bounce>

Page 38: The Unique Lighting of Mirror's Edge

Soft shadowsSoft shadows<tie in from bleeding examples/demo <tie in from bleeding examples/demo bounce>bounce>

Page 39: The Unique Lighting of Mirror's Edge

Soft shadowsSoft shadows<tie in from bleeding examples/demo <tie in from bleeding examples/demo bounce>bounce>

Page 40: The Unique Lighting of Mirror's Edge

Lighting processLighting processDifferent approach from traditional Different approach from traditional “fake” methods“fake” methodsVery similar to real world lightingVery similar to real world lightingWork with light intensities, colors and Work with light intensities, colors and materialsmaterialsBest results with no invisible lightsBest results with no invisible lightsIterate on small areasIterate on small areas

Page 41: The Unique Lighting of Mirror's Edge

Indoors with sunIndoors with sun<Examples><Examples>

Page 42: The Unique Lighting of Mirror's Edge

Material tweaksMaterial tweaks<Examples><Examples>

Page 43: The Unique Lighting of Mirror's Edge

Daylight outdoorsDaylight outdoors<Examples><Examples>

Page 44: The Unique Lighting of Mirror's Edge

OutdoorsOutdoors<Examples><Examples>

Page 45: The Unique Lighting of Mirror's Edge

OutdoorsOutdoors<Examples><Examples>

Page 46: The Unique Lighting of Mirror's Edge

IndoorsIndoors<Examples><Examples>

Page 47: The Unique Lighting of Mirror's Edge

IndoorsIndoors<Examples><Examples>

Page 48: The Unique Lighting of Mirror's Edge

Lighting processLighting process<Examples><Examples>

Page 49: The Unique Lighting of Mirror's Edge

Lighting processLighting process<Examples><Examples>

Page 50: The Unique Lighting of Mirror's Edge

Lighting processLighting processArtistic requirements met early onArtistic requirements met early on<screens similar to ref photos><screens similar to ref photos>

Page 51: The Unique Lighting of Mirror's Edge

Lighting processLighting processArtistic requirements met early onArtistic requirements met early on<screens similar to ref photos><screens similar to ref photos>

Page 52: The Unique Lighting of Mirror's Edge

Lighting processLighting processArtistic requirements met early onArtistic requirements met early on<screens similar to ref photos><screens similar to ref photos>

Page 53: The Unique Lighting of Mirror's Edge

Area lightsArea lights<examples/demo><examples/demo>

Page 54: The Unique Lighting of Mirror's Edge

Area lightsArea lights<examples/demo><examples/demo>

Page 55: The Unique Lighting of Mirror's Edge

Lighting processLighting process<Examples><Examples>

Page 56: The Unique Lighting of Mirror's Edge

Lighting processLighting process<Examples><Examples>

Page 57: The Unique Lighting of Mirror's Edge

Lighting processLighting process<Examples><Examples>

Page 58: The Unique Lighting of Mirror's Edge

Lighting processLighting process<Examples><Examples>

Page 59: The Unique Lighting of Mirror's Edge

Lighting processLighting processRendering farm. Mostly on Rendering farm. Mostly on workstationsworkstations

50 cores per bake50 cores per bakeEfficiency depends on many factorsEfficiency depends on many factorsUsually 15 times faster than localUsually 15 times faster than local

Some stats (the Shard):Some stats (the Shard):~200x3 Lightmaps (1024x1024 DXT1)~200x3 Lightmaps (1024x1024 DXT1)~15000 meshes (12000 RNM + 4000 ~15000 meshes (12000 RNM + 4000 Vertex)Vertex)~2000 lights~2000 lights

Page 60: The Unique Lighting of Mirror's Edge

Additional techniquesAdditional techniquesCurvesCurves

Color correction post processColor correction post processVery similar to photoshop equivalentVery similar to photoshop equivalentArbitrary number of segments in editorArbitrary number of segments in editorCurves for R, G, B and LuminanceCurves for R, G, B and Luminance

Page 61: The Unique Lighting of Mirror's Edge

CurvesCurves

Page 62: The Unique Lighting of Mirror's Edge

CurvesCurves

Page 63: The Unique Lighting of Mirror's Edge

CurvesCurves

Page 64: The Unique Lighting of Mirror's Edge

CurvesCurves

Page 65: The Unique Lighting of Mirror's Edge

CurvesCurvesConverted to three (RGB) curves with 16 Converted to three (RGB) curves with 16 linear segments for runtimelinear segments for runtimeRealtime in-editor previewRealtime in-editor previewCompared to cubes:Compared to cubes:

More GPU ALUMore GPU ALULess CPU and less data to GPULess CPU and less data to GPUPossibly more precisionPossibly more precision

Page 66: The Unique Lighting of Mirror's Edge

CurvesCurvesArtist curveArtist curve

Page 67: The Unique Lighting of Mirror's Edge

CurvesCurves16 linear segments16 linear segments

Page 68: The Unique Lighting of Mirror's Edge

CurvesCurvesClose enoughClose enough

Page 69: The Unique Lighting of Mirror's Edge

CurvesCurves16 segments go a long way16 segments go a long wayTwo 16 bit 16x1 RGBA textures sent to Two 16 bit 16x1 RGBA textures sent to GPUGPUSegment lookup with color as UVSegment lookup with color as UVInterpolation between sets of curves on Interpolation between sets of curves on CPUCPUResult always continuousResult always continuousEasy and fast to add curvesEasy and fast to add curvesAllows for smooth transitions and effectsAllows for smooth transitions and effects

Page 70: The Unique Lighting of Mirror's Edge

sRGB tipssRGB tipsIf you’re using 8 bit lightmapsIf you’re using 8 bit lightmapsSome hardware has bad sRGB Some hardware has bad sRGB approximationapproximationGets worse with 8 bit -> HDR scalingGets worse with 8 bit -> HDR scalingDo transformation in shader insteadDo transformation in shader instead

Not correct after filtering, but looks goodNot correct after filtering, but looks goodAlternatively, author lightmapsAlternatively, author lightmaps