Page 1 of 3

ENV cache persistence

Posted: Wed Jan 08, 2020 7:07 am
by lacilaci
I don't like the feature much, but it can provide speedups even with lower settings than defaults.
The biggest problem is however not being able to use it in animations cause there are some heavy lighting shifts between frames.

Is there any timeframe on persistence file for this cache? Could it be saved together with photongi?

Re: ENV cache persistence

Posted: Wed Jan 08, 2020 7:55 am
by lacilaci
when interior is flooded with gi and almost no obstructions are there for environment then it is pretty stable though.
envid.mp4
(672.62 KiB) Downloaded 223 times

Re: ENV cache persistence

Posted: Wed Jan 08, 2020 10:09 am
by Dade
lacilaci wrote: Wed Jan 08, 2020 7:07 am Is there any timeframe on persistence file for this cache?
Persistent cache is already supported (https://github.com/LuxCoreRender/LuxCor ... e.cpp#L690), isn't it exposed in Blender ?

Re: ENV cache persistence

Posted: Wed Jan 08, 2020 10:12 am
by lacilaci
Dade wrote: Wed Jan 08, 2020 10:09 am
lacilaci wrote: Wed Jan 08, 2020 7:07 am Is there any timeframe on persistence file for this cache?
Persistent cache is already supported (https://github.com/LuxCoreRender/LuxCor ... e.cpp#L690), isn't it exposed in Blender ?
Oh, so environment cache is stored together with photongi? same file?

Re: ENV cache persistence

Posted: Wed Jan 08, 2020 10:27 am
by Dade
lacilaci wrote: Wed Jan 08, 2020 10:12 am Oh, so environment cache is stored together with photongi? same file?
No, it is a separate file/setting. I assume it should be available on the light panel among other parameters (there is one cache for each light).

Re: ENV cache persistence

Posted: Wed Jan 08, 2020 10:34 am
by lacilaci
Dade wrote: Wed Jan 08, 2020 10:27 am
lacilaci wrote: Wed Jan 08, 2020 10:12 am Oh, so environment cache is stored together with photongi? same file?
No, it is a separate file/setting. I assume it should be available on the light panel among other parameters (there is one cache for each light).
@B.Y.O.B. (does @ even work?) I failed to find any settings related to env.cache persistence.

You say one for each light. Even regular area lights are building their env.cache?

Re: ENV cache persistence

Posted: Wed Jan 08, 2020 10:36 am
by epilectrolytics
It is not yet implemented.

Re: ENV cache persistence

Posted: Wed Jan 08, 2020 10:38 am
by Dade
lacilaci wrote: Wed Jan 08, 2020 10:34 am You say one for each light. Even regular area lights are building their env.cache?
No, no, only for env. light sources (i.e. HDR, Sun, Sky, etc.)

Re: ENV cache persistence

Posted: Wed Jan 08, 2020 10:39 am
by B.Y.O.B.
lacilaci wrote: Wed Jan 08, 2020 10:34 am @B.Y.O.B. (does @ even work?) I failed to find any settings related to env.cache persistence.
It's not yet exposed in the Blender addon.

@ in the forum doesn't create a notification, we tried a plugin for this but it had some issues.

Re: ENV cache persistence

Posted: Wed Jan 08, 2020 10:45 am
by lacilaci
Ok guys thanks. So that settles it then. Will test animations with env.cache once it is in blender.

By the way Dade, should I expect problems animating objects while having env cache? With photongi I disable material's property to use photongi and I can move object while also have pgi cache used from file.

However, what if I have animated tree(to cast shadows in interior) and saved env.cache. Or object moving in interior.. Can I expect problems there? Sorry for many questions.