﻿# Embree motion blur datasets: map animation samples into shutter time deliberately

Keep Embree motion geometry, ray times and synthetic labels aligned by separating animation timestamps, normalized shutter coordinates and exposure-integrated image measurements.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-embree-motion-shutter-time-geometry-samples/
Language: en

## Define the time represented by an image

A synthetic moving-object dataset can pair a blurred image with an instantaneous pose or mask. That pairing may be intentional, but it must be specified. Decide whether the target describes an exposure center, another instant or an integrated measurement. Preserve the mapping from animation time to the camera's shutter interval before generating geometry samples, since a frame number alone does not define the time evaluated by each rendering ray.

## Supply the right motion samples

The [geometry time-step reference](https://github.com/RenderKit/embree/blob/423865d4a0b7ab6cf9bcf8e5df9cab31bcbfc1c6/doc/src/api/rtcSetGeometryTimeStepCount.md) describes motion-sample requirements by geometry type. Vertex-based geometry needs the corresponding vertex buffers, instances need transforms and user geometry needs suitable bounds and intersection behavior. Setting a time-step count does not generate the animation automatically. Check that each sample describes the same intended asset under the supported motion representation instead of treating unrelated mesh exports as interchangeable temporal slots.

## Map the geometry interval explicitly

The [time-range documentation](https://github.com/RenderKit/embree/blob/423865d4a0b7ab6cf9bcf8e5df9cab31bcbfc1c6/doc/src/api/rtcSetGeometryTimeRange.md) defines geometry motion relative to the shutter interval and permits ranges that differ from the full exposure window. Retain that range with the sampled positions or transforms. If an animation source uses seconds or frame indices, convert deliberately into the renderer's coordinate system. Changing exposure duration without updating the mapping can change apparent speed or visibility in ways unrelated to the intended scene variation.

## Initialize the ray's time as part of the query

The [ray reference](https://github.com/RenderKit/embree/blob/423865d4a0b7ab6cf9bcf8e5df9cab31bcbfc1c6/doc/src/api/RTCRay.md) includes the motion-blur time alongside origin, direction and segment. Preserve a valid value under the API contract and define how the application samples exposure. An uninitialized timestamp is not a random shutter sample. Likewise, evaluating every ray at one instant produces a different observation from integrating motion over the exposure, even when geometry contains several valid time steps.

## Validate a controlled moving object

Move a recognizable object along a known path and compare instantaneous diagnostic renders with the intended exposure-integrated image and target timestamp. Inspect first and last motion samples as well as an intermediate state. The guides to [video presentation timestamps](/journal/data-guide-pyav-video-pts-timebase/) and [image coordinate integrity](/journal/data-guide-image-exif-box-coordinate/) provide adjacent context. Save the shutter mapping and label convention with each sample so downstream learning can distinguish expected motion blur from a temporal alignment error introduced during dataset generation.
