-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender_sequence.py
More file actions
34 lines (32 loc) · 989 Bytes
/
render_sequence.py
File metadata and controls
34 lines (32 loc) · 989 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import subprocess
raytracer_exe_path = "/home/wouter/Documents/raytracer/raytracer/cmake-build-release/src/exe/raytracer_exe"
frames_folder = "/media/wouter/Data/Piggybank/gltf_export/bar/"
output_folder = "/media/wouter/Data/Piggybank/render_output/bar/"
start_frame = 165
end_frame = 230
for i in range(start_frame, end_frame+1, 1):
print("Rendering " + frames_folder + str(i) + ".glb")
subprocess.call([raytracer_exe_path,
"--workdir", frames_folder,
"--scene", "#WORKDIR#/" + str(i) + ".glb",
"--output", output_folder + str(i)+".exr",
"--outputtype", "exr",
"--width", "1920",
"--height", "1080",
#"--xstart", "0",
#"--xend", "576",
#"--ystart", "0",
#"--yend", "1080",
#"--soupify",
#"--pmrayspointlamp", "1E7",
#"--pmraysarealamp", "1E5",
"--aageometry", "32",
"--aamaterial", "64",
"--loadpm",
#"--pmdepth", "0",
"--pmmode", "caustics",
"--pmfile", "/home/wouter/Documents/rt/photonmap"
])
print("")
print("#############")
print("")