W3C

– DRAFT –
Immersive Web Working Group bi-weekly meeting

09 March 2021

Attendees

Present
ada, alexturn, bajones, cabanier, cwilso, jgilbert, LachlanFord, leonard, Manishearth, MichaelBlix, RafaelCintron
Regrets
-
Chair
ada
Scribe
jgilbert

Meeting minutes

administrivia#153 Move Depth Sensing to WG

bialpio: Since we're far along in shipping depth sensing, so we should move it to CG. DS exposes the depth sensing info from camera, either via cpu data or within a gpu API. This would avoid having giving the data in a format that the app needs to move things around too much. API shape supports preference choosing, and the API can say "can't do that", but the app would then ask for something else

bialpio: Feedback: No preference for changing the API, though some users said it was hard to use. (some said easy to use though)

cabanier: What about permissions. Is there a popup?

bialpio: Nothing spec mandated, no enforcement, but spec says "make sure the user is informed". If depth data may be too detailed for the level of permissions that the UA has from the user, it can refuse, or just truncate precision. If the precision would approach e.g. raw camera access, UA might refuse, or offer a prompt to the user

RafaelCintron: Has the current API been implemented on devices that only support cpu or gpu?

bialpio: Haven't seen any devices this way, but it should be possible to handle

RafaelCintron: This topic, just should we move to WG?

ada: Probably CG, since we avoid bigger sweeping changes in the WG, but we can do either

RafaelCintron: My concern is we don't have implementations where our API is gpu-only, so that's a design risk if that is hard to handle with this current API

ada: If problematic, hopefully not too big of changes needed

layers #252 Asynchronously allocate WebXR Layers' GPU-side resources https://github.com/immersive-web/layers/issues/252

cabanier: (presents details from the issue)

cabanier: If the behind-the-scenes asynchronicity causes stalls, what do we do?

bajones: If we have allocations that take longer than a frame, we probably want to wait for the resources to be available before continuing. Common pattern in webgl/webgpu, where you ask for a resource and we give you a handle, but might not actually allocate yet on the UA backend. There are only a couple API calls that require sync results (readPixels)

bajones: We can probably also defer the allocation? You might get a Frame, do rendering commands, and then the UA isn't ready with the new backbuffer. However, that just means it might take longer to flush out the commands. Probably not a real/common problem? Maybe you don't have the right formats, but we know that very early. But maybe you did run out of memory, but what can we do there? Not much, try again? Maybe it doesn't matter so[CUT]
… I think we should support checking the framebuffer status if apps really want to, but we probably don't need a lot more

cabanier: if we remove the "allocate now", we'll probably be ok?

bajones: Yeah, probably don't need that, but not sure on verbiage. "Do the commands to allocate as if done in webgl"? Don't have to suggest that allocation is immediate

jgilbert: I think as-if-sync works well yeah, and let people ask early if wanted

cabanier: Can we check early for layers?

bajones: Best way to do it is do one of the must-sync calls, like readPixels. But probably apps don't need to check usually, just assume it works. We'd know very early for the "it will never work" like unsupported format

webxr #619 Add Linear/Angular Acceleration/Velocity for XRInputSource|

ada: Next issue: https://github.com/immersive-web/webxr/issues/619

cabanier: Issue from a couple years ago. OpenXR has acceleration and velocity, probably better data than trying to infer it yourself from position data

cabanier: Alex had a concern that acceleration isn't the same across devices, but velocity should be consistant for us

alexturn: Velocity is useful where position data just isn't good enough. Like throwing a ball, you want the velocity when the ball is released, and being off by even half a frame is really bad. Apps tend to use fudge-factors without real velocities. Best to just use velocity, especially for throwing in particular. We originally had acceleration, but people didn't get as much value, and our data just isn't as good. Consensus in xr wg wa[CUT]
… implementations and also it wasn't as useful, so didn't work more on that

<Zakim> ada, you wanted to ask about platforms which do not support it

laford: A lot of velocity info is only known by the system, so we have a lot of extra better data to expose there, better than what apps can do based on position alone

ada: What about transient input sources, like swiping? What if not provided by the platform?

alexturn: Platforms have better info for 6dof tracking, and in practice platforms do have this info, don't have a good answer if there were a platform without it

alexturn: If app has a fudge-factor that worked better for its usecase, it's better for the app to choose than for implementations to guess/estimate

alexturn: We can probably say "SHOULD use platform API to get this data", but UA can polyfill if it thinks it can do good enough anyway

ada: Ok so maybe we sometimes the API says "null: can't do that"?

alexturn: It matters less what the spec says here since apps often aren't defensively coded about this, likely can't even test/don't have the device to test on

ada: Better to guarantee it? Do our best?

alexturn: Yeah, might be best to spec it to always give values, and maybe a bool for "is this a good/precise/better than position-based inference"

cabanier: We don't have velocity in our shipping spec today, so how do we add it? Feature-testable?

ada: Yes this would be a breaking change, v2 the API? Or feature-detectable?

cabanier: Probably should be optional for now, feature-detectable

alexturn: Two types of optional: Platform support vs UA support. Sort of different. Even if UAs are all shipping this new thing soon, there's still a question about do we guarantee velocity in our API

alexturn: so we're fine for this intemediate period where apps are feature-detecting UA support, but once UA support is universal, they will stop detecting for platform support

bialpio: how should we do feature-detection? Usually FD is prototype-based, don't even need an instance of the api

bialpio: But also, is this really breaking change? Since old apps continue to not support the new stuff and it still works

ada: Yeah it's a matter of perspective of audience, app/ua users vs app devs

bajones: We have a mechanism for FD via feature strings, so we can choose to gate velocity data on requesting the required-feature string for device creation

bajones: This feels heavy-handed, and I think a nullable would be fine and people would check it. Yes possibility of breaking, but very slim, and I'd be comfortable with that

bajones: If people aren't, then would recommend a feature descriptor for this, though it feels like overkill for me

alexturn: +1 Devs need to handle it anyway, making choices based on *some* signal, but it's likely buggy/broken if you didn't test it

alexturn: Nullable is probably fine, and even if nullable, UAs will center on always providing a value anyway, just for compat reasons

alexturn: Technically content could handle this perfectly, but it practice there's enough content we care about compat for that we are forced into polyfilling anyway

ada: Seems like consensus to add this? Where would this go?

ada: If this is going to be for any pose, this probably has to be in webxr, not just in xr-input

bajones: As long as input isn't a special carve-out, we probably have to handle this more generally

cabanier: So more than just for input devices?

<Zakim> ada, you wanted to ask about angular velocity

bajones: If you want to know how fast moving between user and floor, sure. Most useful for data from controllers, but for other things, why not

ada: What about angular velocity? Do people want it? Spinning a ball, or maybe head motion?

laford: Yes, probably should be extended beyond just inputs

bajones: Space velocity is done a little different, sort of like an extension of the location of the space

bajones: Maybe because if you don't want to velocity, the platform can leave it out if not requested

bajones: Is it a burden to ask for velocity all the time, or is that extra overhead if we don't end up using it

alexturn: Probably an over-optimization, maybe for reuse all in the same space

alexturn: So originally, why pay the cost if we didn't need it, but it didn't end up saving a lot, don't know as we'd choose to do that that way again

bajones: About calculation or struct filling?

alexturn: Extra calculation, like for position offets. Probably not worth optimizing for for webxr

bialpio: Note: In most implementations, we'll probably need to query the velocity from the system unconditionally, and we have to package it up for moving between the processes eagerly anyway, so probably not much opportunity for us to do optimizations here

ada: So should we support angular velocity?

alexturn: Openxr has it, but it's less useful (positional) velocity, but we have it

bajones: Useful for VR bowling!

alexturn: Probably useful but just less useful

<bajones> +1 to that.

<alexturn> +1

jgilbert: If adding positional velocity, probably just add angular too, for the same reasons, even if less important, unless there's other caveats for platform support there

cabanier: Should I draft this? (yes)

alexturn: What does this mean procedurally? Can we tweak things like this, or do we need a new major version?

bajones: We haven't hit CR yet, so this might squeak in under the deadline, but this is probably doable

bajones: Maybe we should talk about what would constitute a need for a full level-2, but not needed here I think

ada: Yeah it would be good to get this in

<atsushi> i/poitr: Since we're far along in shipping depth sensing, so we should/topic: administrivia#153 Move Depth Sensing to WG/

Minutes manually created (not a transcript), formatted by scribe.perl version 127 (Wed Dec 30 17:39:58 2020 UTC).

Diagnostics

Succeeded: s/poitr/bialpio/

Succeeded: s/check/check early/

Succeeded: s/than/

Succeeded: s/than//

Succeeded: s/!q//

Succeeded: s|ada: Next topic: https://github.com/immersive-web/layers/issues/252|topic: layers #252 Asynchronously allocate WebXR Layers' GPU-side resources https://github.com/immersive-web/layers/issues/252

Succeeded: i|ada: Next issue: https://github.com/immersive-web/webxr/issues/619|webxr #619 Add Linear/Angular Acceleration/Velocity for XRInputSource|

Succeeded: s|webxr #619 Add Linear/Angular Acceleration/Velocity for XRInputSource|topic: webxr #619 Add Linear/Angular Acceleration/Velocity for XRInputSource||

Failed: i/poitr: Since we're far along in shipping depth sensing, so we should/topic: administrivia#153 Move Depth Sensing to WG/

Succeeded: i/bialpio: Since we're far along in shipping depth sensing, so we should/topic: administrivia#153 Move Depth Sensing to WG/

Maybe present: bialpio, laford