PGI Cache from file
Posted: Mon Apr 29, 2019 6:54 pm
Can we use same PGI cache from saved file for animation or for different camera position?
Show your work, get help, participate in development
https://forums.luxcorerender.org/
Yes, camera-only animations are the one where you can use persistent PGI cache.sanjinms wrote: Mon Apr 29, 2019 6:54 pm Can we use same PGI cache from saved file for animation or for different camera position?
There is a trick, with camera motion blur, you can use to build a cache that cover all the animation. It was discussed in PGI thread: render a single image with a camera motion blur from the the position of the first frame to the one of the last one. So you can create a persistent cache that includes all the information required by the animation, even if you move across many rooms. You can than use the already existing cache file for the real animation.sanjinms wrote: Mon Apr 29, 2019 8:44 pm But what if I, for example, move camera into another room where the photons are less quality then the photons in room where cache is saved? Shoud I save cache separately for each room using keyframe checked on to save new cache when camera is in another room? (talking about Archviz animation)
Not at the moment but view port rendering is intended for interactive scene editing so I doubt it would be useful.sanjinms wrote: Mon Apr 29, 2019 8:44 pm Another question, is it possible to use saved cache for Viewport rendering?
All parameters can be edited however, in theory, it is better if you should generated the persistent cache with the "wider" values, for instance if you animating the field of view between 30 and 75, you should create the cache with 75.epilectrolytics wrote: Tue Apr 30, 2019 12:54 pm I'd like to know what camera properties can / cannot / shouldn't be altered after a cache is saved:
- motion blur (obviously yes, when the above mentioned trick is considered)
- depth of field?
- angle of view?
- render resolution?
You can probably just use a panoramic camera in the middle of the room to generate a quite perfect cache for a single environmentepilectrolytics wrote: Tue Apr 30, 2019 3:18 pm Currently I'm trying to animate in my bunker scene and could not get the motion blur trick to yield an homogenous cache, instead I moved the camera in the middle and doubled the field of view so that start and end point were covered.