inspirit / GPUImage

AS3 framework for GPU-based image processing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

_gpuImg.renderToBitmapData & IOS

PeterTucker opened this issue · 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.

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

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

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

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?