Save to BitmapData

Software: Away3D 4.x

Krappt, Newbie
Posted: 30 November 2012 11:59 AM   Total Posts: 27

Hello!

I have a problem. After Upgrade to Away3d 4.0.1 Alpha, I found that the option has been removed swapBackBuffer, who was in the class RenderBase, and instead added clearOnRender.

This resulted in a failure to make a screenshot scene Away3d, instead preserved white screen.

ClearOnRender parameter is kept private and access it impossible. I changed the scope of the source code on the public, then the option is available, but it did not correct the problem with the white screen.

The code I’ve used before:

var bd BitmapData = new BitmapDatathis.widththis.height );
        
view.renderer.swapBackBuffer false;
        
view.render();
        
bd.drawAppFacade.main.view.stage );
        
view.renderer.queueSnapshot(bd);
        
view.renderer.swapBackBuffer false

Tell me how to fix the problem with the white screen?

   

tomihr, Jr. Member
Posted: 30 November 2012 10:23 PM   Total Posts: 31   [ # 1 ]

Hello,

there is new method now:

view.renderer.queueSnapshot(bmd:BitmapData);

, you use that one instead all that code

   

tomihr, Jr. Member
Posted: 30 November 2012 10:24 PM   Total Posts: 31   [ # 2 ]

Hello,

there is new method now:

view.renderer.queueSnapshot(bmd:BitmapData);

, you use that one instead all that code

grin

Sorry I clicked twice.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X