SlideShare a Scribd company logo
Inferred rendering




http://ozlael.egloos.com/
Forward Rendering


●   Traditional Render
●   Single Pass Lighting
●   Multipass Lighting
Forward Rendering
          :Single Pass Lighting

●   For each object:
    Render mesh, applying all lights in one shader
●   Good for scenes with small numbers of li
    ghts (eg.outdoor sunlight)
●   Difficult to organize if there are many light
    s
●
    Shader combinations explosion
Forward Rendering
                 :Multipass Lighting

●   For each light:
    –   For each object affected by the light:
         ●   framebuffer += object * light
●   Worst case complexity is num_objects * n
    um_lights
●   Shader for each material and light type
Forward Rendering
               :Multipass Lighting

●   Wasted shader cycles
    –   Invisible surfaces / overdraw
    –   Triangles outside light influence
●   Ideally the scene should be split exactly a
    long lightboundaries, but getting this right
    for dynamic lightscan be a lot of CPU wor
    k
Deferred Rendering


●   For each object:
    –   Render to multiple targets
    –   Render surface properties into the G-Buffer
●   For each light:
    –   Apply light as a 2D postprocess
    –   Use G-Buffer to compute lighting
    –   Add result to frame buffer
Deferred Rendering


●   Worst case complexity is num_objects +
    num_lights
●   Simpler shaders
Deferred Rendering
      G-buffer
Deferred Rendering
      G-buffer
Deferred Rendering
      G-buffer
Deferred Rendering
       Result
MRT
Determine Lit Pixels
Determine Lit Pixels
Early-Z Pass


●   Similar to Early-Z Pass
    –   1st Pass: Visibility tests
    –   2nd Pass: Shading
●   Different than Early-Z Pass
    –   Geometry is only transformed once
Deferred Rendering
                 Weak point

●   Does not handle transparent objects
    –   Forward Rendering Pass
●   H/W Anti-aliasing difficult
●   Material limited
●   Many memory bandwidth
Pre-light Pass


●   Geometry pass:
    –   fill up normal and depth buffer
●   Lighting pass:
    –   store light properties in light buffer
●   2. Geometry pass:
    –   fetch light buffer and apply different material
          terms per surface by re-constructing the
          lighting equation
Pre-light Pass


●   Geometry pass:
    –   fill up normal and depth buffer
●   Lighting pass:
    –   store light properties in light buffer
●   2. Geometry pass:
    –   fetch light buffer and apply different material
          terms per surface by re-constructing the
          lighting equation
Pre-light Pass

Render opaque Geometry sorted front-to-back


   Normals
                           Depth                      Color
Specular Power



                   Blit Lights into Light Buffer (sorted front-to-back)


            Light Buffer


                   Render opaque Geometry sorted front-to-back
                   or
                   Blit ambient term and other lighting terms into final image


           Frame Buffer
Pre-light Pass




Resistance 2TM in-game screenshot; first row on the left is the depth buffer, on the right is the normal buffer; in the second row is the diffuse light buffer
and on the right is the specular light buffer; in the last row is the final result.
Pre-light Pass


●   Flexible Materials
●   H/W MSAA
●   Not Lighting/Shadowing Alpha Geometry

More Related Content

PDF
Inferred lighting
PDF
Deferred shading
PPT
Light prepass
PDF
Deferred rendering in Dying Light
PPTX
Deferred shading
PPTX
565 Alpha Chun-Fu Chao
PDF
The Rendering Technology of 'Lords of the Fallen' (Game Connection Europe 2014)
PDF
Forward+ (EUROGRAPHICS 2012)
Inferred lighting
Deferred shading
Light prepass
Deferred rendering in Dying Light
Deferred shading
565 Alpha Chun-Fu Chao
The Rendering Technology of 'Lords of the Fallen' (Game Connection Europe 2014)
Forward+ (EUROGRAPHICS 2012)

What's hot (20)

