Distributed rendering of single images #104327
@ -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", {
|
||||
|
Loading…
Reference in New Issue
Block a user