Rendering multiple files in POV-Ray (Windows)

I know this was asked before, but none of the answers helped me. So my problem is this: I have a bunch of .pov files called XXXXX000001 .... and I want to render them, but the queue inside POV-Ray only allows you to display 500 at a time. So, is there a way to do all this automatically? I know the answer is to write a script, but I don’t know much about it, so if you could give me step-by-step instructions, I would be grateful.

0
source share
2 answers

Create the PIV-Ray.ini file SimpleAnimation.ini using notepad, and in this file specify the number of .pov files as Initial_Frame / Final_Frame . This .ini file is the file that you open and run to display all frames. You can also use Subset_Start_Frame / Subset_End_Frame with duplicate .ini files when rendering subsets across multiple machines:

Input_File_Name="SimpleAnimation.pov"
Width=800
Height=600
Antialias=On
Antialias_Threshold=0.05
Output_File_Type=N

Initial_Frame=1
Final_Frame=124

# Change these values to render a subset of the frames #
Subset_Start_Frame=1
Subset_End_Frame=124

Then your SimpleAnimation.pov file will be downloaded once per frame, and in this .pov file you simply load the desired frame file using the POV-Ray variable frame_number :

#if(frame_number=1)
#include "SimpleAnimation000001.pov"
#end
#if(frame_number=2)
#include "SimpleAnimation000002.pov"
#end
#if(frame_number=3)
#include "SimpleAnimation000003.pov"
#end

Input_File_Name SimpleAnimation.ini Final_Frame, 124 :

SimpleAnimation001.png
SimpleAnimation002.png
...
SimpleAnimation124.png
0

SimpleAnimation.pov :

#include concat ( "FolderPath/SimpleAnimation.", str (frame_number, -6, 0), ".pov" )

0

Source: https://habr.com/ru/post/1568733/


All Articles