Giter Site home page Giter Site logo

Comments (8)

sicsix avatar sicsix commented on May 13, 2024

From what I've been able to figure out, but I could be mistaken, it seems like the Oculus XR runtime itself is sending XR_SESSION_STATE_STOPPING and XR_SESSION_STATE_IDLE when it no longer detects it's being worn, but VDXR sends nothing.

from uevr.

mbucchia avatar mbucchia commented on May 13, 2024

There is no proper support for "user presence" sensing in OpenXR 1.0. What the Oculus OpenXR runtime does has been a source of debate for a while, and the behavior they implement is not in the OpenXR spec and not guaranteed across all OpenXR implementations. This behavior implemented by Oculus is also a major source of headaches for users (go ask DCS users and how they all have taped their sensor on the headset to go around game/runtime bugs due to it).

VDXR/PimaxXR do not implement this non-standard behavior.

from uevr.

praydog avatar praydog commented on May 13, 2024

Would a keybind to switch back to desktop mode for these other runtimes be an acceptable workaround?

from uevr.

sicsix avatar sicsix commented on May 13, 2024

Understandable, although it is a useful feature in this particular use case.

Is it possible to detect the HMD worn state through the other runtimes through polling? If so maybe a toggle-able option to switch automatically would be a better UX. Although I'm guessing since user presence sensing is non-standard that's likely a no. So a keybind is likely the only option if that's the case.

from uevr.

mbucchia avatar mbucchia commented on May 13, 2024

Is it possible to detect the HMD worn state through the other runtimes through polling

It isn't in OpenXR 1.0. There is an extension in the works for this. Right now the session state events are not implemented the same way across vendors, so you can't make assumption on them.

from uevr.

sicsix avatar sicsix commented on May 13, 2024

In that case a keybind would great for now, will make it playable for all runtimes.

from uevr.

praydog avatar praydog commented on May 13, 2024

Added in 4f9f362

from uevr.

sicsix avatar sicsix commented on May 13, 2024

Just tested it and works perfectly, thanks for the fix.

from uevr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.