POV-Ray : Newsgroups : povray.advanced-users : reading external files : Re: reading external files Server Time
29 Jul 2024 12:24:47 EDT (-0400)
  Re: reading external files  
From: Christoph Hormann
Date: 14 Mar 2002 16:15:30
Message: <3C9112F1.7A251548@gmx.de>
"zhiwu (david) fang" wrote:
> 
> [...]
> 
> Every time POV-Ray reads an external file, it starts from the first
> record.
> So what I did was to read in N*clock*#IFF for current  "clock",  and
> skip
> first N*(clock*#IFF -1). The approach is very inefficient if the data
> file
> is big. I was wondering if anybody has better idea. Thanks.

One obvious approach is to split the data into several small files.  

In megapov you can also use 'persistence of variables' function to avoid
newly reading the file for every frame.

Christoph

-- 
POV-Ray tutorials, IsoWood include,                 
TransSkin and more: http://www.tu-bs.de/~y0013390/  
Last updated 13 Mar. 2002 _____./\/^>_*_<^\/\.______


Post a reply to this message

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