-
Notifications
You must be signed in to change notification settings - Fork 1.3k
WorldSense (6DOF) Frame of Reference #592
Comments
https://developers.google.com/vr/reference/android/com/google/vr/ndk/base/GvrApi#getCurrentProperties() and https://developers.google.com/vr/reference/android/com/google/vr/ndk/base/Properties.PropertyType#TRACKING_FLOOR_HEIGHT are the matching Java APIs.
|
I guess I didn't scour enough :) Thank you! |
Sorry, trying to use this with Kotlin and struggling a bit with
That seems to prevent rendering with logs like Am I using it wrong? |
I've attached a patch for code that will go into a future version of sdk-hellovr. I've verified that it works on a Mirage Solo. I'm not familiar with Kotlin and it's not a supported language for GVR, but the snippet you provided appears correct. Does the |
Thanks for that. It looks like the code is pretty much the same. My code is never actually getting past the I'll try a few things including moving that code into a Java class |
Finally got a chance to try this again, I found the issue. If you're using Kotlin, you must use the full Java syntax of |
Is this issue specific to the GVR classes? GvrAPI does have some multi-classloader dynamic loading magic under the hood and it may be interfering with Kotlin. While GVR doesn't support other languages, this was the first issue of this type that we've heard of. |
That makes sense. This is the first time I've seen that happen, but from my end I'm all good |
Hi there,
I'm developing on the Java SDK for World Sense on the Lenovo device. The frame of reference for the head position is centered at Y=0.
On other 6DOF systems, and even on the same device in WebXR, the frame of reference puts Y=0 at floor level. I scoured through both the SDK and NDK and couldn't find anything about how to use the "room" frame of reference.
Seeing as how WebXR in Chrome uses the GVR SDK, it must be possible. Can someone point me in the right direction?
The text was updated successfully, but these errors were encountered: