Comments (8)
cc @brianchirls
from webxr.
For regular inputs the easiest way to tell if a controller is squeeze capable is a generic entry in the input profiles but if the profile array is empty then it's not possible.
I think the issue is that rendering and behaviour descriptions are joined from the profiles array.
from webxr.
Perhaps the correct approach would be an empty none.glb
in the webxr input profiles repo for the controller.
Or perhaps defining a some new generics which don't get rendered at all but still contain the information about the buttons exposed through gamepad but with empty nodes in the actual model.
Something like 'generic-****-invisible'
from webxr.
/tpac anyway lets chat about this at TPAC
from webxr.
I think none.glb
is a good way of going about it
from webxr.
Yeah, I am also beginning to feel the same, we should probably document how non-renderable stuff should be handled even if it doesn't involve an actual spec change, just some extra generic input profiles.
from webxr.
Given that the input profiles serve two parallel purposes (input visualization and capability detection) I'd also advocate for not omitting an input profile string unless the implementation legitimately has no idea what kind of input it's dealing with. In the case of something like hands, it's still important to communicate things like if squeeze is supported, so an accurate input profile list should still be returned.
Providing an empty glTF for rendering is a good way to "trick" implementations into doing the right thing, but that only works if all instances of that particular input profile across all platforms shouldn't be visualized. It's easy to imagine that one platform would expect generic-hand
to render a skinned hand because they have no passthrough, while another would have an OS-level hole punching visualization of the user's actual hands, and applications would want to handle both as elegantly as possible. That argues for Ada's suggested *-invisible
profiles as a specialization of an otherwise visible input. I'd probably expect something like ['generic-hand-invisible', 'generic-hand']
to be the returned array.
Also worth nothing that the "invisible" hand model still might need a full skeleton so that anyone downloading the asset and blindly skinning it doesn't start failing in unexpected ways.
from webxr.
TPAC result: There should be some sort of enum to say that rendering is handled elsewhere.
But could still do the input profile as invisible or empty.
from webxr.
Related Issues (20)
- Is SLAM supported? HOT 1
- Gamepads in inline mode HOT 17
- Discussion topic, Untracked stereoscopic inline sessions HOT 4
- Webxr fails to start on android 14 HOT 5
- requiredFeatures: camera-access on hololens2 HOT 2
- Bottom palette in color selection not very useful
- Does Linux support WebXR API? HOT 1
- Immersive AR does not work on the Samsung browser. HOT 1
- is webxr supported with iOS devices browser? HOT 1
- Detecting if an `XRInputSource` is an auxiliary or a primary input source HOT 50
- Indicate "preferred" immersive mode HOT 8
- How to create WebXR app for IOS using unity or any other software? HOT 1
- Add Scene Description API for automation and a11y HOT 1
- Backgrounded Tabs and WebXR HOT 3
- Give developers control over "overlay" browser HOT 10
- Feature for the UA to handle viewing the system inputs during a session
- Republish as CRS - 2024/03
- Use of FrozenArray<>s in dictionaries is unnecessary and bad HOT 7
- Need FOV angles for interop between WebXR and OpenVR HOT 1
- Are FFR (Fixed Foveation Rendering) and MultView extensions incompatible?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webxr.