<div dir="ltr">I&#39;m using OSL gabor noise for displacements in Blender, and I&#39;ve been noticing nasty circle artifacts, coming from the rather coarse thresholding of the gaussian kernel.  I&#39;ve been doing experiments with the gabor noise code outside of blender, and got very good results by simply changing the line<div><br></div><div>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">static</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">const</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">float</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">Gabor_Truncate</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">=</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">0.02f;</span></pre><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)"><br></span></pre><pre style="margin-top:0px;margin-bottom:0px"><font face="arial, sans-serif"><span style="white-space:normal">to</span></font></pre><pre style="margin-top:0px;margin-bottom:0px"><font face="arial, sans-serif"><span style="white-space:normal"><br></span></font></pre><pre style="margin-top:0px;margin-bottom:0px"><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">static</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">const</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">float</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">Gabor_Truncate</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">=</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">0.0002f;</span></pre><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)"><br></span></pre><pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:arial,sans-serif;white-space:normal">This causes the search radius for impulses to be about half again as large, at some performance cost.  But not bad for reducing the artifact magnitude by a factor of a hundred.</span><br></pre><pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:arial,sans-serif;white-space:normal"><br></span></pre><pre style="margin-top:0px;margin-bottom:0px"><font face="arial, sans-serif"><span style="white-space:normal">I&#39;d like to get this working in Blender just for my own use and further testing, but I&#39;m having trouble building OSL for blender.  I&#39;ve checked out the &quot;blender-fixes&quot; branch, but I get linking errors because for some reason it doesn&#39;t link to the C++ standard library.  </span></font></pre><pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px"><font face="arial, sans-serif"><span style="white-space:normal">I don&#39;t know much about CMake, and I am under the gun a bit, so I&#39;m trying to</span></font><span style="white-space:normal;font-family:arial,sans-serif"> to get in touch with whoever built the mac OSL library for blender to see if they have any suggestions.  Would that be </span><font face="arial, sans-serif"><span style="white-space:normal">Lukas Tönne?</span></font></pre><pre style="margin-top:0px;margin-bottom:0px"><font face="arial, sans-serif"><span style="white-space:normal"><br></span></font></pre><pre style="margin-top:0px;margin-bottom:0px"><font face="arial, sans-serif"><span style="white-space:normal">Many thanks, and any help much appreciated,</span></font></pre><pre style="margin-top:0px;margin-bottom:0px"><font face="arial, sans-serif"><span style="white-space:normal"><br></span></font></pre><pre style="margin-top:0px;margin-bottom:0px"><font face="arial, sans-serif"><span style="white-space:normal">Kevin Atkinson</span></font></pre><pre style="margin-top:0px;margin-bottom:0px"><font face="arial, sans-serif"><span style="white-space:normal"><br></span></font></pre><div><font face="arial, sans-serif"><span style="white-space:normal"><br></span></font></div></pre></div></div>