Having trouble with energy conservation with IBL.

Started by
11 comments, last by ZachBethel 9 years, 7 months ago

I believe I found the problem. I was gamma correcting the HDR input texture by performing a pow(value, 2.2). That definitely isn't going to do what I want for values > 1.

Question: are these HDR probes gamma corrected already? When I leave off the pow(2.2) factor but use an SRGB default framebuffer, the colors of the probe get desaturated (see attached).

Advertisement

Here's what Uffizi looks like now. It looks much more like yours, MJP.

Another problem I'm having is that the G term in the brdf is going to infinity at the edges of my model. (if I use an implicit G term it goes away).

[attachment=23458:Black2.png]

I suspect this might be because normals being smoothed incorrectly across grazing angles. I assume this is a common problem with using the microfacet brdf model. I could use clamping to fix the problem, but how is this typically addressed in production scenarios?

This topic is closed to new replies.

Advertisement