This might be not laser precision question but this issue appeared a long time ago when first trying to render some scene with 3D models in rasterisation renderer and apply some lighting, posprocessing etc.

Random squares:

enter image description here

Sometimes it look like flooding model area:

enter image description here

But it appears only on models loaded from file, sponza or any other.

So what could be the cause? Numerical errors in shaders? NaN or negative values? Anyone experiences this?

It's hard to explain because its quite random.

  • $\begingroup$ First of all, have you tries other computers and verified that it isn't your GPU that's the problem? Because I'm facing a similar problem, because my GPU is starting to get a few years behind it. Second of all. Any additional context would greatly help. Did you write the application? Reaching any limits? What does the shader look like? Checked for OpenGL errors? $\endgroup$
    – vallentin
    Mar 28, 2017 at 0:36
  • $\begingroup$ I'd look at your post processing first, the black artefact at the start looks like it is being blurred each frame by something. Maybe you are rendering something into the wrong buffer somehow ? $\endgroup$
    – PaulHK
    Mar 28, 2017 at 2:36
  • $\begingroup$ FWIW, I have seen issues like this when NaNs enter the pipeline, either by being passed from the CPU or being calculated on the GPU. I can't say whether that's your issue or not, but it did end up looking similar to this. $\endgroup$ Mar 28, 2017 at 4:36
  • $\begingroup$ @Vallentin I have lots of shaders and framebuffers... that's why i didn't provide any code and in this code there are not many hints of anything.. . There was this issue when my renderer was forward, then I rewrited it to deferred, added some color attachments ping pong (to apply post effects, fog, light) and it worsen the condidtion. There are some gl errors (1280) when adding color attachments to framebuffers which I don't understand because they work at the end. Yeah I didn't check it on other computer. My GPU is quite new (gtx970) $\endgroup$
    – mdkdy
    Mar 28, 2017 at 8:28
  • $\begingroup$ @PaulHK I'll check postprocess and btw white flashes in first gif are from eye adaptation effect. There is pass to calculate average luminance (downsample to 1x1) and these error values seem to confuse this. $\endgroup$
    – mdkdy
    Mar 28, 2017 at 8:38


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.