![](/i/fill.gif) |
![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
"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
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
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] ida utb hb se
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
H.E. Day <hed### [at] fci net> 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
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |