OK. figured some of it out and wanna share so you won’t feel so alone
http://xkcd.com/979/
first of all, my problem was to show a 3d object over some 2d stuff. background image is no good, since when i add filters3d, it’s effected too.
so, I’ve done two things:
1. add a large plane or a box (skybox) that will block the full background of your image. Apply a bitmap material to it. The material should use a transparent BitmapData (transparent = true and a color of 0x00RRGGBB).
This way when you use
view3D.stage3DProxy.context3D.drawToBitmapData(bmData);
you should receive a transparent BitmapData with your model on top of it.
problems:
a. if you apply alpha to the model material, it will render black as the background color
b. filters sometimes kill the transparency. make sure your back plane is not associated with any lights
2. the second problem was to render with filters3d. they work great on regular render, but not when you use the drawToBitmapData method.
Here i needed to go inside the away3d files, and change the line 381
_stage3DProxy._context3D.present();
simply put it in a remark, that way you wont crash when doing
view3D.renderer.swapBackBuffer = false;
view3D.render();
view3D.stage3DProxy.context3D.drawToBitmapData(bmData);
view3D.renderer.swapBackBuffer = true;
hope i helped some poor soul