Page 1 of 1

Lights being ignored by opencl

Posted: Mon Jan 20, 2020 8:33 am
by lacilaci
Nested linked collections will disable new lights for opencl

opencl
A.jpg
cpu
B.jpg
Any idea how to troubleshoot? Why would this happen and why only new lights

when I deleted every object from scene (I kept all lights) suddenly the black light started working...

Re: Lights being ignored by opencl

Posted: Mon Jan 20, 2020 9:09 am
by lacilaci
Ok, so this is the problem

in blender 2.83 (not sure if older too)

If you have any linked collection, nested in another collection in the scene, then any new created light will be black for opencl... wtf

EDIT: nevermind, this is maybe blendluxcore issue, present in 2.82 as well.

Re: Lights being ignored by opencl

Posted: Mon Jan 20, 2020 10:44 am
by B.Y.O.B.
I can't replicate the problem here, can you upload a small scene showing it?

Re: Lights being ignored by opencl

Posted: Mon Jan 20, 2020 10:58 am
by lacilaci
B.Y.O.B. wrote: Mon Jan 20, 2020 10:44 am I can't replicate the problem here, can you upload a small scene showing it?
Yes, here is a scene.. and it even gets weirder where all lights should look same but one is yellow, one black and other one correct..
addlights.rar
(926.75 KiB) Downloaded 208 times
in the master scene (lights.blend) link the lights_linkme.blend - as a collection, don't link objects
Make sure the linked collection is nested in some existing collection in the scene.

Then if existing lights work, create new one and place it so you should see it and watch if it becomes black.. or whatever color

In this scene cpu is disabled in performance opencl resources, so you should use only opencl, cpu should work as expected

these are all the same lights,(top to bottom) one created first, other one after the linking and last one as a copy of the one created after the linking...
lights.jpg

Re: Lights being ignored by opencl

Posted: Tue Jan 21, 2020 2:08 pm
by lacilaci
B.Y.O.B. wrote: Mon Jan 20, 2020 10:44 am I can't replicate the problem here, can you upload a small scene showing it?
were you able to replicate it with my scene?

Re: Lights being ignored by opencl

Posted: Tue Jan 21, 2020 2:38 pm
by Dade
lacilaci wrote: Tue Jan 21, 2020 2:08 pm
B.Y.O.B. wrote: Mon Jan 20, 2020 10:44 am I can't replicate the problem here, can you upload a small scene showing it?
were you able to replicate it with my scene?
This is likely to be related to https://github.com/LuxCoreRender/LuxCore/issues/290, something I have fixed today :idea:

Re: Lights being ignored by opencl

Posted: Tue Jan 21, 2020 5:49 pm
by B.Y.O.B.
Dade wrote: Tue Jan 21, 2020 2:38 pm This is likely to be related to https://github.com/LuxCoreRender/LuxCore/issues/290, something I have fixed today
Indeed, looks fixed to me.