1
$\begingroup$

I tried implementing my own diffuse irradiance map maker after reading Learn OpenGL > PBR > IBL > Diffuse Irradiance.

It takes an HDR image and makes six HDR cube map. But It keeps making this very bright dots that altogether forms some kind of contour lines. (Almost looks like gamma correction artifact)

Any idea what possibly can cause this kind of artifacts?

enter image description here enter image description here

$\endgroup$
11
  • 1
    $\begingroup$ Most likely you are undersampling, and the bright spots occur when one of your samples happens to land on the sun. $\endgroup$ Commented Oct 26, 2021 at 5:34
  • $\begingroup$ @NathanReed You were right I was indeed undersampling. I’ll try more-sampling and see how it go. $\endgroup$ Commented Oct 26, 2021 at 7:08
  • 1
    $\begingroup$ Double check your sampling pattern and make sure you're getting well distributed samples as you increase the number? You could also try scaling down the input HDRI, so that you don't need so many samples when building the diffuse maps. $\endgroup$ Commented Oct 26, 2021 at 15:32
  • 1
    $\begingroup$ That doesn't sound right. Can you point to where they're doing that in the article? $\endgroup$ Commented Jan 31, 2022 at 16:48
  • 1
    $\begingroup$ @NathanReed Nevermind, I was wrong. They turn HDR into LDR only when they are rendering the skybox. 😅 $\endgroup$ Commented Feb 1, 2022 at 1:42

0

Browse other questions tagged or ask your own question.