Page 18 of 109
Re: PhotonGI cache
Posted: Wed Feb 06, 2019 2:43 pm
by B.Y.O.B.
I have exposed the maxsize property again.
Re: PhotonGI cache
Posted: Wed Feb 06, 2019 3:10 pm
by Sharlybg
Ok a simple recap of the situation and upcoming feature and Speed.
PhotonGI + OIDN + 7nm(GPU+CPU) + Topaz Ai Gigapixel =
Never mind one day that Luxcore = Skynet

Re: PhotonGI cache
Posted: Wed Feb 06, 2019 4:58 pm
by Dade
lacilaci wrote: Wed Feb 06, 2019 1:13 pm
Dade wrote: Wed Feb 06, 2019 1:00 pm
Post a (simple) test scene, pls.
This actually is a simple testscene....
Just use the debug option to directly visualize the direct cache and you will understand a lot (this is the second scene camera, the first one is even worse):
This seems the result of a BlendLuxCore bug, it doesn't set the direct cache size (and the default value is very small). It should be set to something like: 2 * <indirect cache size> / <max. photon path depth>
The correct output:
Not say that this fix everything but having a direct light cache with something inside helps

Re: PhotonGI cache
Posted: Wed Feb 06, 2019 5:28 pm
by B.Y.O.B.
Why the direct cache? Isn't it supposed to be disabled?
Dade wrote: Wed Feb 06, 2019 4:58 pm
It should be set to something like: 2 * <indirect cache size> / <max. photon path depth>
I tried to do this but the direct cache debug output is completely black on all surfaces.
When I enable it with "path.photongi.direct.enabled = 1" I can see the same output as in your post, but when I switch debug mode off, the render is full of direct light cache splotches. I'm confused.
Re: PhotonGI cache
Posted: Wed Feb 06, 2019 7:29 pm
by Dade
B.Y.O.B. wrote: Wed Feb 06, 2019 5:28 pm
Why the direct cache? Isn't it supposed to be disabled?
Dade wrote: Wed Feb 06, 2019 4:58 pm
It should be set to something like: 2 * <indirect cache size> / <max. photon path depth>
I tried to do this but the direct cache debug output is completely black on all surfaces.
When I enable it with "path.photongi.direct.enabled = 1" I can see the same output as in your post, but when I switch debug mode off, the render is full of direct light cache splotches. I'm confused.
Yes, for the debug, and only for the debug, you have to use "path.photongi.direct.enabled = 1":
- debug on enable the related cache => "path.photongi.direct/indirect/caustic.enabled = 1"
- debug off, keep direct cache disabled => "path.photongi.direct.enabled = 0"
Re: PhotonGI cache
Posted: Wed Feb 06, 2019 8:15 pm
by B.Y.O.B.
Re: PhotonGI cache
Posted: Thu Feb 07, 2019 12:12 pm
by lacilaci
Trying the latest builds... I cannot do anything to avoid those corner "leaks"
Btw, will the cache work with bidir too?
Re: PhotonGI cache
Posted: Thu Feb 07, 2019 5:32 pm
by Dade
lacilaci wrote: Thu Feb 07, 2019 12:12 pm
Btw, will the cache work with bidir too?
Nope, it not applicable in that context (BiDir traces a light path for every sample, if you cache the light path ... it just becomes path tracing + cache).
Re: PhotonGI cache
Posted: Thu Feb 07, 2019 5:42 pm
by lacilaci
Dade wrote: Thu Feb 07, 2019 5:32 pm
lacilaci wrote: Thu Feb 07, 2019 12:12 pm
Btw, will the cache work with bidir too?
Nope, it not applicable in that context (BiDir traces a light path for every sample, if you cache the light path ... it just becomes path tracing + cache).
then maybe some pathguiding for bidir?
Re: PhotonGI cache
Posted: Thu Feb 07, 2019 6:03 pm
by Dade
lacilaci wrote: Thu Feb 07, 2019 5:42 pm
Dade wrote: Thu Feb 07, 2019 5:32 pm
lacilaci wrote: Thu Feb 07, 2019 12:12 pm
Btw, will the cache work with bidir too?
Nope, it not applicable in that context (BiDir traces a light path for every sample, if you cache the light path ... it just becomes path tracing + cache).
then maybe some pathguiding for bidir?
Yes, that would be a possibility.