POV-Ray : Newsgroups : povray.binaries.animations : Uberpov persistent feature for animation of big scene : Re: Uberpov persistent feature for animation of big scene Server Time
19 Apr 2024 22:54:17 EDT (-0400)
  Re: Uberpov persistent feature for animation of big scene  
From: clipka
Date: 6 Jan 2018 22:11:26
Message: <5a518fde$1@news.povray.org>
Am 07.01.2018 um 01:04 schrieb Kenneth:

> Do you mean like this... (I'm using his very first texture as an example)...
[snip]
> *If* that's correct, then I do see that the #persistent is
> only invoked on the first animation frame; all the following frames will use the
> already-'declared' APPID_340814880_342762184... because it's 'persistent.'
> 
> Am I thinking right?

Yes.

> It looks like most of his entire scene is in a union, so here's a question:
> Instead of having to wrap each and every #persistent FOO = ......  in an #ifndef
> block, could the entire UNION have only *one* #ifndef block around it instead?
> Or, maybe like...
> 
> #ifndef(FOO)
> #persistent FOO =
> union{.....
> ........ everything (NO #persistent for any of these items, but regular #declares
> or #locals, if needed).........
> ...............
> }
> #else
> #end
> 
> object{FOO}

I presume you mean something like this:

    #ifndef(MyBigFatUnion)
      #define Blah = ...
      #define Dunno = ...
      ...
      #persistent MyBigFatUnion = union {
        object { Blah }
        object { Dunno }
        ...
      }
    #endif
    object { MyBigFatUnion }

That should indeed work fine.


Post a reply to this message

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