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

Device Orientation Camera (mobile target) #136

Open
tranlong021988 opened this issue Dec 1, 2016 · 4 comments
Open

Device Orientation Camera (mobile target) #136

tranlong021988 opened this issue Dec 1, 2016 · 4 comments

Comments

@tranlong021988
Copy link

Hi. I'm planning to do an experience test with Babylonhx, I realize that there are no device orientation event implement from javascript to haxe (alpha beta gamma output), not sure if there are any solution for this case. I'm planning to do a trick, using webview to output device orientation with values to openfl, but current webview extension not support rendering webview at background layer. So do you have another trick ?
Sorry for my poor English.

@vujadin
Copy link
Owner

vujadin commented Dec 1, 2016 via email

@tranlong021988
Copy link
Author

hi, AccelerometerEvent has acceleration (X,Y,Z) only, not device rotation. I want to get 3d angles number (alpha, beta, gamma) to input to Camera, which is available in Babylon DeviceOrientationCamera (JS version). For native mobile target, it seem not worked .
Since native mobile performance is the best, if we can find out solution for this then this is an amazing way to build mobile VR application/game.

@vujadin
Copy link
Owner

vujadin commented Dec 2, 2016

I guess you could write openfl/lime extension for android and ios to get what you need. You should talk about that with openfl authors, maybe ask about this on openfl forum

@tranlong021988
Copy link
Author

well, it's seem to be the best option for now without switching to JS solution. Thank you.

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