POV-Ray : Newsgroups : povray.animations : How to speed up parsing in animation scenes? : Re: How to speed up parsing in animation scenes? Server Time
1 Jun 2024 07:59:33 EDT (-0400)
  Re: How to speed up parsing in animation scenes?  
From: Icetoaster
Date: 5 Apr 2006 19:15:00
Message: <web.44344e4bc3ee1f7fe62e2cd0@news.povray.org>
"Slime" <fak### [at] emailaddress> wrote:
> > Is there a possibility to speed up things like that?
> > Or is it my fault, because I use a rand() function for some
> > objects.
>
> Well, POV-Ray always re-parses the file each frame, and there's nothing that
> can be done about that. However, if there's any part of your scene which is
> dynamically generated (for instance, many objects created in a loop or
> recursively) and doesn't change depending on the clock, you could #write it
> to a file during the first frame, in POV-Ray SDL, and then #include that
> file in the rest of the frames.
>
>  - Slime
>  [ http://www.slimeland.com/ ]

How can I write those static objects to a file?
I have looked for the description of the #write command, but this seem
to make sense only for strings and numbers. I have e.g. a staple of
wooden trunks, which are translated by a small random value to make it
look more natural.

How can I output rendered objects with this method? And under what
circumstances
does this save time?

Thanks for help,
Icetoaster


Post a reply to this message

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