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

HMD mode fails for Meta Quest 3 with custom builds #97907

Closed
fire opened this issue Oct 7, 2024 · 18 comments
Closed

HMD mode fails for Meta Quest 3 with custom builds #97907

fire opened this issue Oct 7, 2024 · 18 comments

Comments

@fire
Copy link
Member

fire commented Oct 7, 2024

Tested versions

  • Reproducible db66bd3
  • Not reproducible in Meta Store Godot Engine (4.4?)

System information

Meta Quest 3

Issue description

Error: OpenXR was requested but failed to start. Please Check if your hmd is connected. Godot will start in normal mode.

com oculus metacam-20241006-165641

Steps to reproduce

  1. Download the android-editor from the github actions on db66bd3
  2. Use the horizon os apk.
    image
  3. Use sidequest to load apk onto the Quest 3 (assumed partnership agreement with Meta)
  4. Launch project from downloaded folder
  • To launch on the left side of the app browser select "other" applications to find non appstore apps.
  1. Click play.

Minimal reproduction project (MRP)

demo-bug.zip

@m4gr3d
Copy link
Contributor

m4gr3d commented Oct 7, 2024

@fire does the project you are running works with the store version of the editor (version 4.4-dev3)?

@fire
Copy link
Member Author

fire commented Oct 7, 2024

As far as I know it should play in the xr with the store version. The result is that the HMD is placed into the scene with the physical sky with no controllers.

Not reproducible in Meta Store Godot Engine (4.4?)

@fire
Copy link
Member Author

fire commented Oct 7, 2024

Here's a video with the store version of the editor.

22bd1797c7554f3389e59efcf00d9046.mp4

@dsnopek
Copy link
Contributor

dsnopek commented Oct 8, 2024

Unfortunately, I'm not able to reproduce this.

I tried both the artifacts from GitHub actions on PR #97820 (which is where db66bd3 is from) and building latest master locally (currently 842f982), and both were able to correctly run a simple immersive project.

I'm not sure what could be different between your setup and mine?

@fire
Copy link
Member Author

fire commented Oct 8, 2024

Are you clicking play in the editor?

@dsnopek
Copy link
Contributor

dsnopek commented Oct 8, 2024

Yes. My understanding is that was what you are doing too?

@fire
Copy link
Member Author

fire commented Oct 8, 2024

How are you loading the apk? Maybe sidequest tinkers with the upload.

@dsnopek
Copy link
Contributor

dsnopek commented Oct 8, 2024

How are you loading the apk? Maybe sidequest tinkers with the upload.

Just adb install android_editor-horizonos-debug.apk in a terminal

@fire
Copy link
Member Author

fire commented Oct 8, 2024

I'll try that.

@fire
Copy link
Member Author

fire commented Oct 8, 2024

Using a custom build also works now for me on the Meta Quest 3.

I suspect that the Godot Engine is loaded as a 2d app and when the custom editor build works it reuses the manifests from the Meta App store app but that makes no sense.

To test this theory I used the htc xr elite which has no store app and the same message of Openxr failed to start in XR mode.

@fire
Copy link
Member Author

fire commented Oct 8, 2024

I suspect that I may have accidently installed android_editor-android-debug.apk because android_editor-horizonos-debug.apk seems to work.

Everything seems to work. Not sure how to make this better.

@dsnopek
Copy link
Contributor

dsnopek commented Oct 8, 2024

To test this theory I used the htc xr elite which has no store app and the same message of Openxr failed to start in XR mode.

Using it with the HTC headset will also have issues because it has the wrong OpenXR loader.

@BastiaanOlij
Copy link
Contributor

To test this theory I used the htc xr elite which has no store app and the same message of Openxr failed to start in XR mode.

Using it with the HTC headset will also have issues because it has the wrong OpenXR loader.

Also HTC requires different manifest entries, though from all the headset HTC is the least difficult as all features are purely to steer the store entry and have no impact on whether an app runs or not. There is one HTC specific manifest entry required to tell the OS that it is a VR app or it will run it as a normal Android app.

@fire
Copy link
Member Author

fire commented Oct 9, 2024

Do you know what the exact definition of that HTC specific manifest to enable VR app.

@fire
Copy link
Member Author

fire commented Oct 13, 2024

I'll close soon as I was able to test the feature and it works.

The HTC specific manifest entry is a different issue / feature request.

@m4gr3d
Copy link
Contributor

m4gr3d commented Oct 14, 2024

@fire were you able to test that the issue is resolved on the Quest 3?
For HTC devices, we should create a separate issue and close this one.

@fire
Copy link
Member Author

fire commented Oct 14, 2024

it is resolved

@sopdevv
Copy link

sopdevv commented Nov 14, 2024

my quest 2 does the same, how did you fix it ??

I want to run the game normally without any computers, like a simple game, how ?

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

No branches or pull requests

6 participants