Godot Version
4.2.2
Question
I am trying to make open xr work. I have my meta quest 2 connected to my windows 10 laptop using Virtual Desktop. I followed the setting_up_xr tutorial. This is my scene tree:
Node3D
- MeshInstance3D
- OmniLight3D
- XROrigin
- XRControllerRight
- MeshInstance3D
- XRControllerLeft
- MeshInstance3Dnd
- XRCamera
- XRControllerRight
And a script from the tutorial in the Node3D
When I start the scene i get this i the Debugger:
E 0:00:05:0550 _display_error_with_code: SceneShaderGLES3: Vertex shader compilation failed:
ERROR: 0:27: ‘num_views’ : syntax error syntax error
<C++ Source> drivers/gles3/shader_gles3.cpp:252 @ _display_error_with_code()
E 0:00:05:0550 _compile_specialization: Method/function failed.
<C++ Source> drivers/gles3/shader_gles3.cpp:346 @ _compile_specialization()
and open xr outputs this:
OpenXR: Requested OpenGL version does not meet the minimum version this runtime supports.
- desired_version 3.3.0
- minApiVersionSupported 4.3.0
- maxApiVersionSupported 4.6.0
OpenXR: Trying to initialize with OpenGL anyway…
and than a 300 line script starting like this:
1: #version 330
2: #define USE_GLES_OVER_GL
3: #define DISABLE_LIGHTMAP
4: #define DISABLE_LIGHT_DIRECTIONAL
5: #define DISABLE_LIGHT_OMNI
6: #define DISABLE_LIGHT_SPOT
7: #define DISABLE_FOG
8: #define USE_MULTIVIEW
this script is outputed over and over again up to this
[output overflow, print less text!]
In my VR headset i can see steam VR loading the game but than everything is just black, the same happends in the debug window. The game does not crash and the controllers and the vr headset position is updated correctly.
My Laptop has 8GB RAM, an intel core i7-6500U cpu and intel HD Graphics 520.
edit: I could’nt get it to work. I just use the remote debug