POV-Ray : Newsgroups : povray.animations : can you help with how to best save the simulation for rendering animation i= Server Time
1 Apr 2026 17:28:10 EDT (-0400)
  can you help with how to best save the simulation for rendering animation i= (Message 1 to 3 of 3)  
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

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