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

Send VisionOS Digital Crown information to ALVR Server #124

Open
marcgeeklaberge opened this issue Sep 14, 2024 · 0 comments
Open

Send VisionOS Digital Crown information to ALVR Server #124

marcgeeklaberge opened this issue Sep 14, 2024 · 0 comments

Comments

@marcgeeklaberge
Copy link

Hi y'all, we are looking into a way get digital crown values from vision pro and then send it back to server and VRChat.

We've noticed that it was possible to get digital crown values from views like this:


ImmersiveSpace(id: "MetalClient") {
   MyView()
            .onImmersionChange { _, newImmersion in
                guard let amount = newImmersion.amount else {
                    return
                }
                print(amount: "\(amount)");
            }
   }
.immersionStyle(selection: $clientImmersionStyle, in: .progressive)


but onImmersionChange is not available to use with


ImmersiveSpace(id: "MetalClient") {
            CompositorLayer(configuration: ContentStageConfiguration()) { layerRenderer in
                let system = MetalClientSystem(layerRenderer)
                system.startRenderLoop()
            }
            // .howToGetImmersionChangeValue?
        }
        .immersionStyle(selection: $clientImmersionStyle, in: .progressive)

Once this problem solved or alternative, how can we send back a value to the server?
Note that in case the vision pro crown value is not accessible no matter what, we are thinking of alternative like getting values from gestures or from the apple watch crown and then communicate it back to the server.

Thank you 🙏

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