PDF
Deferred Rendering in Killzone 2
PPT
A Bit More Deferred Cry Engine3
PPTX
Calibrating Lighting and Materials in Far Cry 3
PPT
Paris Master Class 2011 - 01 Deferred Lighting, MSAA
PPTX
Around the World in 80 Shaders
PPTX
The Rendering Technology of Killzone 2
PPT
Secrets of CryENGINE 3 Graphics Technology
PPT
Destruction Masking in Frostbite 2 using Volume Distance Fields
PPT
GDC 2012: Advanced Procedural Rendering in DX11
PDF
The rendering technology of 'lords of the fallen' philip hammer
PDF
Rendering AAA-Quality Characters of Project A1
PPT
Crysis Next-Gen Effects (GDC 2008)
PPTX
GDC 2014 - Deformable Snow Rendering in Batman: Arkham Origins
PDF
A 2.5D Culling for Forward+ (SIGGRAPH ASIA 2012)
PPTX
A new Post-Processing Pipeline
PDF
Epic_GDC2011_Samaritan
PPT
Paris Master Class 2011 - 05 Post-Processing Pipeline
PPTX
GTC 2014 - DirectX 11 Rendering and NVIDIA GameWorks in Batman: Arkham Origins
PPTX
SPU-Based Deferred Shading in BATTLEFIELD 3 for Playstation 3
PPT
Paris Master Class 2011 - 07 Dynamic Global Illumination
Deferred Rendering in Killzone 2
A Bit More Deferred Cry Engine3
Calibrating Lighting and Materials in Far Cry 3
Paris Master Class 2011 - 01 Deferred Lighting, MSAA
Around the World in 80 Shaders
The Rendering Technology of Killzone 2
Secrets of CryENGINE 3 Graphics Technology
Destruction Masking in Frostbite 2 using Volume Distance Fields
GDC 2012: Advanced Procedural Rendering in DX11
The rendering technology of 'lords of the fallen' philip hammer
Rendering AAA-Quality Characters of Project A1
Crysis Next-Gen Effects (GDC 2008)
GDC 2014 - Deformable Snow Rendering in Batman: Arkham Origins
A 2.5D Culling for Forward+ (SIGGRAPH ASIA 2012)
A new Post-Processing Pipeline
Epic_GDC2011_Samaritan
Paris Master Class 2011 - 05 Post-Processing Pipeline
GTC 2014 - DirectX 11 Rendering and NVIDIA GameWorks in Batman: Arkham Origins
SPU-Based Deferred Shading in BATTLEFIELD 3 for Playstation 3
Paris Master Class 2011 - 07 Dynamic Global Illumination
Ad

Similar to Deferred lighting (20)

PPT
Topic 6 Graphic Transformation and Viewing.ppt
KEY
Colin Barre-Brisebois - GDC 2011 - Approximating Translucency for a Fast, Che...
PDF
Lightspeed Preprint
PDF
Deferred rendering in_leadwerks_engine[1]
PDF
PapersWeLove - Rendering Synthetic Objects Into Real Scenes - Paul Debevec.pdf
PPTX
Penn graphics
PDF
Rendering Tech of Space Marine
PPT
Interactive Refractions And Caustics Using Image Space Techniques
PPT
Advanced Lighting Techniques Dan Baker (Meltdown 2005)
PPT
CS 354 Lighting
PPTX
A Bizarre Way to do Real-Time Lighting
PDF
PPTX
The Rendering Pipeline - Challenges & Next Steps
PPTX
Benoit fouletier guillaume martin unity day- modern 2 d techniques-gce2014
PDF
Shaders - Claudia Doppioslash - Unity With the Best
PPT
Light and Shadows
PDF
Lightspeed SIGGRAPH talk
PDF
Deferred Rendering in Killzone 2
PDF
The Technology Behind the DirectX 11 Unreal Engine"Samaritan" Demo
PPTX
Real-time lightmap baking
Topic 6 Graphic Transformation and Viewing.ppt
Colin Barre-Brisebois - GDC 2011 - Approximating Translucency for a Fast, Che...
Lightspeed Preprint
Deferred rendering in_leadwerks_engine[1]
PapersWeLove - Rendering Synthetic Objects Into Real Scenes - Paul Debevec.pdf
Penn graphics
Rendering Tech of Space Marine
Interactive Refractions And Caustics Using Image Space Techniques
Advanced Lighting Techniques Dan Baker (Meltdown 2005)
CS 354 Lighting
A Bizarre Way to do Real-Time Lighting
The Rendering Pipeline - Challenges & Next Steps
Benoit fouletier guillaume martin unity day- modern 2 d techniques-gce2014
Shaders - Claudia Doppioslash - Unity With the Best
Light and Shadows
Lightspeed SIGGRAPH talk
Deferred Rendering in Killzone 2
The Technology Behind the DirectX 11 Unreal Engine"Samaritan" Demo
Real-time lightmap baking
Ad

More from ozlael ozlael (20)

