Questions tagged [deferred-rendering]

a screen-space shading technique that defers shading until the second pass of rendering

In the field of 3D computer graphics, deferred shading is a screen-space shading technique. It is called deferred because no shading is actually performed in the first pass of the vertex and pixel shaders: instead shading is "deferred" until a second pass.

It is used in numerous popular games starting around 2010.

Advantages: easier resource and pipeline management

Disadvantages: hard to handle transparency, multiple materials, incompatible with anti-aliasing

Wikipedia: https://en.wikipedia.org/wiki/Deferred_shading

142 questions
1
vote
1 answer

Light accumulation in deferred rendering

I'm looking into converting my forward-renderer into a a deferred renderer, but there's one problem that I can't find (or can't conceptualize), and that is how all of the lights in the scene are accumulated. In forward rendering, I would upload all…
Wagan8r
  • 468
  • 5
  • 18
1
vote
1 answer

Any good looking 3D Game or Techdemo that makes use of deferred rendering?

For a research work arround the topic of deferred rendering/shading I'm looking for some opensource 3D game, benchmark or Techdemo upon which I can develop my examples. Of course it would be good if the game/demo would be visually appealing and as…
Mat
  • 4,281
  • 9
  • 44
  • 66
1
vote
0 answers

How to use Dependency Injection (DI) within DeferredComponent in Flutter apps?

I'm trying to use DeferredComponents for my flutter apps so that I can have some AOT compiled code as runtime downloadble module, described in DeferredComponents wiki here. I've looked for some examples and found the Flutter Gallery repository on…
1
vote
1 answer

OpenGL: Framebuffer - draw to texture - glClearColor

I have implemented a simple deferred renderer, using a FrameBuffer and a Texture. The drawing looks like this: first phase bind the framebuffer create and attach a color texture to the framebuffer clear color bit & set glClearColor to this darkish…
nonsensation
  • 151
  • 5
1
vote
0 answers

Defer Lazyload YouTube Iframe API loading

I'm trying to defer/lazyload YouTube Iframe API as it slows down page loading due to extra 1 MB javascript of YouTube. I tried lots of solutions but nothing works for me. Please help me to sort out issue and attain maximum web page speed. GTmetrix…
1
vote
1 answer

Is it possible to depth test against a depth texture I am also sampling, in the same draw call?

Context: I am using a deferred rendering setup, where in the first stage I have two FBO's: one is the GBuffer, for storing the normals, albedo, and material information for all visible fragments. This FBO has a 32-bit depth texture. This gets drawn…
Trevor Galivan
  • 373
  • 2
  • 13
1
vote
0 answers

Porting deferred rendering WebGL pipeline to aframe.js

I have a WebGL 2 app that renders a bunch of point lights w/a deferred pipeline. I would like to port this to Aframe for use with Oculus Rift S. My questions relate only to rendering. Now I know next to nothing about VR specific rendering; other…
Will Snyder
  • 51
  • 1
  • 3
1
vote
1 answer

pagespeed insights Defer unused CSS and ofscreen images

I'v defered all my CSS using media="none" onload="if(media!='all')media='all'" and images using yall.min.js But PageSpeed Insights continues claiming it (and the images are visibles too) How do I could optimize this? Thanks, Ari
1
vote
1 answer

Wireframe rendering with depth-buffer in deferred rendering

I have a small OpenGL app for some scientific visualization with deferred rendering pipeline. I have got 2 passes: geometric pass, where I render textures with positions, normals, albedo, segmentation, e.t.c.; and lighting pass, where I just map…
Denis
  • 719
  • 2
  • 8
  • 23
1
vote
2 answers

Directional shadow mapping in deferred shading

I'm implementing directional shadow mapping in deferred shading. First, I render a depth map from light view (orthogonal projection). Result: I intend to do VSM so above buffer is R32G32 storing depth and depth * depth. Then for a full-screen…
1
vote
0 answers

multiple shadowmaps in deferred shading

I have question about usage of multiple shadowmaps in deferred shading. I have implemented a single shadowmap in forward shading. In forward rendering, in the vertex shader of each object I calculated it's position in lightspace and compared it to…
florent teppe
  • 529
  • 5
  • 13
1
vote
1 answer

Is Google using "defer" the wrong way?

See: https://developers.google.com/maps/documentation/javascript/tutorial Google is using here: My question is why Google…
1
vote
0 answers

Execution order of script bundles

While optimizing site speed by deferring scripts I came across the issue of sequencing the order of bundles (NOT the order of scripts within a bundle). I am reading threads for the last several hours without luck. All worked well before adding the…
1
vote
0 answers

Three js depth buffer, power of 2 textures?

I am rendering the depthbuffer of my scene to a texture, so that I can use it in a later pass for position and normal reconstruction. My question is whether the fact that the buffer is not power of 2 has any performance implications. And if that is…
lightxbulb
  • 1,251
  • 12
  • 29
1
vote
0 answers

Unity How to make Image Effect Shaders work with Deferred rendering?

I have simple fog shader that works just fine on Forward rendering. However, I need to make it work on deferred rendering too. I was told that I only have to change the script that is calling the shader. My fog calling C# script: using…