1 / 29

4 . 2. Deferred Shading

4 . 2. Deferred Shading. Exploration of deferred shading (rendering). Deferred Shading. Exploration of deferred shading (rendering). A problem with forward rendering.

ivrit
Download Presentation

4 . 2. Deferred Shading

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 4.2.Deferred Shading Exploration of deferred shading (rendering)

  2. Deferred Shading Exploration of deferred shading (rendering)

  3. A problem with forward rendering In traditional ‘forward’ rendering, input geometry is passed through a shader program that suitably manages the geometry and provides an output (lit) colour. A potential disadvantage of forward rendering is the often high cost associated with the lighting portion of the shader combined with the likelihood of drawing geometry which is later ‘replaced’ by closer geometry.

  4. Deferred rendering Deferred rendering operates by separating the geometry rendering stage from the lighting stage. Once geometry has been rendered, a later lighting shader then uses available geometry information to determine how the visible scene should be lit (i.e. the computation and memory bandwidth required is reduced to those visible portions).

  5. Deferred rendering Typically geometric information is output within a ‘geometry buffer’ (typically just handled as a texture within a shader) using multiple render targets (MRT).

  6. Deferred rendering Another advantage of deferred rendering is the ease with which rendering can employ a large number of dynamic lights (which are challenging to handle within forward renderers) – only those pixels effected by the lights need be considered. • Aside: To a certain extent, early Z-buffer tests can be used to limit unnecessary overdraw using forward rendering. That said, deferred rendering is, arguably, a ‘cleaner’, ‘less complex’ approach).

  7. Limitations of deferred rendering A key disadvantage of deferred rendering is the difficulty of handling material transparency. Typically, transparency is handled within a subsequent forward pass following deferred rendering. Additionally, as the lighting stage has been separated from the geomety stage, hardware based anti-aliasing cannot be used. To a certain extent this can be overcome by using suitable post-render processing.

  8. Games using deferred rendering: Games which have adopted a deferred rendering approach include: Killzone LittleBigPlanet Stalker Dead Space Tabula Rasa Grand Theft Auto IV

  9. Examples Deferred rendering examples

  10. Leadwerks: Albado (diffuse)

  11. Leadwerks: Depth

  12. Leadwerks: Normal

  13. Leadwerks: Specular

  14. Diffuse Lighting • Specular Lighting

  15. Leadwerks: Final

  16. Deferred Rendering in Killzone

  17. Guerrilla’s Killzone

  18. Guerrilla’s Killzone

  19. Guerrilla’s Killzone

  20. Guerrilla’s Killzone

  21. Guerrilla’s Killzone

  22. Guerrilla’s Killzone

  23. Guerrilla’s Killzone

  24. Guerrilla’s Killzone

  25. Deferred particle rendering View the DirectX SDK Deferred Particles sample

  26. Directed reading Directed Reading Directed reading concerning deferred reading

  27. Directed reading Read Deferred Shading Tutorial –an excellent introductory tutorial exploring core aspects of deferred rendering. Read Deferred Shading – informative presentation by Shawn Hargreaves Read GPU Gems 2 – Deferred Shading in STALKER – exploring how deferred rendering was used within STALKER. Read GPU Gems 3 – Deferred Shading in Tabula Rasa – exploring how deferred rendering was used within Tabula Rasa. Directed reading

  28. Directed reading Read Deferred Rendering in Leadwerks Engine – explore use of deferred shading within a game engine Read Deferred Rendering in Killzone 2 – explore use of deferred shading within Killzone 2 More generally explore gamerendering.com on other aspects of deferred shading: Directed reading http://www.gamerendering.com/category/rendering-methods/

  29. Summary Today we explored: • Introduction to deferred shading (rendering) • Typical advantages and disadvantages of deferred rendering To do: • Read the directed reading • Think if you would like to build a deferred renderer for your project

More Related