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
2 answers

Using deferred rendering, getting blank output

So I'm working with Java/LibGDX and I'm trying to set up the very basics of deferred rendering, namely rendering the actual game art to one color buffer of an FBO and the corresponding normals to another color buffer of the FBO. (So essentially, I'm…
yesbutmaybeno
  • 1,078
  • 13
  • 31
1
vote
1 answer

What should a G-Buffer commonly include in a deferred rendering process?

I am trying to implement a simple deferred renderer using OpenGL and having read various tutorials and papers describing the topic, most only offer very minimalistic or abstract description to the structure of a G-Buffer - usually containing…
nOvoid
  • 109
  • 1
  • 9
1
vote
2 answers

OpenGL deferred rendering: point light implementation

I'm trying to write a deferred renderer using C# and OpenGL (with OpenTK). But don't understand how should I implement the normal calculation for a point light. The point light fragment shader: vec2 texCoord = gl_FragCoord.xy / ScreenSize; …
robot9706
  • 116
  • 10
1
vote
1 answer

Defer creation of controllers/services on app run angularjs

every time the route change, I check if is set a variable with the current logged user details, if this variable is not set, I simply redirect to the login page. Now I'm trying to achieve some kind of "remember me" functionality, so every time the…
1
vote
2 answers

Detect when an loads

I'm using an inside of a modal to load different contents conditionally based on some options. The contents are selected when the modal is launched in one mode (heh) or another, or when the user changes a drop down. In any of these…
SimplGy
  • 20,079
  • 15
  • 107
  • 144
1
vote
2 answers

Deferred Rendering: Use depth buffer from Gbuffer in default framebuffer

I am making a deferred rendering application with C++ and OpenGL. After doing the geometry and light passes I want to render some particles. But I need some depth testing on those. So what I want to do is to use the depth buffer binded to my GBuffer…
techbech
  • 3,754
  • 5
  • 20
  • 28
1
vote
1 answer

Defer Attribute No Src Nothing Inside

What happens when there is a script tag with a defer attribute, no src or async attribute, and nothing inside it, as in: As far as I understand it, defer simply tells the page it can keep…
trysis
  • 8,086
  • 17
  • 51
  • 80
1
vote
2 answers

Deferred Lighting | Point Lights Using Circles

I'm implementing a deferred lighting mechanism in my OpenGL graphics engine following this tutorial. It works fine, I don't get into trouble with that. When it comes to the point lights, it says to render spheres around the lights to only pass those…
1
vote
1 answer

OpenGL Compute shader atomic operations

I'm trying to write a deferred tiled renderer in line with the one DICE used for BF3 and I'm either not understanding what I'm doing or GLSL is pulling a fast one on me. First part of the kernel is to calculate the max and min depth per tile, which…
Bentebent
  • 271
  • 4
  • 8
1
vote
1 answer

OpenGL 3.3 MSAA deferred shading

From what I understand I can have automatic MSAA for deferred shading in OpenGL 3.3 by specifying multisample textures/renderbuffers when creating my framebuffer (at a high memory cost). Does this multisampling also have any implications on the…
KaiserJohaan
  • 9,028
  • 20
  • 112
  • 199
1
vote
1 answer

Deferred Rendering Not Working as Expected

I'm fairly experienced with opengl and GLSL. For my engine I wanted to implement deferred lighting, knowing it was not going to be a trivial task. After a few hours I was able to get things mostly working. Here is a screenshot of all the buffers…
BlueSpud
  • 1,555
  • 3
  • 19
  • 44
1
vote
1 answer

HTML5 Boilerplate and cirical rendering path / deffering scripts and styles

I used to build my websites based on the HTML5 Boilerplate: styles and modenizr in the head, jQuery (google CDN or hosted file) and scripts before the closing body tag. Something like that: