Distributed rendering of single images #104327

Merged
David Zhang merged 22 commits from David-Zhang-10/flamenco:single-image-render into main 2024-09-03 06:47:49 +02:00
Showing only changes of commit a33bf01901 - Show all commits

View File

@ -144,11 +144,12 @@ function authorRenderTasks(settings, renderDir, renderOutput) {
render = bpy.context.scene.render
render.image_settings.file_format = 'OPEN_EXR_MULTILAYER'
render.use_compositing = False
overscan = 16
render.border_min_x = ${border[0]} / ${settings.resolution_x}
render.border_min_y = ${border[1]} / ${settings.resolution_y}
render.border_max_x = ${border[2]} / ${settings.resolution_x}
render.border_max_y = ${border[3]} / ${settings.resolution_y}
render.border_min_x = max(${border[0]} - overscan, 0) / ${settings.resolution_x}
render.border_min_y = max(${border[1]} - overscan, 0) / ${settings.resolution_y}
render.border_max_x = min(${border[2]} + overscan, ${settings.resolution_x}) / ${settings.resolution_x}
render.border_max_y = min(${border[3]} + overscan, ${settings.resolution_x}) / ${settings.resolution_y}
render.use_border = True
bpy.ops.render.render(write_still=True)`
const command = author.Command("blender-render", {