 |
 |
|
 |
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"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
|
 |
|  |
|  |
|
 |
|
 |
|  |