-
Notifications
You must be signed in to change notification settings - Fork 43
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
Comments
I'm not sure if you're talking about device orientation or accelerometer.
Do you need this maybe
http://docs.openfl.org/openfl/sensors/Accelerometer.html
http://docs.openfl.org/openfl/events/AccelerometerEvent.html?
…On Thu, Dec 1, 2016 at 4:04 PM, tranlong021988 ***@***.***> wrote:
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.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#136>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEbKmXn-ig4CCKIyxQOkrnItd0mjDJvSks5rDuIRgaJpZM4LBfvX>
.
|
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 . |
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 |
well, it's seem to be the best option for now without switching to JS solution. Thank you. |
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.
The text was updated successfully, but these errors were encountered: