rtcGetGeo...FromScene(3)
β¨ rtcGetGeo...FromScene(3) β¨
okay bestie, sit down, hydrate, and let me tell you about rtcGetGeometryTransformFromScene from the Embree Ray Tracing Kernels 4 era π (yes the page name is abbreviated, that's just how it is, she's mysterious like that π)
πΈ NAME πΈ
rtcGetGeometryTransformFromScene β returns the interpolated instance transformation for the specified time π°οΈβ¨
π¦ SYNOPSIS π¦
#include <embree4/rtcore.h>
void rtcGetGeometryTransformFromScene(
RTCScene scene,
unsigned int geomID,
float time,
enum RTCFormat format,
void* xfm
);
π DESCRIPTION π
so like, the rtcGetGeometryTransformFromScene function returns the interpolated local to world transformation (that's your xfm output parameter, she's the main character here π) of an instance geometry. which instance geometry tho? the one specified by its geometry ID β that's the geomID parameter π β inside a scene (the scene parameter, duh) for a particular time (the time parameter, and she lives in the range [0, 1] fr fr) in the specified format (the format parameter β¨).
the possible formats for the returned matrix are, and listen closely because this matters:
RTC_FORMAT_FLOAT3X4_ROW_MAJORβ the 3Γ4 float matrix is laid out in row-major form πRTC_FORMAT_FLOAT3X4_COLUMN_MAJORβ the 3Γ4 float matrix is laid out in column-major form πRTC_FORMAT_FLOAT4X4_COLUMN_MAJORβ the 3Γ4 float matrix is laid out in column-major form as a 4Γ4 homogeneous matrix, with the last row equal to(0, 0, 0, 1)π
and now the plot twist that makes her iconic: in contrast to the rtcGetGeometryTransform function, rtcGetGeometryTransformFromScene can get used during rendering inside a SYCL kernel π₯ that's the whole point of her existence, no cap.
π EXIT STATUS π
on failure, an error code is set β and you can query it using rtcGetDeviceError π
π SEE ALSO π
[RTC_GEOMETRY_TYPE_INSTANCE][rtcSetGeometryTransform][rtcGetGeometryTransform]
go read those too, bestie, they're giving family reunion energy π«Ά
Embree Ray Tracing Kernels 4 β¨ page rtcGetGeo...FromScene(3) β¨ and that's the whole tea, thanks for coming to my ted talk, 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