Page 1 of 2

Caches

Posted: Tue Sep 08, 2020 6:46 pm
by Leandro Oliveira
Hey guys,

The cache goal, is to pre-calculate rays, so I can reuse it in a camera animation, right? If from a frame to another, I change some object´s position, cache solution won´t help. I think I imagining the cache use just like I used to setup in Mental Ray, for example, calculating first Final Gather, than I could render all frames without GI calculation. But, I think I am wrong. Could someone give me an explanation about how caches work in Lux?

Thanks,

Re: Caches

Posted: Tue Sep 08, 2020 7:06 pm
by Dade
Each cache is a chapter on its own but in general they are all (mostly) view point independent and geometry/materials/etc. dependent.

Re: Caches

Posted: Tue Sep 08, 2020 8:15 pm
by Sharlybg
In a more artistic friendly language.
For flythrougth camera animation it is a super fast solution.
Compute once and gain speed from saved caches at each frame rendered.
There are a lot of super good animation we can do with that :
Example.
https://youtu.be/oFzt-3sRExI

https://youtu.be/raxoyqpOayM

We can thanks Dade as Luxcore is the only one opensource renderer to do that.

The only limitation.

Animation with moving Geometry or light. And space with lot of reflective material. In theses cases you get lot of artifacts.

Re: Caches

Posted: Tue Sep 08, 2020 9:21 pm
by Leandro Oliveira
Thank you guys!

So, when I hit render, I can just wait for cache calculation, then stop render. Can I calculate caches in a small resolution, and make final render in a bigger resolution?

Re: Caches

Posted: Tue Sep 08, 2020 10:06 pm
by Dade
Leandro Oliveira wrote: Tue Sep 08, 2020 9:21 pm So, when I hit render, I can just wait for cache calculation, then stop render. Can I calculate caches in a small resolution, and make final render in a bigger resolution?
Yes but you need to enable persistent cache on file system to be able to reuse the previous cache in any render.

Re: Caches

Posted: Tue Sep 08, 2020 11:00 pm
by Sharlybg
Don't clearly remenber but i think you also need to uncheck save cache while it is done. So that it will not compute and erase previous one.
Make sure to not change object and lighting after that.
If you do that make sure to check save cache to rewrite a new updated cache.

Re: Caches

Posted: Wed Sep 09, 2020 6:29 pm
by Leandro Oliveira
Thank you, guys, again!

Sharly, so, it´s possible to update the cache. This is great! This means I can use cache animating, for example, a light color? Or its intensity? Or even, changing an object´s position?

Re: Caches

Posted: Wed Sep 09, 2020 10:19 pm
by Sharlybg
Leandro Oliveira wrote: Wed Sep 09, 2020 6:29 pm Thank you, guys, again!

Sharly, so, it´s possible to update the cache. This is great! This means I can use cache animating, for example, a light color? Or its intensity? Or even, changing an object´s position?
If you force the cache limit by doing that you open the door for flickering like in my short film with the 2 cars.
It is fast but don't abuse :mrgreen:

Re: Caches

Posted: Thu Sep 10, 2020 1:02 pm
by Leandro Oliveira
Ok, thanks, man!

Re: Caches

Posted: Sat Oct 03, 2020 3:02 am
by Leandro Oliveira
Guys, another question about caches.

Why a render with caches returned me a different render comparing to a render without cache? And, in my cached render, light seemed to leak to other parts, for example, inside the microwave (it´s not supposed to have any light inside it), and above the cabinets.
No Cache.JPG
Cached.JPG
Thanks in advance