RTCSETGEOMETRYTIMERANGE(3embree4)
π rtcSetGeometryTimeRange π
okay bestie so we're deep in the Embree Ray Tracing Kernels 4 manual, section 3, and today's main character is rtcSetGeometryTimeRange β she sets the time range for a motion blur geometry. no cap. π¦
β¨ NAME β¨
rtcSetGeometryTimeRange β sets the time range for a motion blur geometry πΈ
β¨ SYNOPSIS β¨
#include <embree4/rtcore.h>
void rtcSetGeometryTimeRange(
RTCGeometry geometry,
float startTime,
float endTime
);
β¨ DESCRIPTION β¨
so the rtcSetGeometryTimeRange function sets a time range, and that range defines the start (and end time) of the first (and last) time step of a motion blur geometry. it's giving scheduler energy. π
the time range is defined relative to the camera shutter interval [0,1], but lowkey it can be arbitrary. so like:
startTimecan be smaller, equal, or larger than0, indicating a geometry whose animation definition starts before, at, or after the camera shutter opens. β- similarly,
endTimecan be smaller, equal, or larger than1, indicating a geometry whose animation definition ends after, at, or before the camera shutter closes. π
and the rule is non-negotiable: startTime has to be smaller or equal to endTime. periodt. π
the default time range, when this function is not called, is the entire camera shutter [0,1]. π
for best performance, at most one time segment of the piece wise linear definition of the motion should fall outside the shutter window to the left and to the right. so pls don't set thestartTimeorendTimetoo far outside the[0,1]interval if you want that best performance, bestie. π
this time range feature will also allow geometries to appear and disappear during the camera shutter time if the specified time range is a sub range of [0,1]. iconic behaviour honestly. β¨
also pls have a look at the rtcSetGeometryTimeStepCount function to see how to define the time steps for the specified time range. iykyk. π«Ά
β¨ EXIT STATUS β¨
on failure an error code is set that can be queried using rtcGetDeviceError. π so like, check it, don't just vibe and hope.
β¨ SEE ALSO β¨
- [rtcSetGeometryTimeStepCount]
that's the whole thing, you ate it π this page lives in the Embree Ray Tracing Kernels 4 manual, section 3, and she's signed off as rtcSetGeo...yTimeRange(3) β go forth and motion-blur slay, bestie π§π
π¦ where this page comes from
- alpine 3.24: embree-doc 4.4.1-r0 Β· Apache-2.0
- arch rolling: embree 4.4.1-1 Β· Apache-2.0
- fedora 43: embree 4.4.1-1.fc43 Β· Apache-2.0
- fedora 44: embree 4.4.1-1.fc44 Β· Apache-2.0
- nixpkgs unstable: embree 4.4.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms