RTCSETGEOMETRYTRANSFORM(3embree3)
π rtcSetGeometryTransform β bestie edition π
okay so this is a page from the Embree Ray Tracing Kernels 3 manual, section 3, and it's all about rtcSetGeometryTransform. pull up a chair, we're gonna slay this π«Ά
β¨ NAME β¨
rtcSetGeometryTransform β sets the transformation for a particular time step of an instance geometry
yes bestie that's literally it, she does one thing and she does it iconically π
πΈ SYNOPSIS πΈ
#include <embree3/rtcore.h>
void rtcSetGeometryTransform(
RTCGeometry geometry,
unsigned int timeStep,
enum RTCFormat format,
const float* xfm
);
look at her. four little params. main character energy fr fr β¨
π¦ DESCRIPTION π¦
so the rtcSetGeometryTransform function sets the local-to-world affine transformation (that's the xfm parameter, bestie) of an instance geometry (that's the geometry parameter) for a particular time step (that's the timeStep parameter). π
the transformation is specified as a 3Γ4 matrix β which is a 3Γ3 linear transformation plus translation, no cap β and the following formats (the format parameter) are supported:
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 being equal to(0, 0, 0, 1). π
like... pick your format, pick your layout, we don't judge. all three are valid. periodt. π
π EXIT STATUS π
on failure an error code is set that can be queried using rtcGetDeviceError.
so if something goes sideways, don't just sit there looking cute β go ask rtcGetDeviceError what happened. she'll tell you. π
π SEE ALSO π
- [
RTC_GEOMETRY_TYPE_INSTANCE]
and that's the whole vibe bestie β this is from the Embree Ray Tracing Kernels 3 manual, rtcSetGeometryTransform(3), the one and only. go forth and transform your instances, you absolute icon πβ¨ππ¦πΈπ
π«Άπ₯πβπ
π¦ where this page comes from
- epel 9: embree 3.13.5-4.el9 Β· Apache-2.0
- fedora 43: embree3 3.13.5-9.fc41 Β· Apache-2.0
- fedora 44: embree3 3.13.5-16.fc44 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms