- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear embree developer(s),
I am having problems with rays that exactly touch triangle edges (from what I can see). My task is to voxelize a mesh then from each voxel center shoot many rays towards the surface and capture the closest hit.
A hit by this definition should always happen but as you can see from this figure where I am visualizing only the misses with green lines:
Lots of misses are happening, looking closer we can see this is only an issue at the triangle edges:
I was looking more into the documentation and noticed a 'robust' option. So I tried it out and I got this:
Much better but still not perfect. So my question is: are there any other options I can try to hopefully guarantee accurate results? is there a more accurate fallback mechanism when a ray misses?
Thanks for making available this fantastic library!
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The robust mode is the best accuracy you can currently get with Embree. I will look into your case of small cubes, maybe we find a fix to improve accuracy even more.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Sven. The latest robust mode code solved all issues I had.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page