|
|
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.)
I met this problem also. Could you please give some more details? It will be
very nice if you can give an example. Thanks a lot in advance.
Shouyang
Post a reply to this message
|
|