|
| Smooth animation involving multiple gradient objects |
 |
Sat, 10 May 2008 08:21:21 +000 |
Hi,
I have an animation that contains 3 rectangles with gradient fill on 3
separate layers, overlapping each other(basically making a glassy capsule sorta
thing). In the beginning of the movie, the rectangles fade in, in more or less
the same timeframe. The animation speed becomes choppy during this part of the
movie, irrespective of the framerate I specify. (It's currently at 50)
I also have some cacheBitmap() functions(for dynamic masking later on in the
movie) taking place in the first keyframe. Tried removing them to test the
speed, but no visible difference can be seen.
Would be great if someone could tell me how I could fix this problem.
Thanks! :smile;
|
| Post Reply
|
| Re: Smooth animation involving multiple gradient objects |
 |
Sat, 10 May 2008 11:55:30 +000 |
|
| Post Reply
|
| Re: Smooth animation involving multiple gradient objects |
 |
Sat, 10 May 2008 13:34:26 +000 |
unfortunately, both a gradient and alpha transitioning are known to cause a
slow down in rendering performance due to the extreme amount of calculations
necessary in order to perform these redraws. you could try using the 'use
runtime bitmap caching' on all of those clips - or convert directly to
BitmapData objects as CHAOS mentions.
|
| Post Reply
|
| Re: Smooth animation involving multiple gradient objects |
 |
Mon, 12 May 2008 07:25:05 +000 |
Thanks a lot guys. I looked into the runtime bitmap caching issue, but it
didn't seem to solve the problem. Although, there definitely was a noticeable
performance increase when I did so. I enabled it for the background on which
the rectangles were drawn. I haven't done the SVG thing though, as the
gradients themselves were vector data, drawn in Flash. I could try grouping
them and making them a single SVG file though -muses thoughtfully-
|
| Post Reply
|
| Re: Smooth animation involving multiple gradient objects |
 |
Mon, 12 May 2008 13:00:03 +000 |
|
| Post Reply
|
|
|
|
|
|
|
|
|
|