<div dir="ltr"><div dir="ltr">You're amazing, you fixed it! Thanks!<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, May 13, 2019 at 3:50 PM Juan Vuletich <<a href="mailto:juan@jvuletich.org">juan@jvuletich.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 5/13/2019 9:46 AM, Luciano Notarfrancesco via Cuis-dev wrote:<br>
> Hi,<br>
> I just ported to the latest Cuis this old project: <br>
> <a href="https://github.com/len/RayTracer" rel="noreferrer" target="_blank">https://github.com/len/RayTracer</a><br>
><br>
> But I get this weird clipping of the highlights. See attached picture <br>
> and compare it with the one at the bottom of the github project home.<br>
><br>
> The first version was implemented with a new class Float32Color3 that <br>
> I added to the package 'Math 3D' to represent colors, but later Juan <br>
> merged Float32Color3 and Color. So now I just used Color, but I get <br>
> this weird clipping. I lost my original Float32Color3, but just to <br>
> make sure the problem was not Color I re-implemented Float32Color3, <br>
> and still I get this effect. I suspect it is related to changes in <br>
> Float during the last couple of years. Any ideas?<br>
><br>
<br>
Hi Luciano,<br>
<br>
The problem was that #+= and similar methods (inherited by Color from <br>
FloatArray) could overflow the valid range [0.0 .. 1.0]. Just pushed fix <br>
to GitHub. Please take a look.<br>
<br>
Thanks,<br>
<br>
-- <br>
Juan Vuletich<br>
<a href="http://www.cuis-smalltalk.org" rel="noreferrer" target="_blank">www.cuis-smalltalk.org</a><br>
<a href="https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev" rel="noreferrer" target="_blank">https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev</a><br>
<a href="https://github.com/jvuletich" rel="noreferrer" target="_blank">https://github.com/jvuletich</a><br>
<a href="https://www.linkedin.com/in/juan-vuletich-75611b3" rel="noreferrer" target="_blank">https://www.linkedin.com/in/juan-vuletich-75611b3</a><br>
@JuanVuletich<br>
<br>
</blockquote></div></div>