POV-Ray : Newsgroups : povray.animations : What developers for animation of the using bone do? : Re: What developers for animation of the using bone do? Server Time
27 Apr 2024 09:03:58 EDT (-0400)
  Re: What developers for animation of the using bone do?  
From: Kenneth
Date: 23 Nov 2015 12:50:03
Message: <web.5653515d5a295d4933c457550@news.povray.org>
clipka <ano### [at] anonymousorg> wrote:
> Am 22.11.2015 um 11:41 schrieb LanuHum:
> > clipka <ano### [at] anonymousorg> wrote:
> >>
> >> UberPOV does provide a way to carry over selected data from one frame to
> >> the next though.
> >
> > How it is realized?
>
> Besides global and local variables, UberPOV has an additional
> "super-global" variable scope, which carries over from frame to frame
> (and even from scene to scene, in the Windows version; this is an
> unintended side effect but difficult to get rid of in the current
> architecture) as long as you don't exit POV-Ray or explicitly get rid of
> the variable using "#undef".
>
> The keyword to define a variable at this "super-global" scope is
> "#persistent".
>
> To actually benefit from the mechanism, you'd typically use:
>
>     #ifndef(Foo)
>     #persistent Foo = ...
>     #endif
>
>
> (There is one known caveat: Random number generators currently can't be
> carried over between frames.)

Thanks for that info; very informative. (I'm embarrassed to say that I haven't
yet done any *animation* in v3.7 or UberPOV. I'm looking forward to doing so!)


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.