Page 1 of 1
caching meshes
Posted: Sat May 15, 2010 10:26 pm
by Josephus Holt
JD, I ran a short animation for a sun study and enabled "cache meshes" (the view stayed constant, only the time/date changed from frame to frame), however, every new frame I got this message "cached mx meshes have been invalidated" resulting in recreating the meshes for every frame.

Re: caching meshes
Posted: Sat May 15, 2010 11:02 pm
by JDHill
How did you create the animation? Are you trying to use Rhino's sun study, or are you scripting the plugin, as demonstrated in the manual?
Re: caching meshes
Posted: Sun May 16, 2010 2:35 am
by Josephus Holt
I did it the way you told me some time ago as to how to batch render.
I set up the scene/lighting for the first date/time>"start animation">"render", then changed the date/time>"render", etc until the last date/time, then "end animation".
Re: caching meshes
Posted: Sun May 16, 2010 2:17 pm
by JDHill
Pretty sure I know what's happening - do you have the 'show sun in viewport' feature enabled? That moves a light in the viewport, and this causes the plugin to invalidate its cache. If anything physical in the scene is added, deleted, moved, etc., then the cache will be invalidated. The only actions which will not invalidate the cache are changes to the camera's position, material assignments, and scene parameter changes.
Re: caching meshes
Posted: Mon May 17, 2010 12:48 am
by Josephus Holt
JDHill wrote:Pretty sure I know what's happening - do you have the 'show sun in viewport' feature enabled? That moves a light in the viewport, and this causes the plugin to invalidate its cache. If anything physical in the scene is added, deleted, moved, etc., then the cache will be invalidated. The only actions which will not invalidate the cache are changes to the camera's position, material assignments, and scene parameter changes.
Yes, I've had it enabled during this process. Will have to remember to disable it...next time.
Re: caching meshes
Posted: Fri Jul 02, 2010 8:44 am
by osuire
Jeremy,
shouldn't this be considered as a minor bug ?
I would suggest to add the sun light object displacements to the list of things that do not invalidate the cached meshes.
Cheers,
--
Olivier
Re: caching meshes
Posted: Fri Jul 02, 2010 12:30 pm
by JDHill
Well, not a bug, really, but I'll see what it would cost (i.e. in processing) to try to single out that one object.