POV-Ray : Newsgroups : povray.general : #read fiasco : Re: #read fiasco Server Time
11 Aug 2024 09:20:55 EDT (-0400)
  Re: #read fiasco  
From: John VanSickle
Date: 8 Aug 1999 14:10:47
Message: <37ADCB22.8CF1DAB8@erols.com>
Greg M. Johnson wrote:
> 
> I wish that the documentation better explained the syntax for #read
> and #write.
> 
> I have created a file of the positions and velocities of a number of
> particles, (34 particles at 350 time periods).  I have pasted the
> first four records from my file.

Generally, when I have an outside program generate data for POV-Ray,
I have the same program output a standard .INC file, with all of the
#declares, #locals, etc., needed for POV-Ray to parse the file directly.
This requires very little extra effort in the program that generates the
data, and the results parse a lot faster.

For instance, in my last IRTC entry, the insect parts were made of
bicubic patches, which I converted to meshes using a bit of macro
code.  I got tired of waiting for the macro to parse, so I modified the
macro to write the triangles to a file, in full POV syntax.  From then
on I merely #included the generated files, in place of the original
generating code.  Things parsed much more quickly.

Regards,
John


Post a reply to this message

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