PPTX
Unity & VR (Unity Roadshow 2016)
PDF
뭣이 중헌디? 성능 프로파일링도 모름서 - 유니티 성능 프로파일링 가이드 (IGC16)
PPTX
Optimizing mobile applications - Ian Dundore, Mark Harkness
PDF
그래픽 최적화로 가...가버렷! (부제: 배치! 배칭을 보자!) , Batch! Let's take a look at Batching! -...
PDF
유니티 그래픽 최적화, 어디까지 해봤니 (Optimizing Unity Graphics) Unite Seoul Ver.
PDF
유니티 그래픽 최적화, 어디까지 해봤니 (Optimizing Unity Graphics) NDC15 Ver.
PDF
Infinity Blade and beyond
PDF
스티브잡스처럼 프레젠테이션하기
PDF
유니티의 라이팅이 안 이쁘다구요? (A to Z of Lighting)
PDF
Introduce coco2dx with cookingstar
PDF
Deferred rendering case study
PDF
Kgc make stereo game on pc
PPTX
mssao presentation
PDF
Modern gpu optimize blog
PDF
Modern gpu optimize
PDF
Bickerstaff benson making3d games on the playstation3
PDF
DOF Depth of Field
PDF
Hable uncharted2(siggraph%202010%20 advanced%20realtime%20rendering%20course)
PDF
Unity & VR (Unity Roadshow 2016)
뭣이 중헌디? 성능 프로파일링도 모름서 - 유니티 성능 프로파일링 가이드 (IGC16)
Optimizing mobile applications - Ian Dundore, Mark Harkness
그래픽 최적화로 가...가버렷! (부제: 배치! 배칭을 보자!) , Batch! Let's take a look at Batching! -...
유니티 그래픽 최적화, 어디까지 해봤니 (Optimizing Unity Graphics) Unite Seoul Ver.
유니티 그래픽 최적화, 어디까지 해봤니 (Optimizing Unity Graphics) NDC15 Ver.
Infinity Blade and beyond
스티브잡스처럼 프레젠테이션하기
유니티의 라이팅이 안 이쁘다구요? (A to Z of Lighting)
Introduce coco2dx with cookingstar
Deferred rendering case study
Kgc make stereo game on pc
mssao presentation
Modern gpu optimize blog
Modern gpu optimize
Bickerstaff benson making3d games on the playstation3
DOF Depth of Field
Hable uncharted2(siggraph%202010%20 advanced%20realtime%20rendering%20course)

Recently uploaded (20)

PPT
Teaching material agriculture food technology
PDF
Empathic Computing: Creating Shared Understanding
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Advanced Soft Computing BINUS July 2025.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
PDF
Modernizing your data center with Dell and AMD
PDF
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
cuic standard and advanced reporting.pdf
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Approach and Philosophy of On baking technology
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
Teaching material agriculture food technology
Empathic Computing: Creating Shared Understanding
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Advanced Soft Computing BINUS July 2025.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
NewMind AI Weekly Chronicles - August'25 Week I
Per capita expenditure prediction using model stacking based on satellite ima...
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
Modernizing your data center with Dell and AMD
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Mobile App Security Testing_ A Comprehensive Guide.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
cuic standard and advanced reporting.pdf
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Approach and Philosophy of On baking technology
Reach Out and Touch Someone: Haptics and Empathic Computing

Deferred lighting

  • 2. Forward Rendering ● Traditional Render ● Single Pass Lighting ● Multipass Lighting
  • 3. Forward Rendering :Single Pass Lighting ● For each object: Render mesh, applying all lights in one shader ● Good for scenes with small numbers of li ghts (eg.outdoor sunlight) ● Difficult to organize if there are many light s ● Shader combinations explosion
  • 4. Forward Rendering :Multipass Lighting ● For each light: – For each object affected by the light: ● framebuffer += object * light ● Worst case complexity is num_objects * n um_lights ● Shader for each material and light type
  • 5. Forward Rendering :Multipass Lighting ● Wasted shader cycles – Invisible surfaces / overdraw – Triangles outside light influence ● Ideally the scene should be split exactly a long lightboundaries, but getting this right for dynamic lightscan be a lot of CPU wor k
  • 6. Deferred Rendering ● For each object: – Render to multiple targets – Render surface properties into the G-Buffer ● For each light: – Apply light as a 2D postprocess – Use G-Buffer to compute lighting – Add result to frame buffer
  • 7. Deferred Rendering ● Worst case complexity is num_objects + num_lights ● Simpler shaders
  • 10. Deferred Rendering G-buffer
  • 12. MRT
  • 15. Early-Z Pass ● Similar to Early-Z Pass – 1st Pass: Visibility tests – 2nd Pass: Shading ● Different than Early-Z Pass – Geometry is only transformed once
  • 16. Deferred Rendering Weak point ● Does not handle transparent objects – Forward Rendering Pass ● H/W Anti-aliasing difficult ● Material limited ● Many memory bandwidth
  • 17. Pre-light Pass ● Geometry pass: – fill up normal and depth buffer ● Lighting pass: – store light properties in light buffer ● 2. Geometry pass: – fetch light buffer and apply different material terms per surface by re-constructing the lighting equation
  • 18. Pre-light Pass ● Geometry pass: – fill up normal and depth buffer ● Lighting pass: – store light properties in light buffer ● 2. Geometry pass: – fetch light buffer and apply different material terms per surface by re-constructing the lighting equation
  • 19. Pre-light Pass Render opaque Geometry sorted front-to-back Normals Depth Color Specular Power Blit Lights into Light Buffer (sorted front-to-back) Light Buffer Render opaque Geometry sorted front-to-back or Blit ambient term and other lighting terms into final image Frame Buffer
  • 20. Pre-light Pass Resistance 2TM in-game screenshot; first row on the left is the depth buffer, on the right is the normal buffer; in the second row is the diffuse light buffer and on the right is the specular light buffer; in the last row is the final result.
  • 21. Pre-light Pass ● Flexible Materials ● H/W MSAA ● Not Lighting/Shadowing Alpha Geometry