<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Embree version 3 to 4 upgrade in Intel® Embree Ray Tracing Kernels</title>
    <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Embree-version-3-to-4-upgrade/m-p/1511998#M975</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;when I run embree_minimal from command line the output is correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;0.330000, 0.330000, -1.000000: Found intersection on geometry 0, primitive 0 at tfar=1.000000&lt;BR /&gt;1.000000, 1.000000, -1.000000: Did not find any intersection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The same code pasted into LuxCore code, returns "Dind not find any intersection" twice. I have to analyze the LuxCore code. Maybe somewhere else there is a call to embree library that has to be modified. Maybe there is some filter function attached. Unfortunately I'm not a LuxCore developer, and I'm not familiar with LuxCore code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bartek&lt;/P&gt;</description>
    <pubDate>Tue, 08 Aug 2023 08:18:12 GMT</pubDate>
    <dc:creator>BartekZgo</dc:creator>
    <dc:date>2023-08-08T08:18:12Z</dc:date>
    <item>
      <title>Embree version 3 to 4 upgrade</title>
      <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Embree-version-3-to-4-upgrade/m-p/1511682#M972</link>
      <description>&lt;P&gt;I'm trying to update Embree library from version 3 to 4 to make it working with LuxCore.&lt;BR /&gt;&lt;BR /&gt;The strange thing is that method rtcIntersect1() never hits a geometry.&lt;BR /&gt;&lt;BR /&gt;I have done some tests with: &lt;A class="" href="https://github.com/embree/embree/blob/master/tests/integration/test_embree_release/test.cpp" target="_blank" rel="noopener"&gt;https://github.com/embree/embree/blob/master/tests/integration/test_embree_release/test.cpp&lt;/A&gt;&lt;BR /&gt;When executing code I've got "Object reference not set to the instance of object" exception.&lt;BR /&gt;&lt;BR /&gt;So I've tried to pass RTCIntersectArguments.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;FONT face="monospace"&gt;RTCRayQueryContext context;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="monospace"&gt;rtcInitRayQueryContext(&amp;amp;context);&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="monospace"&gt;RTCIntersectArguments intersectArgs;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="monospace"&gt;rtcInitIntersectArguments(&amp;amp;intersectArgs);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="monospace"&gt;intersectArgs.context = &amp;amp;context;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="monospace"&gt;rtcIntersect1(scene, &amp;amp;rayhit, &amp;amp;intersectArgs);&lt;/FONT&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;In that case there is no error anymore, but I've got the same result as with LuxCore.&amp;nbsp; For both test cases I've got:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Did not find any intersection"&lt;BR /&gt;&lt;BR /&gt;Currently I'm using following version of Embree:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A class="" href="https://github.com/embree/embree/releases/download/v4.2.0/embree-4.2.0.x86_64.linux.tar.gz" target="_blank" rel="noopener"&gt;https://github.com/embree/embree/releases/download/v4.2.0/embree-4.2.0.x86_64.linux.tar.gz&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;My machine does not have GPU.&lt;BR /&gt;&lt;BR /&gt;The original code of LuxCore code can be found here:&lt;BR /&gt;&lt;A class="" href="https://github.com/LuxCoreRender/LuxCore/blob/master/src/luxrays/accelerators/embreeaccel.cpp" target="_blank" rel="noopener"&gt;https://github.com/LuxCoreRender/LuxCore/blob/master/src/luxrays/accelerators/embreeaccel.cpp&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The only modifications that I've done to luxcore code are:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;convert RTCIntersectContext to &lt;FONT face="monospace"&gt;RTCRayQueryContex&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;pass intersect args to rtcIntersect1 method:&lt;BR /&gt;&lt;FONT face="monospace"&gt;RTCIntersectArguments intersectArgs;&lt;BR /&gt;rtcInitIntersectArguments(&amp;amp;intersectArgs);&lt;BR /&gt;intersectArgs.context = &amp;amp;context;&lt;BR /&gt;&lt;BR /&gt;rtcIntersect1(embreeScene, &amp;amp;embreeRayHit, &amp;amp;intersectArgs);&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Mon, 07 Aug 2023 13:41:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Embree-version-3-to-4-upgrade/m-p/1511682#M972</guid>
      <dc:creator>BartekZgo</dc:creator>
      <dc:date>2023-08-07T13:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Embree version 3 to 4 upgrade</title>
      <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Embree-version-3-to-4-upgrade/m-p/1511705#M973</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've skimmed over your code and can't find any obvious issue with it. Can you test the embree_minimal tutorial application and check whether this reports a hit? Output should be&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;./build/embree_minimal&lt;BR /&gt;0.330000, 0.330000, -1.000000: Found intersection on geometry 0, primitive 0 at tfar=1.000000&lt;BR /&gt;1.000000, 1.000000, -1.000000: Did not find any intersection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you maybe modify the minimal tutorial (in embree_root/tutorial/minimal.cpp) and create a reproducer for this problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please also run one of the other tutorials in verbose mode and cut/paste the ISA and BVH information here, i.e.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;./build/embree_triangle_geometry --verbose 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Florian&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 14:10:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Embree-version-3-to-4-upgrade/m-p/1511705#M973</guid>
      <dc:creator>FlorianR_Intel</dc:creator>
      <dc:date>2023-08-07T14:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: Embree version 3 to 4 upgrade</title>
      <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Embree-version-3-to-4-upgrade/m-p/1511707#M974</link>
      <description>&lt;P&gt;Tomorrow I will try to run the test directly from Embree build.&lt;/P&gt;&lt;P&gt;At this moment I simply copy the code of minimal.cpp into luxcore embreaccel.cpp, and the output is twice "Did not find any intersection"&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 14:19:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Embree-version-3-to-4-upgrade/m-p/1511707#M974</guid>
      <dc:creator>BartekZgo</dc:creator>
      <dc:date>2023-08-07T14:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Embree version 3 to 4 upgrade</title>
      <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Embree-version-3-to-4-upgrade/m-p/1511998#M975</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;when I run embree_minimal from command line the output is correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;0.330000, 0.330000, -1.000000: Found intersection on geometry 0, primitive 0 at tfar=1.000000&lt;BR /&gt;1.000000, 1.000000, -1.000000: Did not find any intersection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The same code pasted into LuxCore code, returns "Dind not find any intersection" twice. I have to analyze the LuxCore code. Maybe somewhere else there is a call to embree library that has to be modified. Maybe there is some filter function attached. Unfortunately I'm not a LuxCore developer, and I'm not familiar with LuxCore code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bartek&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 08:18:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Embree-version-3-to-4-upgrade/m-p/1511998#M975</guid>
      <dc:creator>BartekZgo</dc:creator>
      <dc:date>2023-08-08T08:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Embree version 3 to 4 upgrade</title>
      <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Embree-version-3-to-4-upgrade/m-p/1512002#M976</link>
      <description>&lt;P&gt;one more question. Do you have any idea why calling&lt;/P&gt;&lt;P&gt;&lt;FONT face="monospace"&gt;&lt;SPAN class=""&gt;rtcIntersect1(scene, &amp;amp;rayhit) &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="monospace"&gt;&lt;SPAN class=""&gt;so without intersectArgs makes luxcore application crash?&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="monospace"&gt;&lt;SPAN class=""&gt;So when I call rtcIntersect1(scene, &amp;amp;rayhit) application immediately crash, when I add intersectArgs it does not crash. &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 10:38:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Embree-version-3-to-4-upgrade/m-p/1512002#M976</guid>
      <dc:creator>BartekZgo</dc:creator>
      <dc:date>2023-08-08T10:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Embree version 3 to 4 upgrade</title>
      <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Embree-version-3-to-4-upgrade/m-p/1515390#M977</link>
      <description>&lt;P&gt;Hi. I have found the reason. Another library was linking embree3. So at runtime the old version of embree was loaded. Now it works.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2023 10:30:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Embree-version-3-to-4-upgrade/m-p/1515390#M977</guid>
      <dc:creator>BartekZgo</dc:creator>
      <dc:date>2023-08-18T10:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: Embree version 3 to 4 upgrade</title>
      <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Embree-version-3-to-4-upgrade/m-p/1684088#M1009</link>
      <description>&lt;P&gt;I have encountered the same issue, however, I had different problem, since I have never installed/linked an older version of embree.&lt;/P&gt;&lt;P&gt;My two cents for beginners like me: set the mask of the ray. I had no intersections without setting the mask.&lt;/P&gt;&lt;P&gt;rayhit.ray.mask = -1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Apr 2025 15:54:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Embree-version-3-to-4-upgrade/m-p/1684088#M1009</guid>
      <dc:creator>Junacik99</dc:creator>
      <dc:date>2025-04-20T15:54:44Z</dc:date>
    </item>
  </channel>
</rss>

