POV-Ray : Newsgroups : povray.unofficial.patches : Persistence of animation Server Time
2 Nov 2024 05:22:47 EDT (-0400)
  Persistence of animation (Message 1 to 4 of 4)  
From: H E  Day
Subject: Persistence of animation
Date: 20 Mar 2000 23:52:57
Message: <38D6FE9A.781CF125@fci.net>
I've been trying out the labeling thang in MegaPov.  From the docs I'd
expect it to parse a labeled object once and then keep it in memory for
the entire animation without parsing it again.  Instead it parses the
labeled object up into memory for the first frame, and then parses it
*again* for each frame, leading to a drastic speed decrease.  How do I
get this to work?
Oh, i tried to use "delete {}" but MP doesn't seem to recognize it.
HELP!

--
H.E. Day


Post a reply to this message

From: Bouf
Subject: Re: Persistence of animation
Date: 21 Mar 2000 03:18:34
Message: <38D734A6.D0E78614@nanterre.marelli.fr>
"H.E. Day" wrote:
> 
> I've been trying out the labeling thang in MegaPov.  From the docs I'd
> expect it to parse a labeled object once and then keep it in memory for
> the entire animation without parsing it again.  Instead it parses the
> labeled object up into memory for the first frame, and then parses it
> *again* for each frame, leading to a drastic speed decrease.  How do I
> get this to work?
> Oh, i tried to use "delete {}" but MP doesn't seem to recognize it.
> HELP!
> 

I'm not sure, but I think that you have to declare your object only in
the first frame, with :

#if (clock = 0)

...declare something persistant...

#end

Bouf.


Post a reply to this message

From: Mikael Carneholm
Subject: Re: Persistence of animation
Date: 21 Mar 2000 16:08:25
Message: <38D7E4B4.11F1C996@ida.utb.hb.se>
Bouf wrote:

> I'm not sure, but I think that you have to declare your object only in
> the first frame, with :
>
> #if (clock = 0)
>
> ...declare something persistant...
>
> #end
>
> Bouf.

Better still:

#ifndef(MyThingy)
  #declare MyThingy=...
#end

----------------------------------------------------
Mikael Carneholm
Dep. of Computer Science and Business Administration


Personal homepage:
http://www.studenter.hb.se/~arch
E-mail:
sa9### [at] idautbhbse


Post a reply to this message

From: Nathan Kopp
Subject: Re: Persistence of animation
Date: 21 Mar 2000 16:14:53
Message: <38d7e64d@news.povray.org>
H.E. Day <hed### [at] fcinet> wrote ...
> I've been trying out the labeling thang in MegaPov.  From the docs I'd
> expect it to parse a labeled object once and then keep it in memory for
> the entire animation without parsing it again.

Maybe the docs should be reworded to make them clearer:

"If you give a label to an object, the object will not be destroyed between
frames.  It is the responsibility of the user to make sure that the object
is not created multiple times, either by using a flag with a persistent
variable or by checking the 'clock' variable."

-Nathan


Post a reply to this message

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