drawToBitmapData on iOS


hi guys,

 

i installed latest version of air hoping there changes on this, still have problem let me try ask help...

 

i have render stage3d on bitmap, screenshot, , i’m using drawtobitmapdata function, example on api documentation.

this works fine on desktop not on mobile, example on ipad3, nothing shown.

 

i noticed, reading around, if put call render function every frame, on ipad see correctly render result moved on bitmap , pasted on stage. not using single call, need.

 

 

so, function this:

 

private function render(event:event):void {

 

   stage3d.context3d.clear(0, 0, 0, 1);

   stage3d.context3d.drawtriangles(quadindices);

   stage3d.context3d.drawtobitmapdata(bd);

   stage3d.context3d.present();                       

  

   var bitmap:bitmap = new bitmap(bd);

   addchild(bitmap);

 

}

 

on mobile have working result adding ’addeventlistener(event.enter_frame, render)’

 

think?

thanks!

i'm gonna crazy...

it's not possible on ipad render on bitmap without insert function call onframe loop absurd reason, can imagine performance...

 

so @ point have remove listener , thought wait until last pixels of bitmapdata different 0 (because there aren't event linked drawtobitmapdata handle , wait for)... well, issue... on ipad getpixel return 0 , not value expect (like on desktop tests)

 

 

 

are there other way screenshot stage3d on damn ios device?



More discussions in AIR Development


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support