<?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 Hi Sven, in Intel® Embree Ray Tracing Kernels</title>
    <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Problems-with-RTC-GEOMETRY-TYPE-FLAT-LINEAR-CURVE-3-5-0/m-p/1157162#M737</link>
    <description>&lt;P&gt;Hi Sven,&lt;/P&gt;&lt;P&gt;Sorry,typo, I meant ( and what I actually use) is of course&lt;/P&gt;&lt;P&gt;ray.org+ray.dir*ray.tfar&lt;/P&gt;&lt;P&gt;I have attached some images of the problem. The small pink spheres are the points as calculated using p0+(p1-p0)*ray.u&lt;/P&gt;&lt;P&gt;The side view just shows the ray source location. The top view illustrates the issue.&lt;/P&gt;&lt;P&gt;There are only 4 edges , each edge is length 10 - radius 0.001&lt;/P&gt;&lt;P&gt;The lines are the rays that are recorded as hits.&amp;nbsp; You can see how some ray end points are way off the location computed from ray.u, while some are as expected.&lt;/P&gt;&lt;P&gt;I wonder if no-one has seen this issue as embree always "hits" the correct edge, it just seems that sometimes ray.u is wrong. For rendering hair or similar this might not be ever noticed.&lt;/P&gt;&lt;P&gt;I tried this problem with 128 edges on the same square geometry, and the behaviour was the same. embree always hits the right edge, but in some cases the ray.u seems "wrong".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will try for a reproducer.&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>Thu, 21 Feb 2019 17:08:00 GMT</pubDate>
    <dc:creator>AndrewC</dc:creator>
    <dc:date>2019-02-21T17:08:00Z</dc:date>
    <item>
      <title>Problems with RTC_GEOMETRY_TYPE_FLAT_LINEAR_CURVE (3.5.0)</title>
      <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Problems-with-RTC-GEOMETRY-TYPE-FLAT-LINEAR-CURVE-3-5-0/m-p/1157160#M735</link>
      <description>&lt;P&gt;I am having some very odd issues with RTC_GEOMETRY_TYPE_FLAT_LINEAR_CURVE.&lt;/P&gt;&lt;P&gt;I am intersecting&amp;nbsp; rays with a mixture of lines and triangle geometry.&lt;/P&gt;&lt;P&gt;embree 3.5.0 is returning the correct line primitive in the ID of the ray hit for the line p0-&amp;gt;p1&lt;/P&gt;&lt;P&gt;&amp;nbsp;I then compute the intersection location on the line in two ways as a sanity check&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;using p0+(p1-p0)*ray.u&lt;/LI&gt;&lt;LI&gt;using ray.org+ray.dir*ray.tnear ( should be close within radius of line)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Both computed locations are on very close to the line from p0-&amp;gt;p1, but on many occasions they are significantly different. It appears ray.u is in error.&lt;/P&gt;&lt;P&gt;The radius of the line is much smaller than the problematic errors.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 02:50:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Problems-with-RTC-GEOMETRY-TYPE-FLAT-LINEAR-CURVE-3-5-0/m-p/1157160#M735</guid>
      <dc:creator>AndrewC</dc:creator>
      <dc:date>2019-02-21T02:50:18Z</dc:date>
    </item>
    <item>
      <title>This should not happen, the</title>
      <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Problems-with-RTC-GEOMETRY-TYPE-FLAT-LINEAR-CURVE-3-5-0/m-p/1157161#M736</link>
      <description>&lt;P&gt;This should not happen, the distance from the hit point calculated using tfar should be at most line radius away of the&amp;nbsp;hit point calculated using u. Could you please&amp;nbsp;create a reproducer with one line segment and one ray?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also you write that you use ray.tnear to calculate the hit point. This is wrong it should be ray.tfar.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 07:18:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Problems-with-RTC-GEOMETRY-TYPE-FLAT-LINEAR-CURVE-3-5-0/m-p/1157161#M736</guid>
      <dc:creator>SvenW_Intel</dc:creator>
      <dc:date>2019-02-21T07:18:23Z</dc:date>
    </item>
    <item>
      <title>Hi Sven,</title>
      <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Problems-with-RTC-GEOMETRY-TYPE-FLAT-LINEAR-CURVE-3-5-0/m-p/1157162#M737</link>
      <description>&lt;P&gt;Hi Sven,&lt;/P&gt;&lt;P&gt;Sorry,typo, I meant ( and what I actually use) is of course&lt;/P&gt;&lt;P&gt;ray.org+ray.dir*ray.tfar&lt;/P&gt;&lt;P&gt;I have attached some images of the problem. The small pink spheres are the points as calculated using p0+(p1-p0)*ray.u&lt;/P&gt;&lt;P&gt;The side view just shows the ray source location. The top view illustrates the issue.&lt;/P&gt;&lt;P&gt;There are only 4 edges , each edge is length 10 - radius 0.001&lt;/P&gt;&lt;P&gt;The lines are the rays that are recorded as hits.&amp;nbsp; You can see how some ray end points are way off the location computed from ray.u, while some are as expected.&lt;/P&gt;&lt;P&gt;I wonder if no-one has seen this issue as embree always "hits" the correct edge, it just seems that sometimes ray.u is wrong. For rendering hair or similar this might not be ever noticed.&lt;/P&gt;&lt;P&gt;I tried this problem with 128 edges on the same square geometry, and the behaviour was the same. embree always hits the right edge, but in some cases the ray.u seems "wrong".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will try for a reproducer.&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>Thu, 21 Feb 2019 17:08:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Problems-with-RTC-GEOMETRY-TYPE-FLAT-LINEAR-CURVE-3-5-0/m-p/1157162#M737</guid>
      <dc:creator>AndrewC</dc:creator>
      <dc:date>2019-02-21T17:08:00Z</dc:date>
    </item>
    <item>
      <title>I have convinced myself</title>
      <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Problems-with-RTC-GEOMETRY-TYPE-FLAT-LINEAR-CURVE-3-5-0/m-p/1157163#M738</link>
      <description>&lt;P&gt;I have convinced myself Embree has a bug in the computation of ray.u for this geometry type. After Embree finds an intersection, I compute my own "u" using the ray and line geometry. The "u" I compute is correct ( and in some cases quite different to the embree ray.u).&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 18:59:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Problems-with-RTC-GEOMETRY-TYPE-FLAT-LINEAR-CURVE-3-5-0/m-p/1157163#M738</guid>
      <dc:creator>AndrewC</dc:creator>
      <dc:date>2019-02-21T18:59:15Z</dc:date>
    </item>
    <item>
      <title>I have resolved the issue -</title>
      <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Problems-with-RTC-GEOMETRY-TYPE-FLAT-LINEAR-CURVE-3-5-0/m-p/1157164#M739</link>
      <description>&lt;P&gt;I have resolved the issue - and it's &lt;STRONG&gt;not&lt;/STRONG&gt; a bug in embree.&amp;nbsp; It was my mistake.&lt;/P&gt;&lt;P&gt;My mistake was in the intersectionFilter routine&lt;/P&gt;&lt;P&gt;To get the value of "u" you MUST use&lt;/P&gt;&lt;P&gt;float u=RTCHitN_u(hits,N,rayID);&lt;/P&gt;&lt;P&gt;NOT&lt;/P&gt;&lt;P&gt;float u=ray.u;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2019 21:20:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Problems-with-RTC-GEOMETRY-TYPE-FLAT-LINEAR-CURVE-3-5-0/m-p/1157164#M739</guid>
      <dc:creator>AndrewC</dc:creator>
      <dc:date>2019-02-27T21:20:14Z</dc:date>
    </item>
  </channel>
</rss>

