.\" Automatically generated by Pandoc 3.1.3 .\" .\" Define V font for inline verbatim, using C font in formats .\" that render this, and otherwise B font. .ie "\f[CB]x\f[]"x" \{\ . ftr V B . ftr VI BI . ftr VB B . ftr VBI BI .\} .el \{\ . ftr V CR . ftr VI CI . ftr VB CB . ftr VBI CBI .\} .TH "rtcGetGeometryTransformFromScene" "3" "" "" "Embree Ray Tracing Kernels 4" .hy .SS NAME .IP .nf \f[C] rtcGetGeometryTransformFromScene - returns the interpolated instance transformation for the specified time \f[R] .fi .SS SYNOPSIS .IP .nf \f[C] #include void rtcGetGeometryTransformFromScene( RTCScene scene, unsigned int geomID, float time, enum RTCFormat format, void* xfm ); \f[R] .fi .SS DESCRIPTION .PP The \f[V]rtcGetGeometryTransformFromScene\f[R] function returns the interpolated local to world transformation (\f[V]xfm\f[R] output parameter) of an instance geometry specified by its geometry ID (\f[V]geomID\f[R] parameter) of a scene (\f[V]scene\f[R] parameter) for a particular time (\f[V]time\f[R] parameter in range [0,1]) in the specified format (\f[V]format\f[R] parameter). .PP Possible formats for the returned matrix are: .IP \[bu] 2 \f[V]RTC_FORMAT_FLOAT3X4_ROW_MAJOR\f[R]: The 3×4 float matrix is laid out in row-major form. .IP \[bu] 2 \f[V]RTC_FORMAT_FLOAT3X4_COLUMN_MAJOR\f[R]: The 3×4 float matrix is laid out in column-major form. .IP \[bu] 2 \f[V]RTC_FORMAT_FLOAT4X4_COLUMN_MAJOR\f[R]: The 3×4 float matrix is laid out in column-major form as a 4×4 homogeneous matrix with last row equal to (0, 0, 0, 1). .PP In contrast to the \f[V]rtcGetGeometryTransform\f[R] function, the \f[V]rtcGetGeometryTransformFromScene\f[R] function can get used during rendering inside a SYCL kernel. .SS EXIT STATUS .PP On failure an error code is set that can be queried using \f[V]rtcGetDeviceError\f[R]. .SS SEE ALSO .PP [RTC_GEOMETRY_TYPE_INSTANCE], [rtcSetGeometryTransform], [rtcGetGeometryTransform]