<?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 Embree intersectors and hit IDs in Intel® Embree Ray Tracing Kernels</title>
    <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Embree-intersectors-and-hit-IDs/m-p/925960#M177</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I'm starting to develop a ray tracing application using Embree.&lt;/P&gt;
&lt;P&gt;What I managed to do :&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Create an accelerator structure.&lt;/LI&gt;
&lt;LI&gt;Create an intersector from this structure.&lt;/LI&gt;
&lt;LI&gt;Intersect some rays with triangles.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;My problem is that no matter what direction of propagation the ray has, I always get the same &lt;EM&gt;id0&lt;/EM&gt; and &lt;EM&gt;id1&lt;/EM&gt; parameters (0 and 0) in th&lt;EM&gt;e&lt;/EM&gt; generated&lt;EM&gt; Hit&lt;/EM&gt; object. I guess this is because all the triangles are considered to be in the same &lt;STRONG&gt;primitive&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;However, I need to be able to identify which triangle my ray did intersect. So my question is : is there a way in Embree to identify it or should I do it by myself ?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Hamza&lt;/P&gt;</description>
    <pubDate>Wed, 10 Apr 2013 09:23:43 GMT</pubDate>
    <dc:creator>Hamza_C_</dc:creator>
    <dc:date>2013-04-10T09:23:43Z</dc:date>
    <item>
      <title>Embree intersectors and hit IDs</title>
      <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Embree-intersectors-and-hit-IDs/m-p/925960#M177</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I'm starting to develop a ray tracing application using Embree.&lt;/P&gt;
&lt;P&gt;What I managed to do :&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Create an accelerator structure.&lt;/LI&gt;
&lt;LI&gt;Create an intersector from this structure.&lt;/LI&gt;
&lt;LI&gt;Intersect some rays with triangles.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;My problem is that no matter what direction of propagation the ray has, I always get the same &lt;EM&gt;id0&lt;/EM&gt; and &lt;EM&gt;id1&lt;/EM&gt; parameters (0 and 0) in th&lt;EM&gt;e&lt;/EM&gt; generated&lt;EM&gt; Hit&lt;/EM&gt; object. I guess this is because all the triangles are considered to be in the same &lt;STRONG&gt;primitive&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;However, I need to be able to identify which triangle my ray did intersect. So my question is : is there a way in Embree to identify it or should I do it by myself ?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Hamza&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2013 09:23:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Embree-intersectors-and-hit-IDs/m-p/925960#M177</guid>
      <dc:creator>Hamza_C_</dc:creator>
      <dc:date>2013-04-10T09:23:43Z</dc:date>
    </item>
    <item>
      <title>Problem solved : I hadn't</title>
      <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Embree-intersectors-and-hit-IDs/m-p/925961#M178</link>
      <description>&lt;P&gt;Problem solved : I hadn't understood the meaning of &lt;EM&gt;id0&lt;/EM&gt; and &lt;EM&gt;id1&lt;/EM&gt;.&lt;BR /&gt;One should actually set their value to what needed (an index corresponding to the triangle ID, for example) while building the &lt;EM&gt;BuildTriangle *&lt;/EM&gt; object and this value would be available in the &lt;EM&gt;Hit&lt;/EM&gt; object generated.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2013 11:29:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Embree-intersectors-and-hit-IDs/m-p/925961#M178</guid>
      <dc:creator>Hamza_C_</dc:creator>
      <dc:date>2013-04-10T11:29:00Z</dc:date>
    </item>
  </channel>
</rss>

