<?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 Curves with RTC_GEOMETRY_TYPE_FLAT_LINEAR_CURVE in Intel® Embree Ray Tracing Kernels</title>
    <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Curves-with-RTC-GEOMETRY-TYPE-FLAT-LINEAR-CURVE/m-p/1143810#M714</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a question about&amp;nbsp;RTC_GEOMETRY_TYPE_FLAT_LINEAR_CURVE mode.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to define disjoint curves with this mode?&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example if i want to have 2 curves with 2 vertices each i put in vertex buffer :&lt;/P&gt;&lt;P&gt;[v0, v1, v2,&amp;nbsp;v3, v4, v5, ]&lt;/P&gt;&lt;P&gt;and in index buffer :&lt;/P&gt;&lt;P&gt;[0,1, 3,4 ]&amp;nbsp; this should give 2 curves :&amp;nbsp;&lt;/P&gt;&lt;P&gt;[v0, v1, v2,] and [v3, v4, v5]?&lt;/P&gt;&lt;P&gt;(hair implementation) .&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 30 Jan 2019 18:46:59 GMT</pubDate>
    <dc:creator>Mos__Keicam</dc:creator>
    <dc:date>2019-01-30T18:46:59Z</dc:date>
    <item>
      <title>Curves with RTC_GEOMETRY_TYPE_FLAT_LINEAR_CURVE</title>
      <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Curves-with-RTC-GEOMETRY-TYPE-FLAT-LINEAR-CURVE/m-p/1143810#M714</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a question about&amp;nbsp;RTC_GEOMETRY_TYPE_FLAT_LINEAR_CURVE mode.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to define disjoint curves with this mode?&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example if i want to have 2 curves with 2 vertices each i put in vertex buffer :&lt;/P&gt;&lt;P&gt;[v0, v1, v2,&amp;nbsp;v3, v4, v5, ]&lt;/P&gt;&lt;P&gt;and in index buffer :&lt;/P&gt;&lt;P&gt;[0,1, 3,4 ]&amp;nbsp; this should give 2 curves :&amp;nbsp;&lt;/P&gt;&lt;P&gt;[v0, v1, v2,] and [v3, v4, v5]?&lt;/P&gt;&lt;P&gt;(hair implementation) .&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2019 18:46:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Curves-with-RTC-GEOMETRY-TYPE-FLAT-LINEAR-CURVE/m-p/1143810#M714</guid>
      <dc:creator>Mos__Keicam</dc:creator>
      <dc:date>2019-01-30T18:46:59Z</dc:date>
    </item>
    <item>
      <title>The linear curve uses 2</title>
      <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Curves-with-RTC-GEOMETRY-TYPE-FLAT-LINEAR-CURVE/m-p/1143811#M715</link>
      <description>&lt;P&gt;The linear curve uses 2 control points. Thus in your case you would render the two curves (v0,v1) and (v3,v4).&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2019 05:56:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Curves-with-RTC-GEOMETRY-TYPE-FLAT-LINEAR-CURVE/m-p/1143811#M715</guid>
      <dc:creator>SvenW_Intel</dc:creator>
      <dc:date>2019-01-31T05:56:06Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Curves-with-RTC-GEOMETRY-TYPE-FLAT-LINEAR-CURVE/m-p/1143812#M716</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;it seems not consistent with the code which i saw in tutorial motion_blur_geometry_device.cpp :&lt;/P&gt;&lt;P&gt;/* add line geometry */&lt;/P&gt;&lt;P&gt;unsigned int addLines (RTCScene scene, const Vec3fa&amp;amp; pos, unsigned int num_time_steps)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;RTCGeometry geom = rtcNewGeometry (g_device, RTC_GEOMETRY_TYPE_FLAT_LINEAR_CURVE);&lt;/P&gt;&lt;P&gt;rtcSetGeometryTimeStepCount(geom,num_time_steps);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Vec3fa* bspline = (Vec3fa*) alignedMalloc(16*sizeof(Vec3fa),16);&lt;/P&gt;&lt;P&gt;for (int i=0; i&amp;lt;16; i++) {&lt;/P&gt;&lt;P&gt;float f = (float)(i)/16.0f;&lt;/P&gt;&lt;P&gt;bspline&lt;I&gt; = Vec3fa(2.0f*f-1.0f,sin(12.0f*f),cos(12.0f*f));&lt;/I&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for (unsigned int t=0; t&amp;lt;num_time_steps; t++)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;RTCBufferType bufType = RTC_BUFFER_TYPE_VERTEX;&lt;/P&gt;&lt;P&gt;Vec3fa* vertices = (Vec3fa*) rtcSetNewGeometryBuffer(geom,bufType,t,RTC_FORMAT_FLOAT4,sizeof(Vec3fa),16);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AffineSpace3fa rotation = AffineSpace3fa::rotate(Vec3fa(0,0,0),Vec3fa(0,1,0),2.0f*float(pi)*(float)t/(float)(num_time_steps-1));&lt;/P&gt;&lt;P&gt;AffineSpace3fa scale = AffineSpace3fa::scale(Vec3fa(2.0f,1.0f,1.0f));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for (int i=0; i&amp;lt;16; i++)&lt;/P&gt;&lt;P&gt;vertices&lt;I&gt; = Vec3fa(xfmPoint(rotation*scale,bspline&lt;I&gt;)+pos,0.2f);&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;int* indices = (int*) rtcSetNewGeometryBuffer(geom,RTC_BUFFER_TYPE_INDEX,0,RTC_FORMAT_UINT,sizeof(int),15);&lt;/P&gt;&lt;P&gt;for (int i=0; i&amp;lt;15; i++) indices&lt;I&gt; = i;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;alignedFree(bspline);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;rtcCommitGeometry(geom);&lt;/P&gt;&lt;P&gt;unsigned int geomID = rtcAttachGeometry(scene,geom);&lt;/P&gt;&lt;P&gt;rtcReleaseGeometry(geom);&lt;/P&gt;&lt;P&gt;return geomID;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looks like&amp;nbsp;in index buffer we put index of the segments - (15 segments and 16 vertices). At least this is the way i implemented - are y actually saying that for having two curves [v0, v1, v2,] and [v3, v4, v5] i should put (0, 1, 1,&amp;nbsp; 2, 3, 4, 4, 5) ? It's confusing. Thanks for the insight&amp;nbsp;in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2019 10:46:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Curves-with-RTC-GEOMETRY-TYPE-FLAT-LINEAR-CURVE/m-p/1143812#M716</guid>
      <dc:creator>Mos__Keicam</dc:creator>
      <dc:date>2019-02-07T10:46:55Z</dc:date>
    </item>
    <item>
      <title>Embree draws a line from</title>
      <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Curves-with-RTC-GEOMETRY-TYPE-FLAT-LINEAR-CURVE/m-p/1143813#M717</link>
      <description>&lt;P&gt;Embree draws a line from vertices[index_buffer[curve_id]+0] to vertices[index_buffer[curve_id]+1].&lt;/P&gt;&lt;P&gt;What do you mean with a curve [v0,v1,v2] ?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2019 10:57:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Curves-with-RTC-GEOMETRY-TYPE-FLAT-LINEAR-CURVE/m-p/1143813#M717</guid>
      <dc:creator>SvenW_Intel</dc:creator>
      <dc:date>2019-02-07T10:57:31Z</dc:date>
    </item>
    <item>
      <title>I want to have to separate</title>
      <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Curves-with-RTC-GEOMETRY-TYPE-FLAT-LINEAR-CURVE/m-p/1143814#M718</link>
      <description>&lt;P&gt;I want to have two separate curves. It's just strange that in this tutorial it's&amp;nbsp;&amp;nbsp;for (int i=0; i&amp;lt;15; i++) indices&lt;I&gt; = i;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;So i guess that i'd have to put [0,1,1,2,3,4,4,5] to have curves [v0,v1,v2] and [v3,v4,v5].&lt;/P&gt;&lt;P&gt;How&amp;nbsp;rayhit.hit.primID correspond to this curve ? I guess&amp;nbsp;&lt;/P&gt;&lt;P&gt;rayhit.hit.primID = { 0,1,2,3 } 0 - [0,1] , 1 - [1,2],&amp;nbsp; 2 - [3,4], 3-[4,5] ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2019 11:06:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Curves-with-RTC-GEOMETRY-TYPE-FLAT-LINEAR-CURVE/m-p/1143814#M718</guid>
      <dc:creator>Mos__Keicam</dc:creator>
      <dc:date>2019-02-07T11:06:00Z</dc:date>
    </item>
    <item>
      <title>In the tutorial vertices get</title>
      <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Curves-with-RTC-GEOMETRY-TYPE-FLAT-LINEAR-CURVE/m-p/1143815#M719</link>
      <description>&lt;P&gt;In the tutorial vertices get shared between neighboring curves.&lt;/P&gt;&lt;P&gt;If you do not want to share vertices you have to fill the index array with [0,2,4] to get cuves p0-&amp;gt;p1 (primID=0), p2-&amp;gt;p3 (primID=1), and p4-&amp;gt;p5 (primID=2).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2019 12:24:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Curves-with-RTC-GEOMETRY-TYPE-FLAT-LINEAR-CURVE/m-p/1143815#M719</guid>
      <dc:creator>SvenW_Intel</dc:creator>
      <dc:date>2019-02-07T12:24:46Z</dc:date>
    </item>
  </channel>
</rss>

