Skip to content

Commit 91fd592

Browse files
committed
Updated intersection devcie code to be compatible with the current version of Embree
1 parent 6075499 commit 91fd592

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

RadeonRays/src/device/embree_intersection_device.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ namespace RadeonRays
116116
if (result != RTC_NO_ERROR)
117117
std::cout << "Failed to create embree rtcDevice: " << result << std::endl;
118118

119-
m_scene = rtcDeviceNewScene(m_device, RTC_SCENE_STATIC, RTC_INTERSECT1 | RTC_INTERSECT4 | RTC_INTERSECT8 | RTC_INTERSECT16 | RTC_INTERSECTN);
119+
m_scene = rtcDeviceNewScene(m_device, RTC_SCENE_STATIC, RTC_INTERSECT1 | RTC_INTERSECT4 | RTC_INTERSECT8 | RTC_INTERSECT16 | RTC_INTERSECT_STREAM);
120120
result = rtcDeviceGetError(m_device);
121121
if (result != RTC_NO_ERROR)
122122
std::cout << "Failed to create embree scene: " << result << std::endl;
@@ -171,7 +171,7 @@ namespace RadeonRays
171171
}
172172
m_instances.clear();
173173
rtcDeleteScene(m_scene); CheckEmbreeError();
174-
m_scene = rtcDeviceNewScene(m_device, RTC_SCENE_STATIC, RTC_INTERSECT1 | RTC_INTERSECT4 | RTC_INTERSECT8 | RTC_INTERSECT16 | RTC_INTERSECTN); CheckEmbreeError();
174+
m_scene = rtcDeviceNewScene(m_device, RTC_SCENE_STATIC, RTC_INTERSECT1 | RTC_INTERSECT4 | RTC_INTERSECT8 | RTC_INTERSECT16 | RTC_INTERSECT_STREAM); CheckEmbreeError();
175175

176176
for (auto i : world.shapes_)
177177
{
@@ -500,7 +500,7 @@ namespace RadeonRays
500500
{
501501
if (m_meshes.count(mesh))
502502
return m_meshes[mesh].scene;
503-
RTCScene result = rtcDeviceNewScene(m_device, RTC_SCENE_STATIC, RTC_INTERSECT1 | RTC_INTERSECT4 | RTC_INTERSECT8 | RTC_INTERSECT16 | RTC_INTERSECTN);
503+
RTCScene result = rtcDeviceNewScene(m_device, RTC_SCENE_STATIC, RTC_INTERSECT1 | RTC_INTERSECT4 | RTC_INTERSECT8 | RTC_INTERSECT16 | RTC_INTERSECT_STREAM);
504504
CheckEmbreeError();
505505
ThrowIf(!mesh->puretriangle(), "Only triangle meshes supported by now.");
506506

0 commit comments

Comments
 (0)