Copy link to clipboard
Copied
Hi there,
Animating disks (orbiting another disk) with labels inside, I observe small variations in the location of the label relative to its parent circle, hence a flickering effect.
I used AntiAliasType.ADVANCED.
And I replaced the original Event.ENTER_FRAME event listener by a TimerEvent.TIMER one. But still flickering.
Any suggestion ? Thanks.
Gil
Copy link to clipboard
Copied
embed your font(s).
Copy link to clipboard
Copied
Hi kglad,
I just tried embedding the font. But as I feared, the result is the same, whether using the system font or the one embedded 😞
I suspect it has to do with the fact that the labels jump from pixel rounded coordinates, while the circles are rendered un twix coordinates. With a text created at authoring, there are options Anti-alias for legibility versus Anti-alias for animation. I expected AntiAliasType.ADVANCED to be equivalent to the latter.
But may be seing the problem will help ? The files are there : https://app.box.com/s/y4dez4l7mswcndpuw6q2
Gil
Copy link to clipboard
Copied
enable cacheAsBitmap of your disques.
Copy link to clipboard
Copied
Indeed, the circle+label being rasterized, there is no longer micro-motion of the label relative to its parent circle.
But some circles are slightly clipped and that's now the whole circle+label that suffer from micro-motion ! Those defects are less annoying than in my first version. Thanks, kglad 🙂
And I am still interested in understanding the reason why those micro-motions. Is it inherent to rounding to pixel values ? I thought the player was computing in twixes (twentieths of pixel).
Gil
Copy link to clipboard
Copied
no, the problems aren't from rounding. they are all performance issues.
there are several things you can do to minimize the problem including increasing your frame rate, disabling mouse interactivity with your disques and if that's not possible disabling the mouseChildren property of your disques.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now