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.
jgrover110
Posts: 47
Joined: Tue Apr 17, 2018 1:07 pm

HDRi and Light Tracing

Post by jgrover110 »

When using a HDRi with light tracing, it looks like the shadows are a lot darker, as if only the sun is used in the image. This seems to only happen when using OpenCL, CPU looks as it should.

The attachment 0001.png is no longer available
OpenCL + Light Tracing + Caustic Cache
OpenCL + Light Tracing + Caustic Cache

There are also a lot of fireflies in this scene, not sure why as caustic paths should be accounted for with the cache.

OpenCL + Caustic Cache
OpenCL + Caustic Cache
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: HDRi and Light Tracing

Post by Dade »

What LuxCore version are you using ?
Support LuxCoreRender project with salts and bounties
jgrover110
Posts: 47
Joined: Tue Apr 17, 2018 1:07 pm

Re: HDRi and Light Tracing

Post by jgrover110 »

Latest build V2.4
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: HDRi and Light Tracing

Post by Dade »

Your scene seems to have only a 2% of light rays (this is like enabling light tracing and than not doing it) :idea:

@B.Y.O.B: wasn't the light tracing % hidden and set to 100% automatically with OpenCL :?:
Support LuxCoreRender project with salts and bounties
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: HDRi and Light Tracing

Post by Dade »

Dade wrote: Thu Apr 09, 2020 3:35 pm Your scene seems to have only a 2% of light rays (this is like enabling light tracing and than not doing it) :idea:
Note: the same happen if you render in OpenCL with light tracing enabled (that is done only on the CPU) and 0 CPU threads.
Support LuxCoreRender project with salts and bounties
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: HDRi and Light Tracing

Post by B.Y.O.B. »

I made it possible to use less than 100% light rays even with OpenCL after JuanGea pointed out that very powerful CPUs are a waste to use for only caustics.

Maybe I should set a lower limit for light rays though, something like 20%.
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: HDRi and Light Tracing

Post by Dade »

B.Y.O.B. wrote: Thu Apr 09, 2020 3:57 pm I made it possible to use less than 100% light rays even with OpenCL after JuanGea pointed out that very powerful CPUs are a waste to use for only caustics.
Oh, ok.
B.Y.O.B. wrote: Thu Apr 09, 2020 3:57 pm Maybe I should set a lower limit for light rays though, something like 20%.
Using 0% (or 100%) can be still useful for some trick (like getting only light tracing or only eye tracing output for compositing) so I guess we can leave it as it is.
Support LuxCoreRender project with salts and bounties
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: HDRi and Light Tracing

Post by B.Y.O.B. »

Ok.
jgrover110
Posts: 47
Joined: Tue Apr 17, 2018 1:07 pm

Re: HDRi and Light Tracing

Post by jgrover110 »

Light Rays was set to 100% using OpenCL, the 2% was only on CPU rendering (which had the correct result).
jgrover110
Posts: 47
Joined: Tue Apr 17, 2018 1:07 pm

Re: HDRi and Light Tracing

Post by jgrover110 »

Just to clarify what the issue is here, the CPU image looks as it should, but the OpenCL image has the shadows much darker. The Light Tracing % was set to 100% for OpenCL, and set to 2% for CPU. I only set it to 2% as I didn't need the default 20% as the caustics would get clear much faster than the rest of the scene

OpenCL + Light Tracing (100%) + Caustic Cache
OpenCL + Light Tracing (100%) + Caustic Cache
CPU + Light Tracing (2%) + Caustic Cache
CPU + Light Tracing (2%) + Caustic Cache
Post Reply