|
|
>I was trying to animate the process of multiple particle collisions
with
> generated data by another program. The data file contains position,
> translational velocity & angular velocity for N particle on T steps. I
> used #while-#end directive and a counter "istep" trying to read in
> data for all T steps, but it seems that it repeatedly read data for
> first step. Could anybody help me out? With my thanks in advance.
>
> david
I was redirected to post this question here. I figured it out why but
still
need help.
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.
David
Post a reply to this message
|
|
|
|
"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
|
|