Making BitmapData with filters3d.

Software: Away3D 4.x

Avatar
GoroMatsumoto, Sr. Member
Posted: 06 August 2012 01:22 AM   Total Posts: 166

Hi everyone.

When I make a screenshot as bitmapdata, I get a error like this.

Error: Error #3692: All buffers need to be cleared every frame before drawing.
at flash.display3D::Context3D/drawToBitmapData()

I use Bloom filter.(attach with View3D.fliters3d=[].)
It seems that drawToBitmapData() cannot work with filters.
Is that right?

Thanks.

   

Avatar
GoroMatsumoto, Sr. Member
Posted: 06 August 2012 03:55 AM   Total Posts: 166   [ # 1 ]

I found “queueSnapshot(BitmapData)” method.
It works fine with filters.

Before:

view.renderer.swapBackBuffer false;
view.render();
view.stage3DProxy.context3D.drawToBitmapData(outBd);
view.renderer.swapBackBuffer true

After:

view.render();
view.renderer.queueSnapshot(outBd); 
   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X