# ColorMatrixFilter, Blending, Bitmaps

**URL:** <https://forum.kirupa.com/t/colormatrixfilter-blending-bitmaps/295406>\
**Category:** flash\
**Created:** [August 29, 2009, 4:52pm UTC](https://forum.kirupa.com/t/colormatrixfilter-blending-bitmaps/295406 "2009-08-29T16:52:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dan0](https://avatars.discourse-cdn.com/v4/letter/d/97f17d/32.png) [@Dan0](https://forum.kirupa.com/u/Dan0)\
**Post date:** [August 29, 2009, 4:52pm UTC](https://forum.kirupa.com/t/colormatrixfilter-blending-bitmaps/295406/1 "2009-08-29T16:52:07Z")

</div>

Solved HERE: [http://dan0.net/temp/particlewave/wave\_3d.html](http://dan0.net/temp/particlewave/wave_3d.html)

Hey,  
My experiment is here: [http://wonderfl.net/code/05995b35bb6d1ae27f6a704d201443956b2f201c](http://wonderfl.net/code/05995b35bb6d1ae27f6a704d201443956b2f201c)

It’s a mashup from two inspirations. Basically I’m using PV3D to add pixels to the scene everyframe and I have an BitmapEffectLayer handling their display. At the moment I am using a ColorMatrixFilter to fade out the pixels each frame and then add new ones. This is great but I also want additive blending (so when many pixels are on top of each other they turn white).

The original 2D version of this basically added the particles color to the original pixel color creating an additive blend. But I can’t do that in 3D!!! Once the old pixels have been drawn they go to the BitmapEffectLayerand are rendered in 2D… but I can go from 2D back to 3D again… I hope I have explained my problem clearly… also even if I could my skill doesn’t permit me to do it…

Any help would be appreciated… you can fork my code on wonderfl as a reply 😉
