<div dir="ltr">Hi,<div><br></div><div>It&#39;s usually good idea to have a look before asking ;)</div><div><br></div><div>Simplest idea to implement would be to lower the SHL used for packing, something like [1]. Doing something like this should already help you rendering more curve segments.</div><div><br></div><div>In order to fully avoid limitation here we&#39;ll need to decouple primitive type from segment index completely. It&#39;s not fully trivial but quite doable.</div><div><br></div><div>[1] <a href="http://hastebin.com/erojorulen">http://hastebin.com/erojorulen</a></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 11, 2016 at 7:06 AM, Mohamed Sakr <span dir="ltr">&lt;<a href="mailto:3dsakr@gmail.com" target="_blank">3dsakr@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Sergey,<br><br>so is there a solution? I didn&#39;t have a look yet.</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 10, 2016 at 10:36 PM, Sergey Sharybin <span dir="ltr">&lt;<a href="mailto:sergey.vfx@gmail.com" target="_blank">sergey.vfx@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div>In such case you&#39;re most likely hitting numeric overflow in PRIMITIVE_UNPACK_SEGMENT/PR<wbr>IMITIVE_PACK_SEGMENT.</div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_7376191900992264274h5">On Thu, Nov 10, 2016 at 8:45 PM, Mohamed Sakr <span dir="ltr">&lt;<a href="mailto:3dsakr@gmail.com" target="_blank">3dsakr@gmail.com</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_7376191900992264274h5"><div dir="ltr">more info:<br>this happens when Curve got more than 32k keys (Int16), 1&lt;&lt;15 key points in 1 Curve.<br>any idea? it builds bad BVH for this case.</div><div class="m_7376191900992264274m_6957047862890822745HOEnZb"><div class="m_7376191900992264274m_6957047862890822745h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 9, 2016 at 3:01 AM, Mohamed Sakr <span dir="ltr">&lt;<a href="mailto:3dsakr@gmail.com" target="_blank">3dsakr@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<br><br>there is a perma crash in BVH build for curves.<br>leaf got #DEN values.<br><br>we got the build of 12th October, my CPU is I7 3930k.<br><br>anybody else encountered such crashes? (all BVH types crashes, aligned or not aligned, static/dynamic, QBVH, ..)<br><br>this happens only with curves.<br><br>cheers,<br>Mohamed Sakr</div>
</blockquote></div><br></div>
</div></div><br></div></div>______________________________<wbr>_________________<br>
Bf-cycles mailing list<br>
<a href="mailto:Bf-cycles@blender.org" target="_blank">Bf-cycles@blender.org</a><br>
<a href="https://lists.blender.org/mailman/listinfo/bf-cycles" rel="noreferrer" target="_blank">https://lists.blender.org/mail<wbr>man/listinfo/bf-cycles</a><br>
<br></blockquote></div><span class="m_7376191900992264274HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div class="m_7376191900992264274m_6957047862890822745gmail_signature" data-smartmail="gmail_signature"><div><span style="color:rgb(102,102,102)">With best regards, Sergey Sharybin</span></div></div>
</font></span></div>
<br>______________________________<wbr>_________________<br>
Bf-cycles mailing list<br>
<a href="mailto:Bf-cycles@blender.org" target="_blank">Bf-cycles@blender.org</a><br>
<a href="https://lists.blender.org/mailman/listinfo/bf-cycles" rel="noreferrer" target="_blank">https://lists.blender.org/mail<wbr>man/listinfo/bf-cycles</a><br>
<br></blockquote></div><br></div>
</div></div><br>______________________________<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>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div><span style="color:rgb(102,102,102)">With best regards, Sergey Sharybin</span></div></div>
</div>