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 06:01:00 EDT (-0400)
  Re: What developers for animation of the using bone do?  
From: clipka
Date: 22 Nov 2015 06:52:56
Message: <5651ac98$1@news.povray.org>
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.)


Post a reply to this message

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