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

Get Primitive Locations After a Move

Lawrence_S_
Principiante
569 Vistas

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 Responder
BenthinC_Intel
Empleados
569 Vistas

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.

Responder