• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

bitmapdata.draw and stage3D

Guest
Oct 27, 2011 Oct 27, 2011

Copy link to clipboard

Copied

I have a script that uses a lot of complicated .draw calls with matrix transformation (scale and shift), displaying different parts of a big image (thousands by thousands px) in a kind of navigatior window.

Currently it's done in "old" AS3 for FP10. Is there a way to speed these calls up using GPU and stage3D in the new player FP11?

Can GPU help with that kind of image manupulation?

TOPICS
ActionScript

Views

2.5K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Oct 29, 2011 Oct 29, 2011

Copy link to clipboard

Copied

Anyone?

Are there any Adobe developers here who might know the answer?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Nov 04, 2011 Nov 04, 2011

Copy link to clipboard

Copied

Another bump... can not believe nobody knows this...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 04, 2011 Nov 04, 2011

Copy link to clipboard

Copied

Yes, using Stage3D improves performance dramatically.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Nov 04, 2011 Nov 04, 2011

Copy link to clipboard

Copied

Good news, thank you!

Can anyone tell me what could be a Stage3D equivalent of this:

var img:BitmapData = .......

var rgn:Rectangle = ........

var scl:Number = ....

var matrix:Matrix = new flash.geom.Matrix();

rgn.x *= scl;

rgn.y *= scl;

rgn.width *= scl;

rgn.height *= scl;

matrix.scale(scl,scl);

matrix.tx = -rgn.left;

matrix.ty = -rgn.top;

var mapBD:BitmapData = new BitmapData(rgn.width,rgn.height,false,0x000000);

mapBD.draw(img,matrix,null,null,new Rectangle(0,0,rgn.width,rgn.height),true);

var mapLayer:Bitmap = new Bitmap(mapBD);

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 04, 2011 Nov 04, 2011

Copy link to clipboard

Copied

You need to use shaders or AGAL (which, essentially a runtime shader). There is no direct correlation between regular AS3 bitmapdata manipulations and Stage3D.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 04, 2011 Nov 04, 2011

Copy link to clipboard

Copied

LATEST

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines