rtcGetGeometryTransformFromScene(3) | Embree Ray Tracing Kernels 4 | rtcGetGeometryTransformFromScene(3) |
rtcGetGeometryTransformFromScene - returns the interpolated instance transformation for the specified time
#include <embree4/rtcore.h> void rtcGetGeometryTransformFromScene( RTCScene scene, unsigned int geomID, float time, enum RTCFormat format, void* xfm );
The rtcGetGeometryTransformFromScene function returns the interpolated local to world transformation (xfm output parameter) of an instance geometry specified by its geometry ID (geomID parameter) of a scene (scene parameter) for a particular time (time parameter in range [0, 1]) in the specified format (format parameter).
Possible formats for the returned matrix are:
In contrast to the rtcGetGeometryTransform function, the rtcGetGeometryTransformFromScene function can get used during rendering inside a SYCL kernel.
On failure an error code is set that can be queried using rtcGetDeviceError.
[RTC_GEOMETRY_TYPE_INSTANCE], [rtcSetGeometryTransform], [rtcGetGeometryTransform]