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

XROrigin3D World Scale Issues #101241

Open
michaelharmonart opened this issue Jan 7, 2025 · 1 comment
Open

XROrigin3D World Scale Issues #101241

michaelharmonart opened this issue Jan 7, 2025 · 1 comment

Comments

@michaelharmonart
Copy link

Tested versions

Godot v4.4.dev7, Godot 4.3 Stable

System information

Godot v4.4.dev7 - Manjaro Linux #1 SMP PREEMPT_DYNAMIC Thu, 02 Jan 2025 10:28:29 +0000 on Wayland - X11 display driver, Multi-window, 1 monitor - OpenGL 3 (Compatibility) - NVIDIA GeForce RTX 3060 (nvidia; 565.77) - AMD Ryzen 9 9900X 12-Core Processor (24 threads)

Issue description

I've been doing XR development of an interactive map with a Quest 3

Unfortunately I can't just directly scale the XROrigin3D node to fit the size of the world as nothing seems to be rendered properly if I do that, so I use the "World Scale" option. This is somehow reset each time I re-open the editor despite having saved the scene with a modified scale.

But then the OpenXRCompositionLayer nodes are also broken when a non 1 scale is set for the "World Scale"

Ideally I would just be able to use my own code to adjust the XROrigin3D node position and scale to create my own movement logic as you change scale and explore the map. This is currently not possible, and I assume it is a bug since all rendering and controller positioning should be relative to the XROrigin3D in every aspect.

Steps to reproduce

Create a scene with a non-one world scale or scale for the XXOrigin3D

With non-one scale on the origin node stereoscopic rendering is completely broken.
With non-one scale on the "world scale" property the XRCompositionLayer nodes are broken (incorrect placement)

Minimal reproduction project (MRP)

xr-origin-scaling.zip
I have had to remove the xrvendor plugin and the hand models and textures from the XrTools for this to fit. But it is a very simple setup. Simply mess with the XrOrigin3D node world scale property and actual scale and you will see the issues I'm referring to

@michaelharmonart
Copy link
Author

@BastiaanOlij I believe you might have an idea how this is setup and how I might work around it in the meantime?

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

No branches or pull requests

1 participant