HDRi and Light Tracing

Use this forum for general user support and related questions.
Forum rules
Please upload a testscene that allows developers to reproduce the problem, and attach some images.
CodeHD
Donor
Donor
Posts: 437
Joined: Tue Dec 11, 2018 12:38 pm
Location: Germany

Re: HDRi and Light Tracing

Post by CodeHD »

jgrover110 wrote: Mon Apr 13, 2020 8:41 pm From my testing, I have the same issue with the standalone build as the blender addon. If you are unable to reproduce it, then this must be an issue with my system. The best I can do it describe the issue I am having and investigate what I believe to be the problem.
Ok, then it doesn't suggest a Blender issue. I wasn't sure anymore about this, and its better to double check trivial things, no matter the problem at hand. Long threads with unreproducible errors can get hard to follow ;)
jgrover110 wrote: Mon Apr 13, 2020 8:41 pm From what I can see, the problem seems to be the sampling of the HDRi in direct lighting, as the brightness of the shadows appears to be correct in the reflection of the metal cube. This was confirmed to me when I tried it with importance of 0.

What this did was effectively disabled importance sampling of the HDRi and was sampling it purely at random. In OpenCL the direct lighting was almost completely black apart from the fireflies where it had sampled the sun. The reflections of the floor however, were a lot brighter, meaning that the sky was being sampled properly. In CPU, the floor was the same brightness as the reflections of the floor, which means that the sky was being sampled properly even in direct light.
Do you mean the "importance" setting in the performance tab? That would not be multiple importance sampling. Or is there another importance setting?

Anyway, have you tried the random sampler instead of sobol? Might be worth a try.

Other than that, I tried something to check if it only samples one hemisphere of the HDRI for direct diffuse bounces. As the rest of the floor is sampled well by the sunlight, it can't be general for a type of bounce. I tested it by putting a half-box of black material aroudn the scene. however, that still couldn't quite replicate the look you get... but who knows what regions exactly would have to be left out.
jgrover110
Posts: 47
Joined: Tue Apr 17, 2018 1:07 pm

Re: HDRi and Light Tracing

Post by jgrover110 »

After upgrading my GPU to a 2060 KO, the issue has gone away. This pretty much confirms an issue with the RX 570. Maybe its to do with the polaris architecture? I know cycles have had issues when using OpenCL 2.0 with those cards. I've got other issues with rendering but I'll open another thread about that
Post Reply