Get Primitive Locations After a Move

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?

 

 

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

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.

Leave a Comment

Please sign in to add a comment. Not a member? Join today