Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Intel Community
- Visual Computing (Graphics and Gaming)
- Intel® Embree Ray Tracing Kernels
- Embree 3.8.0 change with sphere intersections

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

Highlighted
##

AndrewC

New Contributor I

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

07-15-2020
03:25 PM

171 Views

Embree 3.8.0 change with sphere intersections

From the release notes ..."For sphere geometries the intersection filter gets now invoked for front and back hit."

This is slightly annoying as now I get two calls to the intersectFilter for each sphere. I would like to "ignore" the second hit ( I just care that the ray hit the sphere). I process each hit as it happens, so I have no record of the previous hit. Any suggestions on how to ignore the back hit? Although the change did not break my algorithm, it doubles the hit-processing time.

1 Reply

Highlighted
##

I found a simple solution. In the intersection routine find the "t" where the ray is closest to the center of the sphere. Compare this to the "tFar" of the ray in the the intersection filter. if tFar>t then it is the "back" intersection.

AndrewC

New Contributor I

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

07-16-2020
10:23 AM

163 Views

For more complete information about compiler optimizations, see our Optimization Notice.