<?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 You can call rtcInit and in Intel® Embree Ray Tracing Kernels</title>
    <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/rtcCommit-not-working/m-p/1017941#M386</link>
    <description>&lt;P&gt;You can call rtcInit and rtcExit in a constructor and destructor of a class. However, you should not call rtcInit from the constructor of a global variable, thus please create the class either with new or on the stack.&lt;/P&gt;</description>
    <pubDate>Sat, 09 Aug 2014 23:04:51 GMT</pubDate>
    <dc:creator>SvenW_Intel</dc:creator>
    <dc:date>2014-08-09T23:04:51Z</dc:date>
    <item>
      <title>rtcCommit not working</title>
      <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/rtcCommit-not-working/m-p/1017935#M380</link>
      <description>&lt;P&gt;Below is the code that I am using, my code gets stuck at rtcCommit(). I am not sure why this is happening...any clue would be great help.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;geomID = rtcNewTriangleMesh(Scene, RTC_GEOMETRY_STATIC, nTriangles, embVertices.size(), 1);&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;EmbVertex* vertices = (EmbVertex*) rtcMapBuffer(Scene, geomID, RTC_VERTEX_BUFFER);&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;for(unsigned int i = 0; i &amp;lt; embVertices.size(); i++)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;vertices&lt;I&gt;.x = embVertices&lt;I&gt;.x;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;vertices&lt;I&gt;.y = embVertices&lt;I&gt;.y;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;vertices&lt;I&gt;.z = embVertices&lt;I&gt;.z;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;rtcUnmapBuffer(Scene, geomID, RTC_VERTEX_BUFFER);&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;cout&amp;lt;&amp;lt;"\nCompleted mapping vertices.\n";&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;EmbTriangle* triangles = (EmbTriangle*) rtcMapBuffer(Scene, geomID, RTC_INDEX_BUFFER);&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;int t = 0;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;for(unsigned int i = 0; i &amp;lt; Triangles.size(); i++)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;if(valid&lt;I&gt;)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;triangles&lt;T&gt;.v0 = Triangles&lt;I&gt;.v0;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;triangles&lt;T&gt;.v1 = Triangles&lt;I&gt;.v1;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;triangles&lt;T&gt;.v2 = Triangles&lt;I&gt;.v2;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;embTriangles.push_back(Triangles&lt;I&gt;);&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;t++;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;rtcUnmapBuffer(Scene, geomID, RTC_INDEX_BUFFER);&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;cout&amp;lt;&amp;lt;"\nCompleted mapping triangles.\n";&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;rtcCommit(Scene);&lt;/I&gt;&lt;/I&gt;&lt;/T&gt;&lt;/I&gt;&lt;/T&gt;&lt;/I&gt;&lt;/T&gt;&lt;/I&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Aug 2014 06:27:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/rtcCommit-not-working/m-p/1017935#M380</guid>
      <dc:creator>ritwik_d_</dc:creator>
      <dc:date>2014-08-06T06:27:41Z</dc:date>
    </item>
    <item>
      <title>This is the message I get</title>
      <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/rtcCommit-not-working/m-p/1017936#M381</link>
      <description>&lt;P&gt;This is the message I get from Embree:&lt;/P&gt;

&lt;P&gt;Embree Ray Tracing Kernels 2.3 (Jun 11 2014)&lt;BR /&gt;
	&amp;nbsp; Compiler : Visual C++ Compiler 17.00.6103.0&lt;BR /&gt;
	&amp;nbsp; Platform : Windows (32bit)&lt;BR /&gt;
	&amp;nbsp; CPU &amp;nbsp; &amp;nbsp; &amp;nbsp;: SSE SSE2 SSE3 SSSE3 SSE41 SSE42 POPCNT AVX F16C RDRAND AVX2 FMA3 LZ&lt;BR /&gt;
	CNT BMI1 BMI2&lt;BR /&gt;
	&amp;nbsp; Features : intersection_filter bufferstride&lt;BR /&gt;
	&amp;nbsp; WARNING: enabled 'intersection filter' support will reduce hybrid traversal pe&lt;BR /&gt;
	rformance&lt;BR /&gt;
	Embree: Unknown error, (cannot create thread)&lt;/P&gt;

&lt;P&gt;I do not understand why it cannot create the threads&lt;/P&gt;</description>
      <pubDate>Thu, 07 Aug 2014 07:29:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/rtcCommit-not-working/m-p/1017936#M381</guid>
      <dc:creator>ritwik_d_</dc:creator>
      <dc:date>2014-08-07T07:29:52Z</dc:date>
    </item>
    <item>
      <title>Do the tutorials run? e.g. .</title>
      <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/rtcCommit-not-working/m-p/1017937#M382</link>
      <description>&lt;P&gt;Do the tutorials run? e.g. ./tutorial00 -rtcore verbose=2&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Aug 2014 08:22:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/rtcCommit-not-working/m-p/1017937#M382</guid>
      <dc:creator>SvenW_Intel</dc:creator>
      <dc:date>2014-08-07T08:22:01Z</dc:date>
    </item>
    <item>
      <title>yes tutorials are running</title>
      <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/rtcCommit-not-working/m-p/1017938#M383</link>
      <description>&lt;P&gt;yes tutorials are running fine.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Aug 2014 18:01:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/rtcCommit-not-working/m-p/1017938#M383</guid>
      <dc:creator>ritwik_d_</dc:creator>
      <dc:date>2014-08-07T18:01:50Z</dc:date>
    </item>
    <item>
      <title>Sorry but I have no idea why</title>
      <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/rtcCommit-not-working/m-p/1017939#M384</link>
      <description>&lt;P&gt;Sorry but I have no idea why the CreateThreads function fails. Look at the CreateThreads call in file embree/common/sys/thread.cpp, maybe you can find the problem there. Also, try to figure out what you do different than the tutorials.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Aug 2014 05:07:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/rtcCommit-not-working/m-p/1017939#M384</guid>
      <dc:creator>SvenW_Intel</dc:creator>
      <dc:date>2014-08-08T05:07:46Z</dc:date>
    </item>
    <item>
      <title>What is a good place to do</title>
      <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/rtcCommit-not-working/m-p/1017940#M385</link>
      <description>&lt;P&gt;What is a good place to do rtcInit()?&lt;/P&gt;

&lt;P&gt;Is it possible to do this inside a constructor of a class and then call rtcExit() inside the destructor?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Aug 2014 16:28:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/rtcCommit-not-working/m-p/1017940#M385</guid>
      <dc:creator>ritwik_d_</dc:creator>
      <dc:date>2014-08-08T16:28:45Z</dc:date>
    </item>
    <item>
      <title>You can call rtcInit and</title>
      <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/rtcCommit-not-working/m-p/1017941#M386</link>
      <description>&lt;P&gt;You can call rtcInit and rtcExit in a constructor and destructor of a class. However, you should not call rtcInit from the constructor of a global variable, thus please create the class either with new or on the stack.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Aug 2014 23:04:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/rtcCommit-not-working/m-p/1017941#M386</guid>
      <dc:creator>SvenW_Intel</dc:creator>
      <dc:date>2014-08-09T23:04:51Z</dc:date>
    </item>
    <item>
      <title>I am actually creating the</title>
      <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/rtcCommit-not-working/m-p/1017942#M387</link>
      <description>&lt;P&gt;I am actually creating the class object with new but this is a global variable, the reason for that is I am using OpenGL to display the scene geometry and so the callback functions can access the class object. What is the reason for rtcInit() to not work on global variables?&lt;/P&gt;</description>
      <pubDate>Sat, 09 Aug 2014 23:44:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/rtcCommit-not-working/m-p/1017942#M387</guid>
      <dc:creator>ritwik_d_</dc:creator>
      <dc:date>2014-08-09T23:44:38Z</dc:date>
    </item>
    <item>
      <title>Because that way the rcInit</title>
      <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/rtcCommit-not-working/m-p/1017943#M388</link>
      <description>&lt;P&gt;Because that way the rcInit could be called before initialization of global variables inside embree library&lt;/P&gt;</description>
      <pubDate>Sat, 09 Aug 2014 23:48:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/rtcCommit-not-working/m-p/1017943#M388</guid>
      <dc:creator>Ondra_K_</dc:creator>
      <dc:date>2014-08-09T23:48:17Z</dc:date>
    </item>
  </channel>
</rss>

