POV-Ray : Newsgroups : povray.general : Any way to avoid repeated parsing? : Re: Any way to avoid repeated parsing? Server Time
11 Aug 2024 03:23:12 EDT (-0400)
  Re: Any way to avoid repeated parsing?  
From: Tomas Plachetka
Date: 16 Sep 1999 15:34:52
Message: <37E1465A.55670386@uni-paderborn.de>
John VanZwieten wrote:
> 
> Is it necessary for POV-Ray to parse a file separately for each view of the
> same scene?  Is there any way to "save" the result of the parsing to use in
> repeated raytracings from different views?
> 
> Thanks in advance for any help with this.
> 
> -John VanZwieten

There is no simple way how to do this.
POV-Ray is an offline program which reads
its input, computes a pretty output and
terminates. There is an animation loop,
but it is based on reparsing the scene.

I noticed some debates on a binary format
(this is probably what you mean) but it
was never implemented (binary triangle 
meshes are the only exception). Anyway,
a binary format would not lead to a 
significant parsing speedup.

You asked for "any way". OK, there is a 
way how to do a camera animation without 
reparsing the scene. This requires some
programming. You have to write a program
which mimicks POV-Ray but keeps running
unless told to terminate. Such an 
interactive POV-Ray must have an option 
to parse a new file after rendering a
frame, without destroying the original
scene which is still in memory. The new 
file will contain just the new camera.
That's it.

	y.


Post a reply to this message

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