POV-Ray : Newsgroups : povray.animations : can you help with how to best save the simulation for rendering animation i= Server Time
6 Apr 2026 10:10:06 EDT (-0400)
  can you help with how to best save the simulation for rendering animation i= (Message 1 to 4 of 4)  
From: Cossack 
Subject: can you help with how to best save the simulation for rendering animation i=
Date: 28 Mar 2026 15:45:00
Message: <web.69c82eb62c6d138995c57695d49cbb40@news.povray.org>
I just have a project in python where cubes fall, and I have options: 1. save
each frame in .txt as a list. 2. (not very good) create a .pov file for each
frame.
which one to use?


Post a reply to this message

From: jr
Subject: Re: can you help with how to best save the simulation for rendering animati=
Date: 28 Mar 2026 15:55:00
Message: <web.69c8320d88205a9e48bf72fa6cde94f1@news.povray.org>
hi,

"Cossack " <nomail@nomail> wrote:
> I just have a project in python where cubes fall, and I have options: 1. save
> each frame in .txt as a list. 2. (not very good) create a .pov file for each
> frame.
> which one to use?

for option (1) there'd be "supporting code" in form of my 'Filed()' macro; it
comes with documentation and animation examples.
<wiki.povray.org/content/User:Jr#SDL_code>


regards, jr.


Post a reply to this message

From: ingo
Subject: Re: can you help with how to best save the simulation for rendering animati=
Date: 29 Mar 2026 04:45:00
Message: <web.69c8e55c88205a9e17bac71e8ffb8ce3@news.povray.org>
"Cossack " <nomail@nomail> wrote:
> I just have a project in python where cubes fall, and I have options: 1. save
> each frame in .txt as a list. 2. (not very good) create a .pov file for each
> frame.
> which one to use?

What I generally (try to) do:

create a base scene plus an .inc file,

have the program create .inc file content with only the variable data, loop
enrolled.

have the program call POV-Ray per frame.

if there is for example collision logic that you use `trace` for, have POV-Ray
write the data your program can uses. In this case that could be a .py with a
list you import in your python program.


ingo


Post a reply to this message

From: Clarence1898
Subject: Re: can you help with how to best save the simulation for rendering animati=
Date: 3 Apr 2026 22:05:00
Message: <web.69d0701588205a9e8db55336e0accf30@news.povray.org>
"Cossack " <nomail@nomail> wrote:
> I just have a project in python where cubes fall, and I have options: 1. save
> each frame in .txt as a list. 2. (not very good) create a .pov file for each
> frame.
> which one to use?

The process I use to generate animations is similar to option 2.  I create a pov
file for each frame like this: file0000.pov, file0001.pov, file0002.pov etc.
Then I generate a list of commands: povray +Ifile0000.pov +Ofile0000.png <povray
options>; povray +Ifile0001.pov +Ofile0001.png <options>; etc. Then run that
file as a script.  I automatically generate the commands and the script so it
takes minimal effort to do.  The scripts run on either linux or windows wsl.
You could do it on just windows, but the commands will be a little different.
If you have multiple pcs you can distribute the commands across them.


Post a reply to this message

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