Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_gpuImg.renderToBitmapData & IOS #5

Open
PeterTucker opened this issue Mar 1, 2013 · 4 comments
Open

_gpuImg.renderToBitmapData & IOS #5

PeterTucker opened this issue Mar 1, 2013 · 4 comments

Comments

@PeterTucker
Copy link

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.

@inspirit
Copy link
Owner

inspirit commented Mar 2, 2013

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

@PeterTucker
Copy link
Author

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

@inspirit
Copy link
Owner

inspirit commented Mar 2, 2013

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

@PeterTucker
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants