|
|
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
|
|