-
Notifications
You must be signed in to change notification settings - Fork 28
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
Add feature detection for hit test capability #68
Comments
I think extending the feature descriptor is the right approach. This will need to happen for other features being discusses (geospatial alignment, real-world geometry, camera access, image tracking, etc). For any of these, they could be provided in required or optional features, and have the same behavior as the current features. The |
I really like this idea, especially sine we already know that there will be more features that will need it. @klausw - what do you think about this in context of DOM overlay? |
I'm in favor of a supportedFeatures exposed list. For DOM Overlay, the current draft spec exposes a DOMOverlayType in its state field which distinguishes "screen" vs "floating", so I'd likely be keeping the state field even if supportedFeatures were added. |
We should consider if we want "supportedFeatures" to be a truthy set; a feature wouldn't be there if it isn't supported, and "domOverlay" could be have a value of DOMOverlayType if it's there. |
Given that we will add a feature descriptor and that the hit test request will reject if the feature isn't available in the case of an optional feature, would it make sense to close this? If |
Sounds good to me. In addition, this is also how |
Should this be closed? |
Closing, we can discuss ways to expose the information about supported optional features in the main repo (see the mention above). |
The spec draft does not provide any way to check for hit test support on an XR session.
One possible solution is to extend the definition of feature descriptor from the main spec to allow the apps to request a session that supports hit test. Additionally, we should probably extend
XRSession
as follows:The
hitTestState
will benull
if the session does not support hit test API or if it was not requested & is therefore unavailable.In addition, we could specify that
immersive-ar
sessions must support hit test API so the request forimmersive-ar
session would always implicitly contain a hit test feature descriptor.immersive-vr
sessions could still optionally support it (see #42).The text was updated successfully, but these errors were encountered: