-
How do you render a scene with a given resolution that differs from the original resolution in the scene XML file? I want to render several scenes with the resolution half of the original resolution in their XML file. for file in files:
scene = mi.load_file(file)
sensor = scene.sensors()[0]
w, h = get_the_original_resolution_of_scene(sensor, ...)
w /= 2
h /= 2
new_sensor = make_new_sensor_with_half_resolution(w, h, sensor, ...)
output = mi.render(scene, sensor=new_sensor) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @ciy405x The |
Beta Was this translation helpful? Give feedback.
Hi @ciy405x
The
Film
exposes asize
parameter throughmi.traverse()
. Take a look at thehdrfilm
documentation for example. You should be able to modify this directly, without having to create a new sensor.