POV-Ray : Newsgroups : povray.animations : Animation of Numerical Simulations : Re: Animation of Numerical Simulations Server Time
3 May 2024 16:26:53 EDT (-0400)
  Re: Animation of Numerical Simulations  
From: clipka
Date: 25 Oct 2012 14:50:15
Message: <508989e7$1@news.povray.org>
Am 25.10.2012 20:25, schrieb Sereib:

> This would require some kind of global variables which keep their value between
> two animation steps called by the ini file. Any idea how this could be done?
> Writing the variables (= e. g. the positions and speed vectors of the star
> cluster calculated up to now) in a text-file, and importing it in the next
> animation step?

Yes.

Use #write to write to a text file, and read the data back in the next 
frame using #read.

(Alternatively, some people use #write to generate an .inc file to be 
#included in the next frame.)


Post a reply to this message

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