Checkerboard Layer finished. It is 20% faster in Cairo than in software.

Also it fixes one render artifact that was not noticed before.
See attached images and how the rendered by Cairo places correctly the
checkerboard in the right place. Synfig's software shifts the checker to
the right down a little bit.
Another bug discovered!
Cheers!


2012/8/11 Carlos López González <genet...@gmail.com>

> Thanks Diego!
>
> Circle Layer fully implemented. Feather is achieved with a radial gradient
> with many (10) color stops. Possibly optimizations to evaluate the fall off
> functions in a smarter way than at regular intervals.
> Still a bit faster than Software but Cosine and Sigmond fall offs doesn't
> look so well.
> Which layer will be the next one? I think I'll do Checkerboard the next
> one. It will allow me to understand repeated patterns.
> Cheers!
>
>
> 2012/8/10 Diego Barrios Romero <eldr...@gmail.com>
>
>> Congratulations Carlos! You are doing a GREAT job! :)
>>
>> 2012/8/10 Carlos López González <genet...@gmail.com>
>>
>>> Simple non feathered circles is complete. Cairo is 29% faster with
>>> circles.
>>> Cheers!
>>>
>>>
>>> 2012/8/7 Carlos López González <genet...@gmail.com>
>>>
>>>> Ok, so now working on Circle layer.
>>>> Initially the code will be similar to the rectangle but I was
>>>> scratching my head on how to emulate the feather. Then I discovered that a
>>>> circle with zero radius will render a feather if requested, what surprised
>>>> to me initially because I guessed that the feather was some kind of blur
>>>> based on the rendered circle but that's not that way.
>>>>
>>>> That discovery helped me to figure out one way to draw the feather. The
>>>> feather can be perfectly emulated in Synfig itself by placing a Radial
>>>> gradient with the proper color values and radiuses. So in the case of
>>>> feathered circles I'll produce the render in Cairo y creating the proper
>>>> radial gradient.
>>>> Since the circle has different falloffs of the feather (Linear, Cosine,
>>>> Square, etc.) and Cairo's radial gradient only supports linear falloff
>>>> between control points of the gradient it will be needed to evaluate the
>>>> falloff function is several points (it will depend on the quality) to match
>>>> the same render result than the Software render.
>>>>
>>>> I'm happy because it will be a solution for the feathered circle.
>>>>
>>>> Please see attached image as example for what I'm talking about.
>>>> http://imagebin.org/223654
>>>> The left circle is rendered using a Circle layer and the right one is
>>>> rendered using a Radial Gradient layer. Everything using Software render.
>>>> I expect to have a Circle layer fully rendered using Cairo API in a few
>>>> days.
>>>>
>>>> Cheers!
>>>>
>>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Live Security Virtual Conference
>>> Exclusive live event will cover all the ways today's security and
>>> threat landscape has changed and how IT managers can respond. Discussions
>>> will include endpoint security, mobile security and the latest in malware
>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>>> _______________________________________________
>>> Synfig-devl mailing list
>>> Synfig-devl@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/synfig-devl
>>>
>>>
>>
>>
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond. Discussions
>> will include endpoint security, mobile security and the latest in malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> Synfig-devl mailing list
>> Synfig-devl@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/synfig-devl
>>
>>
>
>
> --
> Carlos
> http://synfig.org
>
>


-- 
Carlos
http://synfig.org

<<attachment: checker-cairo.png>>

<<attachment: checker-software.png>>

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Synfig-devl mailing list
Synfig-devl@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to