# Embree in progress

**URL:** https://discourse.vtk.org/t/embree-in-progress/10715
**Category:** Development
**Created:** [February 16, 2023, 10:04pm UTC](https://discourse.vtk.org/t/embree-in-progress/10715 "2023-02-16T22:04:37Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Jens\_Munk\_Hansen](https://discourse.vtk.org/user_avatar/discourse.vtk.org/jens_munk_hansen/32/1215_2.png) [@Jens\_Munk\_Hansen](https://discourse.vtk.org/u/Jens_Munk_Hansen)
#### Post date: [February 16, 2023, 10:59pm UTC](https://discourse.vtk.org/t/embree-in-progress/10715/2 "2023-02-16T22:59:11Z")

</div>

I managed to get it to work with embree4. With embree3, it worked by adding some extra options to the RTCRayHit structure.

```auto
  rayhit.hit.instID[0] = RTC_INVALID_GEOMETRY_ID;
  rayhit.ray.mask = -1;
  rayhit.ray.flags = 0;

```

---

_[View the full topic](https://discourse.vtk.org/t/embree-in-progress/10715)._
