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
26 Apr 2024 11:12:07 EDT (-0400)
  Re: What developers for animation of the using bone do?  
From: LanuHum
Date: 22 Nov 2015 09:00:02
Message: <web.5651ca485a295d497a3e03fe0@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!


Post a reply to this message

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