OK, I trust you on that.  I was just making sure that it didn't indicate a bug.

        -- lg


On Jul 20, 2012, at 10:04 AM, Stefan Stavrev wrote:

> I copied that from the SVG spec:
> 
> http://www.w3.org/TR/SVGCompositing/
> 
> They have the reduced formulas there. It is correct but it
> is not reduced to the end.
> 
> It is just 'return b' for that case because:
> 
> (1-b/ba)*(aa/a) = (1-1)*(aa/a) = 0/0 which by definition is 0.
> 
> So, starting from the main formula we have:
> 
> a*(1-ba) + b*(1-aa) + aa*ba*(1-min(1, (1-b/ba)*(aa/a))) =
> 0 + b*(1-aa) + aa*ba*(1-min(1,0)) =
> b*(1-aa) + aa*ba =
> b*(1-aa) + aa*b =
> b
> 
> So the fixed one is: http://ideone.com/hFrNg
> 

--
Larry Gritz
[email protected]


_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to