news:lGf### [at] econymdemoncouk...
> Wasn't it Bret who wrote:
> >I'm currently running an animation that (so far) has taken 23 hours to parse
> >and 1.5 hours to render. It seems to be parsing everything for every
> >frame. Is there anyway to convince POV to just read the files in once?
>
> If it's taking that long to parse, then I guess that you're doing an
> awful lot of actual calculation in your POV code. You might consider
> performing these calculations only in the first frame, writing the
> calculated data out to a file, and coding subsequent frames to read the
> file instead of repeating the calculations.
>
> #if (frame_number = initial_frame)
> . . . do the calculations
> #fopen F "temporary.dat" write
> #write(. . .)
> #fclose F
> #else
> // don't do the calculations
> #fopen F "temporary.dat" read
> #read(. . .)
> #fclose F
> #end
>
> --
> Mike Williams
> Gentleman of Leisure
Another way to do that:
#if (frame_number = initial_frame)
. . . do the calculations
#fopen F "temporary.inc" write
#write(. . .) //in pov's format
#fclose F
#end
#include "temporary.inc"
...
Post a reply to this message
|