GPUImage icon indicating copy to clipboard operation
GPUImage copied to clipboard

_gpuImg.renderToBitmapData & IOS

Open PeterTucker opened this issue 11 years ago • 4 comments

For some reason when using _gpuImg.renderToBitmapData(_myBMPD) on a desktop it works fine, but running it on an iOS Device nothing is written to _myBMPD.

PeterTucker avatar Mar 01 '13 20:03 PeterTucker

strange i was testing it on android/ios and it was okay with air 3.4 or 3.3 i'm not sure. maybe some stage3d options changed

inspirit avatar Mar 02 '13 06:03 inspirit

I was able to get it to work on IOS, but it's still really buggy. The provided example that uses ENTER_FRAME works, but when wanting to call _gpuImg.renderToBitmapData(resultBMP); from a single function it will only gives back the bitmap data if context3D.dispose(); is called right after it. Any ideas? Thank you for your help. :)

Cheers Peter

PeterTucker avatar Mar 02 '13 19:03 PeterTucker

i'm afraid it is stage3d feature/limitation that u have to wait frame swap before u can get real result :)

inspirit avatar Mar 02 '13 19:03 inspirit

Did you find it like the amount of frames before you see a result is random. I waited 1 frame up to 10 frames and didn't see a result. Do you know if there is any way to check if when drawToBitmapData(_myBitmap) has passed data, then the program continues running?

PeterTucker avatar Mar 04 '13 01:03 PeterTucker