<div dir="ltr"><div>Here's a patch for a bevel shader node:</div><a href="https://developer.blender.org/D2803">https://developer.blender.org/D2803</a><br><div><br></div><div>It's using a raytraced sampling algorithm that's different than other rounded edge implementations I've heard of, derived from BSSRDF sampling.<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 18, 2017 at 2:11 PM, Stefan Werner <span dir="ltr"><<a href="mailto:stewreo@gmail.com" target="_blank">stewreo@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<span class=""><br>
> On 18. Aug 2017, at 09:40, Alberto Velázquez <<a href="mailto:alberto3d.1984@gmail.com">alberto3d.1984@gmail.com</a>> wrote:<br>
><br>
> Actually we have a workaround to try bevels with OSL, but it don't work properly, it's really slow (x5-10 times in render time from CPU) and it is really complex to use. And It's worst baking.<br>
<br>
</span>Without having tried it, I wouldn’t expect much better performance without OSL. A rounded edge shader requires tracing several extra rays, which are costly regardless of the shader language.<br>
<br>
If anyone wants to try their luck implementing it directly in Cycles, these modifications made by Chaos Group could be helpful:<br>
<a href="http://on-demand.gputechconf.com/gtc/2016/presentation/s6345-taskov-blagovest-advances-in-v-ray.pdf" rel="noreferrer" target="_blank">http://on-demand.gputechconf.<wbr>com/gtc/2016/presentation/<wbr>s6345-taskov-blagovest-<wbr>advances-in-v-ray.pdf</a><br>
<span class="HOEnZb"><font color="#888888"><br>
-Stefan<br>
</font></span><div class="HOEnZb"><div class="h5">______________________________<wbr>_________________<br>
Bf-cycles mailing list<br>
<a href="mailto:Bf-cycles@blender.org">Bf-cycles@blender.org</a><br>
<a href="https://lists.blender.org/mailman/listinfo/bf-cycles" rel="noreferrer" target="_blank">https://lists.blender.org/<wbr>mailman/listinfo/bf-cycles</a><br>
</div></div></blockquote></div><br></div>