render to a bitmap

Software: Away3D 4.x

louis87, Jr. Member
Posted: 04 November 2011 11:21 AM   Total Posts: 46

There is any way to render one view to a bitmap using Away3D 4?

Thanks!

   

Avatar
theMightyAtom, Sr. Member
Posted: 07 November 2011 07:56 PM   Total Posts: 669   [ # 1 ]
var bmd:BitmapData = new BitmapData(_view.width_view.heightfalse0x00);
 
_view.renderer.swapBackBuffer false;
    
_view.render();
    
_view.stage3DProxy.context3D.drawToBitmapData(bmd);
    
_view.renderer.swapBackBuffer true

This will place the content of the 3D window into the bitmapData, bmd.

Good Luck!

   

louis87, Jr. Member
Posted: 08 November 2011 06:11 AM   Total Posts: 46   [ # 2 ]

thank you very much!!

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X