What would be a good use for "BitmapRenderer"?

14 views
Skip to first unread message

carlos.lunetta

unread,
Feb 26, 2010, 8:57:36 PM2/26/10
to Stardust Particle Engine
Hello all

I've tried to find an example that used BitmapRenderer to understand
where is it's best application, but found none - Any hints?

Thanks again!

Allen Chou

unread,
Feb 26, 2010, 9:52:07 PM2/26/10
to stardust-par...@googlegroups.com
The purpose of bitmap renderers is "baking" display objects onto a bitmap. If you have to draw multiple complex vector shapes, the CPU cost rises up pretty fast. An alternative is to draw these shapes onto a bitmap, and this is when bitmap renderers come in handy. Also, drawing particles onto bitmaps allow you to further apply bitmap effects to the bitmap data, such as blurring and color transformation.

The BitmapRenderer draws each particle's display object onto a bitmap. The SingularBitmapRenderer contains a reference to a single display object to be drawn onto the bitmap, and uses the particles for determining the position and rotation of drawing; the DisplayObjectClass basically has no effect on this renderer, since it determines the display object for particles on its own. Finally, the PixelRenderer renders 1-by-1 pixels onto a bitmap, with colors determined by the Color initializer; same as the singular bitmap renderer, the DisplayObjectClass initializer has no effect on this renderer, either, since this renderer only draws pixels.

carlos.lunetta

unread,
Feb 26, 2010, 10:21:57 PM2/26/10
to Stardust Particle Engine
I understand know - thanks a lot for your patience and feedback!
Reply all
Reply to author
Forward
0 new messages