<?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 Looks correct to me. Maybe in Intel® Embree Ray Tracing Kernels</title>
    <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Hairs-with-Embree/m-p/1165664#M798</link>
    <description>&lt;P&gt;Looks correct to me. Maybe there is a problem with alignment. Could you please allocate a 16 byte aligned buffer for the vertices and try again?&lt;/P&gt;</description>
    <pubDate>Thu, 29 Nov 2018 06:03:02 GMT</pubDate>
    <dc:creator>SvenW_Intel</dc:creator>
    <dc:date>2018-11-29T06:03:02Z</dc:date>
    <item>
      <title>Hairs with Embree</title>
      <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Hairs-with-Embree/m-p/1165663#M797</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I try to add hair geometry to embree (3.20)&lt;/P&gt;&lt;P&gt;-RTCGeometry geom = rtcNewGeometry(*g_device, RTC_GEOMETRY_TYPE_FLAT_BEZIER_CURVE);&lt;/P&gt;&lt;P&gt;Unfortunetely it crashes when BVH build "embree::avx::UnalignedHeuristicArrayBinningSAH&amp;lt;embree::PrimRef, 32ul&amp;gt;::computeAlignedSpace() at 0x7f82e8211a6a&amp;nbsp;"&lt;/P&gt;&lt;P&gt;I put all vertices in an array.&amp;nbsp; (vertices_radius - vec4 with radius on 4 coord).&lt;/P&gt;&lt;P&gt;In vertices_indices for each fiber i&amp;nbsp;vertices_indices.push_back(ISPCHair(offsets&lt;I&gt;, i));&amp;nbsp;&amp;nbsp;(&amp;nbsp;offsets&lt;I&gt; - is index position )&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;rtcSetSharedGeometryBuffer(geom, RTC_BUFFER_TYPE_INDEX, 0, RTC_FORMAT_UINT, &amp;amp;(vertices_indices[0]), 0,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sizeof(ISPCHair), fiber_count);&lt;/P&gt;&lt;P&gt;rtcSetSharedGeometryBuffer(geom, RTC_BUFFER_TYPE_VERTEX, 0, RTC_FORMAT_FLOAT4,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;amp;(vertices_radius[0]), 0, sizeof(EmbreeVertex4), vertex_count);&lt;/P&gt;&lt;P&gt;Does fibers have to have the same number of control vertices? Or is it Embree's limitations ?&lt;/P&gt;&lt;P&gt;I followed tutorial.&amp;nbsp; From my understanding i needed to put in&amp;nbsp; vertices_indices a structure 2 unsigned int :&amp;nbsp;&lt;/P&gt;&lt;P&gt;struct ISPCHair&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; unsigned int vertex;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; unsigned int id;&lt;BR /&gt;} ;&lt;/P&gt;&lt;P&gt;where vertex is position of the vertex in&amp;nbsp;vertices_radius and id is fibers index. Is it right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2018 08:44:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Hairs-with-Embree/m-p/1165663#M797</guid>
      <dc:creator>Mos__Keicam</dc:creator>
      <dc:date>2018-11-28T08:44:26Z</dc:date>
    </item>
    <item>
      <title>Looks correct to me. Maybe</title>
      <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Hairs-with-Embree/m-p/1165664#M798</link>
      <description>&lt;P&gt;Looks correct to me. Maybe there is a problem with alignment. Could you please allocate a 16 byte aligned buffer for the vertices and try again?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 06:03:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Hairs-with-Embree/m-p/1165664#M798</guid>
      <dc:creator>SvenW_Intel</dc:creator>
      <dc:date>2018-11-29T06:03:02Z</dc:date>
    </item>
    <item>
      <title>I works !!! It was alignment</title>
      <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Hairs-with-Embree/m-p/1165665#M799</link>
      <description>&lt;P&gt;I works !!! It was alignment problem thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 16:45:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Hairs-with-Embree/m-p/1165665#M799</guid>
      <dc:creator>Mos__Keicam</dc:creator>
      <dc:date>2018-11-29T16:45:29Z</dc:date>
    </item>
    <item>
      <title>Just checked the code, and</title>
      <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Hairs-with-Embree/m-p/1165666#M800</link>
      <description>&lt;P&gt;Just checked the code, and vertex buffers to not have to get aligned.&amp;nbsp;Did you use precompiled binaries? If not, which compiler did you use to compile the code?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 09:47:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Hairs-with-Embree/m-p/1165666#M800</guid>
      <dc:creator>SvenW_Intel</dc:creator>
      <dc:date>2018-11-30T09:47:01Z</dc:date>
    </item>
    <item>
      <title>I've changed :</title>
      <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Hairs-with-Embree/m-p/1165667#M801</link>
      <description>&lt;P&gt;I've changed :&lt;/P&gt;&lt;P&gt;rtcSetSharedGeometryBuffer(geom, RTC_BUFFER_TYPE_INDEX, 0, RTC_FORMAT_UINT, &amp;amp;(vertices_indices[0]), 0,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sizeof(ISPCHair), fiber_count);&lt;/P&gt;&lt;P&gt;to :&lt;/P&gt;&lt;P&gt;vertices_indices = (unsigned int*) rtcSetNewGeometryBuffer(geom, RTC_BUFFER_TYPE_INDEX, 0, RTC_FORMAT_UINT, sizeof(unsigned int), 2*fiber_count);&lt;/P&gt;&lt;P&gt;And i tried&amp;nbsp;vertices_indices = (unsigned int*) rtcSetNewGeometryBuffer(geom, RTC_BUFFER_TYPE_INDEX, 0, RTC_FORMAT_UINT2, sizeof(ISPCHair), fiber_count); but apparently there was a format's&amp;nbsp;error.&amp;nbsp;&amp;nbsp;RTC_FORMAT_UINT2 ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 10:12:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Hairs-with-Embree/m-p/1165667#M801</guid>
      <dc:creator>Mos__Keicam</dc:creator>
      <dc:date>2018-11-30T10:12:14Z</dc:date>
    </item>
    <item>
      <title>Hi, </title>
      <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Hairs-with-Embree/m-p/1165668#M802</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have another question about hairs with different geometry types for curve.&lt;/P&gt;&lt;P&gt;Should i pass each curve of hairs as a separate geometry or it's better to put every curve in one geometry ?&lt;/P&gt;&lt;P&gt;In that case of one geometry i would in indices i should put :&lt;/P&gt;&lt;P&gt;vertices_indices[2*i] = offsets&lt;I&gt;;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;vertices_indices[2*i+1] = i;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;where i is i-th curve and and offets&lt;I&gt; is the position in vertex buffer.&amp;nbsp;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;vertices_indices = (unsigned int*) rtcSetNewGeometryBuffer(geom, RTC_BUFFER_TYPE_INDEX, 0, RTC_FORMAT_UINT, sizeof(unsigned int), 2*fiber_count). Is it better to stash each curve in separete geometry?&lt;/P&gt;&lt;P&gt;In case of&amp;nbsp;RTC_GEOMETRY_TYPE_ROUND_BEZIER_CURVE and&amp;nbsp;RTC_GEOMETRY_TYPE_FLAT_BEZIER_CURVE should the number of control vertices should always be 4? Can it vary from one curve to another if we pass all curve in geometry?&lt;/P&gt;&lt;P&gt;Thanks, in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 16:22:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Hairs-with-Embree/m-p/1165668#M802</guid>
      <dc:creator>Mos__Keicam</dc:creator>
      <dc:date>2019-01-16T16:22:00Z</dc:date>
    </item>
    <item>
      <title>Please put many curves inside</title>
      <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Hairs-with-Embree/m-p/1165669#M803</link>
      <description>&lt;P&gt;Please put many curves inside one geometry to improve memory consumption.&lt;/P&gt;&lt;P&gt;In your rtcSetNewGeometrBuffer example you have to set the stride to 2*sizeof(unsigned int) as you store 2 ints per curve.&lt;/P&gt;&lt;P&gt;In the Bezier basis each curve has 4 control points. However, one can share the ends of the control points between two curves. If that sharing is possible just set the start of the next curve to the end of the previous and add 3 more points.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jan 2019 07:44:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Hairs-with-Embree/m-p/1165669#M803</guid>
      <dc:creator>SvenW_Intel</dc:creator>
      <dc:date>2019-01-22T07:44:22Z</dc:date>
    </item>
  </channel>
</rss>

