RTCSETGEOMETRYTIMESTEPCOUNT(3)
β¨ rtcSetGeometryTimeStepCount β¨
okay so bestie, you're in the Embree Ray Tracing Kernels 4 manual, section 3, and today's main character is rtcSetGeometryTimeStepCount π. yes it's a mouthful. yes it's iconic. let's go π
πΈ NAME πΈ
rtcSetGeometryTimeStepCount β sets the number of time steps of the geometry π¦
β¨ SYNOPSIS β¨
#include <embree4/rtcore.h>
void rtcSetGeometryTimeStepCount(
RTCGeometry geometry,
unsigned int timeStepCount
);
π DESCRIPTION π
so rtcSetGeometryTimeStepCount sets the number of time steps for multi-segment motion blur β that's the timeStepCount parameter, bestie β for the geometry you point at with the geometry parameter. it's giving "how many snapshots of this thing exist in time" energy π°οΈβ¨
now here's where it gets type-dependent, and honestly? the way each geometry type handles this is so different, pay attention π
- for triangle meshes (
RTC_GEOMETRY_TYPE_TRIANGLE), quad meshes (RTC_GEOMETRY_TYPE_QUAD), curves (RTC_GEOMETRY_TYPE_CURVE), points (RTC_GEOMETRY_TYPE_POINT), and subdivision geometries (RTC_GEOMETRY_TYPE_SUBDIVISION), the number of time steps directly corresponds to the number of vertex buffer slots available (RTC_BUFFER_TYPE_VERTEXbuffer type). so for these ones, you must specify one vertex buffer per time step when you're creating multi-segment motion blur geometries. one buffer per step, no skipping, periodt π - for instance geometries (
RTC_GEOMETRY_TYPE_INSTANCE), a transformation must be specified for each time step β go peek atrtcSetGeometryTransformfor that π«Ά - for user geometries, the registered bounding callback function must provide a bounding box per primitive and per time step, and the intersection and occlusion callback functions should properly intersect the motion-blurred geometry at the ray time. yes both. yes at the ray time. iykyk π₯
π EXIT STATUS π
on failure an error code is set that can be queried using rtcGetDeviceError. so if something's off, go ask rtcGetDeviceError what happened, she'll tell you π
π SEE ALSO π
- [
rtcNewGeometry] - [
rtcSetGeometryTimeRange]
and that's the whole page bestie, no notes π you just read the rtcSetGeo...eStepCount(3) page out of the Embree Ray Tracing Kernels 4 manual, so go forth, set those time step counts, and slay πβ mwah π«Ά
π¦ where this page comes from
- ubuntu stonking: libembree-dev 4.4.1+dfsg-2ubuntu1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms