<?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>sujet 1) ISPC does not support dans Intel® Embree Ray Tracing Kernels</title>
    <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Integration-questions/m-p/1031252#M421</link>
    <description>&lt;P&gt;1) ISPC does not support classes, thus you cannot derive from the Embree ray this way. However, what you can do is just create a new ISPC struct that contains the Embree ray as first argument (e.g.&amp;nbsp;struct ExtendedRay { RTCRay ray; MyData* data; }) and do proper casting.&lt;/P&gt;

&lt;P&gt;2) If I understand correct your questions targets on using the C++ and ISPC version of Embree in the same program? This is supported, the only thing to be carefull is to set RTC_INTERSECT1/4/8/16 flags in case one creates the scene on the C++ side and wants to call the rtcIntersect function in ISPC later on that scene.&lt;/P&gt;</description>
    <pubDate>Wed, 22 Oct 2014 06:22:58 GMT</pubDate>
    <dc:creator>SvenW_Intel</dc:creator>
    <dc:date>2014-10-22T06:22:58Z</dc:date>
    <item>
      <title>Integration questions</title>
      <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Integration-questions/m-p/1031251#M420</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;

&lt;P&gt;1) I'm passing my data to rays as following (pseudocode)&lt;/P&gt;

&lt;P&gt;struct MyRay : public RTCRay {&lt;/P&gt;

&lt;P&gt;&amp;nbsp;MyData * data;&lt;/P&gt;

&lt;P&gt;};&lt;/P&gt;

&lt;P&gt;It works fine but how to do same with ispc where ray is "varying"?&lt;/P&gt;

&lt;P&gt;2) For ispc I've built object files for &lt;EM&gt;rtcore_ispc.ispc&lt;/EM&gt; and &lt;EM&gt;myfile.ispc&lt;/EM&gt; that contains only one export function with rtcInit(). For all others (creating scene, set callbacks, cast rays) I use same C++ code as without ispc. Is it correct?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 21 Oct 2014 16:22:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Integration-questions/m-p/1031251#M420</guid>
      <dc:creator>Igor_Igor</dc:creator>
      <dc:date>2014-10-21T16:22:39Z</dc:date>
    </item>
    <item>
      <title>1) ISPC does not support</title>
      <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Integration-questions/m-p/1031252#M421</link>
      <description>&lt;P&gt;1) ISPC does not support classes, thus you cannot derive from the Embree ray this way. However, what you can do is just create a new ISPC struct that contains the Embree ray as first argument (e.g.&amp;nbsp;struct ExtendedRay { RTCRay ray; MyData* data; }) and do proper casting.&lt;/P&gt;

&lt;P&gt;2) If I understand correct your questions targets on using the C++ and ISPC version of Embree in the same program? This is supported, the only thing to be carefull is to set RTC_INTERSECT1/4/8/16 flags in case one creates the scene on the C++ side and wants to call the rtcIntersect function in ISPC later on that scene.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Oct 2014 06:22:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Integration-questions/m-p/1031252#M421</guid>
      <dc:creator>SvenW_Intel</dc:creator>
      <dc:date>2014-10-22T06:22:58Z</dc:date>
    </item>
  </channel>
</rss>

