arassec
September 15, 2024, 3:06pm
1
Godot Version
4.3
Question
Hi everyone,
i am currently playing around with Godot’s VR capabilities. I noticed that UI elements i added with a Viewport2Din3D are flickering and anti aliasing doesn’t seem to work.
I hoped the new OpenXRCompositionLayer could help, but i can’t find any documentation on how to use it.
Could anyone point me in the right direction, please?
Thanks!
mux213
September 18, 2024, 11:30pm
2
There are a few things you can look at for information.
There is a demo project here: godot-demo-projects/xr/openxr_composition_layers at master · godotengine/godot-demo-projects · GitHub
There is documentation here: OpenXR composition layers — Godot Engine (stable) documentation in English
I plan to do a video on this at some point in the near future.
arassec
September 20, 2024, 8:33am
3
Hi,
thanks for pointing me to the documentation. I can’t believe i missed it.
Now i tried to change my UI from “Viewport2Din3D” to “SubViewport with OpenXRCompositionLayer”. The UI is now only shown in the editor:
but not in the Headset (Pico 4) anymore.
The demo project works fine. My scene is inherited from the XR-Tools staging scene. Might that be a problem?!?
The Viewport and CompositionLayer configuration is based on the documentation and similar to the demo project’s configuration.
Any help would be greatly appreciated!
arassec
September 21, 2024, 7:29am
4
OK, i tested some further and am now pretty sure, that there is a bug / problem with the XR-Tools Staging base scenes and the OpenXRCompositionLayers.
This has nothing to do with viewport anti aliasing any more, so just for reference if anyone stumbles upon this thread: OpenXRCompositionLayer not working with staging · Issue #680 · GodotVR/godot-xr-tools · GitHub
system
Closed
November 28, 2024, 7:32pm
5
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.