<?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 Implementing Displacement mapping in Intel® Embree Ray Tracing Kernels</title>
    <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Implementing-Displacement-mapping/m-p/1645971#M1005</link>
    <description>&lt;P&gt;Hi, I am try to implement displacement map in our engine and get stucked with getting object uv coords in displacement callback functions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the callback functions, the input is "RTCDisplacementFunctionNArguments args", and we can modify the position args-&amp;gt;p_x, args-&amp;gt;p_y, args-p_z with displacement values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With displacement map, we have to query the the displacement value with corresponding uv coordinate. So, I am wondering how get this value? I assume, with primID we know which triangle we are processing, we also need the barycentrics coord to know exactly which point we are dealing with?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Looks like the args-&amp;gt;u and args-&amp;gt;v are differnet from what we are talking here?)&lt;/P&gt;</description>
    <pubDate>Wed, 27 Nov 2024 03:08:45 GMT</pubDate>
    <dc:creator>ChiWang</dc:creator>
    <dc:date>2024-11-27T03:08:45Z</dc:date>
    <item>
      <title>Implementing Displacement mapping</title>
      <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Implementing-Displacement-mapping/m-p/1645971#M1005</link>
      <description>&lt;P&gt;Hi, I am try to implement displacement map in our engine and get stucked with getting object uv coords in displacement callback functions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the callback functions, the input is "RTCDisplacementFunctionNArguments args", and we can modify the position args-&amp;gt;p_x, args-&amp;gt;p_y, args-p_z with displacement values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With displacement map, we have to query the the displacement value with corresponding uv coordinate. So, I am wondering how get this value? I assume, with primID we know which triangle we are processing, we also need the barycentrics coord to know exactly which point we are dealing with?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Looks like the args-&amp;gt;u and args-&amp;gt;v are differnet from what we are talking here?)&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2024 03:08:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Implementing-Displacement-mapping/m-p/1645971#M1005</guid>
      <dc:creator>ChiWang</dc:creator>
      <dc:date>2024-11-27T03:08:45Z</dc:date>
    </item>
  </channel>
</rss>

