TECHNOLOGY

Mitsuba fog datasets: assign the camera medium and scale extinction with scene units

In this article
THE QUICK TAKE

Scaling a fog scene without adjusting extinction changes optical thickness, even when the geometry looks identical.

Begin with optical thickness

A foggy training image depends on how much participating material a light path traverses. Geometric distance and extinction work together; neither alone defines the attenuation. If a scene is rescaled to match another asset’s units while extinction remains unchanged, its optical thickness changes. Document the distance convention and the coefficient convention together before interpreting differences in generated visibility as new scene diversity rather than an accidental units mismatch.

Attach the correct medium to boundaries

The participating-media reference describes interior and exterior medium assignments on shapes. These assignments tell the renderer what medium a path enters or leaves at a boundary. A container mesh is not by itself a complete fog definition. Verify its intended orientation and medium references, especially when combining imported assets or moving the camera across a volume boundary in an automated dataset generator.

Identify the camera’s initial environment

The same reference explicitly requires a medium assignment when fog includes the sensor. Otherwise, rays can start with the wrong medium state even though visible geometry encloses the camera. Store the camera-medium reference as part of the sample configuration. Test a camera inside and outside the volume rather than assuming the state will be inferred from appearance. A physically unexplained discontinuity during that movement is a useful warning signal.

Match coefficients to world distances

The scene format provides world-space quantities, while media specify extinction in inverse scene units. Preserve any conversion applied through a coefficient scale. The integrator reference distinguishes volume-capable transport from surface-only path tracing. Correct units cannot compensate for an integrator that omits the participating-medium transport required by the scene. Check both model configuration and numerical values when debugging missing fog.

Validate attenuation before adding complexity

Use a simple scene with a known viewing distance, fixed lighting and a uniform medium. Compare controlled changes in distance and extinction before introducing heterogeneous grids or learned appearance. The guides to renderer compatibility and render capacity provide operational context. Keep the test’s geometry, camera state and coefficients with the export so later training runs can distinguish intended atmospheric variation from a broken simulation boundary or unit conversion.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles