POV-Ray : Newsgroups : povray.animations : build animation from dynamic solver results : Re: build animation from dynamic solver results Server Time
26 Jun 2024 14:28:40 EDT (-0400)
  Re: build animation from dynamic solver results  
From: Javier Gil
Date: 17 Dec 2003 10:20:01
Message: <web.3fe0733298a8084056dfb22b0@news.povray.org>
You are wright !

I have replaced the contents of the time loop as follows :

%%%%%%%%%%%%%%%%%%%%%

#declare counter=0;
#declare AuxV1=0;
#declare AuxV2=0;
#declare AuxV3=0;

#if ( clock <= 1 )

     #declare counter = 10*clock;

     #declare Count=0;

     #fopen MyFile "mydata.txt" read

     #while (Count < counter)

       #if ( defined(MyFile) )

          #read (MyFile,Var1,Var2,Var3)
          #declare AuxV1=Var1;
          #declare AuxV2=Var2;
          #declare AuxV3=Var3;

       #end

       #declare Count=Count+1;

     #end

     #fclose MyFile

     test1(AuxV1,AuxV2,AuxV3)

#end

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

an it works as I spected.

Thank you for your advice. This way I can represent my simulations properly.


Post a reply to this message

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