GodotVR / godot_openxr

(Maintenance mode) OpenXR drivers for the Godot Game Engine v3.x
MIT License
279 stars 43 forks source link

Demo not working in Oculust Quest 2 #75

Open jacrdeveloper opened 3 years ago

jacrdeveloper commented 3 years ago

Hi,

I'm trying run demo's android-dev branch in Occulust Quest 2. Export apk OK and Install OK, but demo not working.

What steps do you have to follow to use the plugin and demo for Occulust Quest 2 in Godot?

Thanks.

BastiaanOlij commented 3 years ago

I only have a Quest 1 myself and it works fine on that. @m4gr3d tested it on his Quest 2 and I think it worked for him.

Does it not start at all on your Quest? Is there anything in the logs that could give us a clue to what is going on?

guysoft commented 3 years ago

Does not work for me on Original Vive on Linux. I get this error: Screenshot_20210821_145747 Commenting out that function fixes it, but I can't press anything

isosphere commented 2 years ago

Perhaps my issue is the same, so I'll add it here.

I have created a minimal project:

image

OpenXR plugin 1.1.0, enabled in project settings. Android export, Xr Mode set to Oculus Mobile VR.

In my Spatial script, I have:

func _ready():
    var FPSController: ARVROrigin = get_node("FPSController");
    FPSController.initialize();

Upon deployment to my Oculus Quest 2 via the Android button, I get a black screen with loading dots and nothing further.

If I instead use the godot_ovrmobile plugin, I have no such issue.

isosphere commented 2 years ago

Ah. This was a typo on my end as you can see above: I called "initialize()" instead of "initialise()". 🙄

Caught it by connecting with the Oculus Developer Hub with the log viewer open, filtering on "godot".

Sorry for the noise, but maybe this will help someone else. Clearly my issue is unrelated to the OP's, as this typo wouldn't be in the demo application.

BastiaanOlij commented 2 years ago

Ah. This was a typo on my end as you can see above: I called "initialize()" instead of "initialise()"

This always trips me up, English vs US spelling and I'm not always consistent here. In 1.1.1 initialise is called automatically unless you turn it off.

m4gr3d commented 2 years ago

@jacrdeveloper Are you still encountering this issue with the latest version of the plugin?

milanbt commented 2 years ago

I'm having the same error as @guysoft using an HTC Vive on Godot 3.4.1 on Windows 11. Commenting out the the body of _update_motion_range or the calls to it in the same file cause it to run in the window and instantly close.

milanbt commented 2 years ago

After reinstalling the OpenXR and XR Tools via the AssetLib tab and turning on SteamVR, I get this error: Screenshot 2021-12-21 150837