﻿# Mitsuba batch cameras: preserve per-view layout and effective shared settings

Use the Mitsuba batch sensor for multi-view rendering while tracking combined film dimensions, view slices, shared sampling and shutter overrides.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-mitsuba-batch-sensor-view-layout-overrides/
Language: en

## Treat the output as a structured view collection

Rendering many camera views in one call can reduce repeated tracing overhead, but the resulting image needs a view-layout contract. The model may expect separate examples or a synchronized group of observations. Specify each camera's identity and its slice of the combined output before exporting arrays. A tensor with the expected overall dimensions can still pair the wrong viewpoint with calibration metadata or a supervision target.

## Follow the batch sensor's resolution rule

The [sensor reference](https://mitsuba.readthedocs.io/en/latest/src/generated/plugins_sensors.html) describes a batch meta-sensor that groups sub-sensors for simultaneous rendering. Its film width must be a multiple of the number of sub-sensors. Preserve the mapping between the combined film and individual views instead of treating its full dimensions as the intrinsics of every camera. Check the ordering with an asymmetric scene whose viewpoints are easy to distinguish numerically and visually.

## Resolve shared settings explicitly

Mitsuba documents that the batch sensor's film, sampler and shutter timings typically supersede the corresponding sub-sensor settings. A nested camera can therefore appear to request one sample budget while another configuration is effective. Record the actual shared settings used for the render. The [film documentation](https://mitsuba.readthedocs.io/en/latest/src/generated/plugins_films.html) helps distinguish output size and channel representation from camera pose, while the [sampler reference](https://mitsuba.readthedocs.io/en/latest/src/generated/plugins_samplers.html) defines the sampling configuration being shared.

## Check integrator compatibility before scheduling

The current sensor documentation limits the batch plugin to path-tracing-style integrators and excludes particle tracing. Do not assume any integrator can consume it simply because ordinary perspective sensors work in a separate test. Render a small complete job using the intended backend, integrator and channels. Performance improvement is workload-dependent and should be measured against separate-view execution with equivalent sampling and output semantics rather than inferred from a successful scene load.

## Keep slices and calibration together

Export a view manifest containing camera identities, transforms, projection settings and combined-image slices. Validate it after the training loader performs its cropping or reshaping. The guides to [image coordinate integrity](/journal/data-guide-image-exif-box-coordinate/) and [renderer compatibility](/journal/gpu-llm-renderer-compatibility-matrix/) provide related context. A batch is ready when every extracted view retains the correct calibration and supervision relationship, and when the recorded sampling and exposure settings match the configuration that actually ran.
