pyvale.render.blender.blendertools module

Camera helpers specific to the Blender rendering backend.

blender_camera_from_resolution(pixels_num, pixels_size, working_dist, resolution)[source]

Create a perspective camera from working distance and resolution.

blender_field_of_view(camera)[source]

Calculate Blender’s perspective field of view for a camera.

blender_mm_per_pixel(camera)[source]

Calculate the horizontal world length represented by one pixel.

focal_length_from_resolution(pixels_size, working_dist, resolution)[source]

Calculate the focal length for a requested image resolution.