Re: An inherent flaw in <canvas>?

On Jan 31, 2011, at 4:45 PM, Aryeh Gregor wrote:

> On Mon, Jan 31, 2011 at 1:50 PM, Tab Atkins Jr. <jackalmage@gmail.com> wrote:
>> No.  It's a fundamental restriction of an immediate-mode,
>> one-shape-at-a-time API that this sort of thing will happen,
>> especially if anti-aliasing is involved.
> 
> The Flash version of the program looks like it's using an
> immediate-mode, one-shape-at-a-time API:
> 
> https://github.com/petewarden/stitchingbug/blob/master/FlashVersion/src/StitchingTest.mxml
> 
> But it apparently doesn't exhibit the problem.  Surely there's some
> trick you could use to avoid the problem a lot of the time in
> practice.

It would be interesting to know Flash avoids the issue.

One approach that I know will work (better than "retained mode + magic") is to turn off antialiasing. Maybe canvas should have an API for that, since sometimes crisp edges are more important than smoothness. It does not look like Flash turns off AA though.

Regards,
Maciej

Received on Tuesday, 1 February 2011 00:53:21 UTC