Intel® Embree Ray Tracing Kernels
Discussion forum on the open source ray tracing kernels for fast photo-realistic rendering on Intel® CPU(s)
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Motion blur flag for hit cleared

Emil_K_
Beginner
523 Views

Hi, first of all, thanks to the devs who are so actively responding to the topics in this forum.

Now to the question, is there a good reason to clear the MSB of hit.id0, when MB triangle was intersected (hit.id0 = tri.id0 & 0x7FFFFFFF; )? I'd really like to check this flag when an intersection occured, to see if MB primitive was intersected, but it is cleared by embree.

Thanks

0 Kudos
2 Replies
Keymaster
New Contributor I
523 Views
Looks like a flag that the triangle is moving is stored there: triangle4i.h: *! moving triangle */ if (id0 & 0x80000000) {
0 Kudos
SvenW_Intel
Moderator
523 Views

You can disable the clearing of this flag, however, then you have to be carefull that the renderer clears it when used to access an object by its ID.

0 Kudos
Reply