Hi guys,
My trouble is that I try to desaturate a material of an ObjectContainer3D. So basically I get the mesh then the material, I cast it in a BitmapMaterial and after I tried many ways to desaturate it with more or less success.
The two best ways I have are to use the applyFilter function on the bitmapdata of the Material with a ColorMatrixFilter. or a Pixel Bender shaderFilter. Both filters works well and I have my object nicely desaturate.
But after this transformation, I must resaturate my object, basically go back to the original material but when I save the bitmapdata using the clone function, it did not work and the function applyFilter function do not make a copy of the material so my question is ; how can I do a simple saturation transformation and after go back to the original material.
(i tried the addMethod / removeMethod on the material but it is not stable and both flash and away3d make weird things after that!!)
Any helps will be appreciate!
Good evening!