Re: [Flashcoders] animating into bitmaps data, recording stop points

2008-04-10 Thread Mick G
I have this data available for each stop point so re-creating the bitmap
isn't a big deal, but I am concerned with the lag in doing this because the
animation is script generated and very complex i.e. it may take a few (or up
to 5 seconds) to re-generate the data for each of these frames. The data at
times is an array of 1000+ lines or pixel data.

I'll have to test and see if this can work.


On Wed, Apr 9, 2008 at 11:44 AM, Glen Pike <[EMAIL PROTECTED]>
wrote:

> Maybe record your vector data / changes each "frame", or similar, so that
> you can redraw the bitmaps if necessary.
>
> It's almost like an undo function;  So for each bitmap you render, you
> would store the commands to draw it.
> You can make this even more compact by just storing the changes since the
> last render, although if you are storing loads of "frames" you may want to
> create a "keyframe" every so often that stores all the information needed to
> draw a bitmap without relying on previous frames.  The keyframe thing is
> used in MPEG and other similar compression methods.
>
> Then you can render the bitmaps as normal, but only store the most recent.
>  If you want to step backwards, you use the vector info to redraw the
> bitmap.
>
> Mick G wrote:
>
> > I'm working on an animation of sorts that uses the Flash drawing api to
> > draw
> > into bitmapdata.
> >
> > At various intervals throughout the animation I want to record
> > screenshots
> > and be able to step back and view these various stages of the animation.
> >
> > The only way I can think of achieving this is creating copies of the
> > bitmap
> > data in memory and re-loading them into the scene as needed. Problem
> > here is
> > it would be very memory intensive if I want to record 20 or more
> > screenshots.
> >
> > Any other suggestions?
> >
> > I could possibly re-generate the animation at the recorded stop-point
> > each
> > time but that would take possibly a few seconds to re-create the bitmap
> > for
> > each point.
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> >
> >
> >
>
> --
>
> Glen Pike
> 01736 759321
> www.glenpike.co.uk 
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] animating into bitmaps data, recording stop points

2008-04-09 Thread Glen Pike
Maybe record your vector data / changes each "frame", or similar, so 
that you can redraw the bitmaps if necessary.


It's almost like an undo function;  So for each bitmap you render, you 
would store the commands to draw it. 

You can make this even more compact by just storing the changes since 
the last render, although if you are storing loads of "frames" you may 
want to create a "keyframe" every so often that stores all the 
information needed to draw a bitmap without relying on previous frames.  
The keyframe thing is used in MPEG and other similar compression methods.


Then you can render the bitmaps as normal, but only store the most 
recent.  If you want to step backwards, you use the vector info to 
redraw the bitmap.


Mick G wrote:

I'm working on an animation of sorts that uses the Flash drawing api to draw
into bitmapdata.

At various intervals throughout the animation I want to record screenshots
and be able to step back and view these various stages of the animation.

The only way I can think of achieving this is creating copies of the bitmap
data in memory and re-loading them into the scene as needed. Problem here is
it would be very memory intensive if I want to record 20 or more
screenshots.

Any other suggestions?

I could possibly re-generate the animation at the recorded stop-point each
time but that would take possibly a few seconds to re-create the bitmap for
each point.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


  


--

Glen Pike
01736 759321
www.glenpike.co.uk 

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] animating into bitmaps data, recording stop points

2008-04-09 Thread Mick G
I'm working on an animation of sorts that uses the Flash drawing api to draw
into bitmapdata.

At various intervals throughout the animation I want to record screenshots
and be able to step back and view these various stages of the animation.

The only way I can think of achieving this is creating copies of the bitmap
data in memory and re-loading them into the scene as needed. Problem here is
it would be very memory intensive if I want to record 20 or more
screenshots.

Any other suggestions?

I could possibly re-generate the animation at the recorded stop-point each
time but that would take possibly a few seconds to re-create the bitmap for
each point.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders