Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Lawrence_S_
Beginner
85 Views

Get Primitive Locations After a Move

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
85 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.

Reply