Intel® Embree Ray Tracing Kernels
Discussion forum on the open source ray tracing kernels for fast photo-realistic rendering on Intel® CPU(s)
280 Discussions

Get Primitive Locations After a Move

Lawrence_S_
Beginner
356 Views

Dear all. I have a program in which I am updating the scene in a similar way to the instanced geometry tutorial. At certain points however, I would like to record information about where all my primitives now are in a .txt or something (all triangles in this case). Is there a way to recover a list of vertex locations and vertex numbers that make up my triangular primitives from one of the data structures in embree?

 

 

0 Kudos
1 Reply
BenthinC_Intel
Employee
356 Views

As your program has the affine transformation for each instance and the vertex data of each instanced object anyway, the probably easiest way is to just transform the vertices yourself and then dump the data into a file. Embree internally does not transform the geometry but only the ray.

0 Kudos
Reply