|
|
I'll wait and see what the animation looks like. You
might want to consider releasing the code to the
POV-public? :-)
--
Tim Nikias v2.0
Homepage: http://www.digitaltwilight.de/no_lights
Email: Tim### [at] gmxde
> Tim Nikias v2.0 wrote:
> >If you'd set your JAVA program to output like this:
> >Coordinate , Orientation, Coordinate, Orientation, ...,
> >if you know the amount of boids, and if you make sure
> >that there's always a comma after every coordinate
> >or orientation (even after the last one!), you could use
> >something like:
> >
> >#declare Boid_Amount=0;
> >#declare _Counter=0;
> >#fopen _D Data_File read
> >//This jumps ahead to the needed frame
> >#while (_Counter<frame_number*Boid_Amount)
> > #read (_D,_Coord, _Orient)
> > #declare _Counter=_Counter+1;
> >#end
> >
> >//This reads the required data
> >#while(defined(Data_File) & Boid<Boid_Amount)
> > #read (_D, _Coord, _Orient)
> > #declare Boid=Boid+1;
> > [... Do some stuff with _Coord and _Orient to place a boid ...]
> >#end
> >#fclose _D
>
>
> And that will do the job nicely !
> Thanks for getting me started - I should have been more organised, but the
> deadline is running up close - will posta finished animation as soon as i
> have one.
>
> Thanks once again,
>
> oli
>
Post a reply to this message
|
|