Re: [webvr] [gamepad] Missing VRPose for tracked controllers

2016-05-25 Thread Justin Rogers
Apologies if this comes across twice - the mailing list rejected my first
attempt :-)

Do we need to know if a given Gamepad is orientation only versus
position+orientation? I'm seeing a lot of devices that only know their
orientation and we could detect this by a 0,0,0 position, but having a flag
telling me if position will change could be useful. I just did a quick
review and I didn't see anything that would help me here.

Also, what about devices where the controllers report relative to the HMD
and the HMD is relative to world space? Do we want any new prose on VRPose
that covers these potentially more complicated scenarios?

On Tue, May 24, 2016 at 11:12 AM, Kearwood "Kip" Gilbert <
kgilb...@mozilla.com> wrote:

> Brandon Jones (Google) has made some experimental WebVR Chromium builds
> that include support for the HTC Vive VR motion controls.  We would like to
> propose this as a standard and update to the GamePad API.
>
> Brandon has started a thread on w3.org that gives some background:
>
> https://lists.w3.org/Archives/Public/public-webapps/2016AprJun/0052.html
>
> The WebVR API 1.0 has already extended the GamePad API by adding a
> “displayID” attribute:
>
> https://mozvr.com/webvr-spec/#interface-gamepad
>
> The proposal is to take this further and expose an optional “pose”
> attribute, which would return the same attributes within the VRPose:
>
> https://mozvr.com/webvr-spec/#interface-vrpose
>
> Cheers,
>  - Kearwood “Kip” Gilbert
>Platform Engineer, Mozilla VR Team
>
> On May 24, 2016, at 12:22 AM, Sven Neuhaus  wrote:
>
> Hello Florian,
>
> Thanks for pointing out the WebVR spec draft.
>
> The WebVR draft dated April 1st contains a Gamepad interface expansion
> (§2.11), however it only extends it by a DisplayId.
> It should also add a VRPose for tracked controllers.
>
> I think adding a VRPose could have benefits for non-VR applications as
> well (think about the Nintendo Wii controllers!), however. So my
> suggestion to add it to the Gamepad API still stands.
>
> Regards,
> -Sven Neuhaus
>
> Am 23.05.2016 um 15:52 schrieb Florian Bösch:
>
> The WebVR API models HMD pose and will model the gesture controllers.
> https://mozvr.com/webvr-spec/
>
> On Tue, May 17, 2016 at 9:41 AM, Sven Neuhaus  > wrote:
>
>
>I read the gamepad API description at
>https://developer.mozilla.org/en-US/docs/Web/API/Gamepad
>
>I think the gamepad API should support a VRpose for gamepad controllers
>like the ones included with the HTC Vive and the upcoming Oculus Touch
>controllers.
>
>I suggest that you add a getPose() method that returns a VRPose object
>for controllers that support tracking.
>
>The "orientation" property of the VRPose object could also be useful for
>some gamepads that include IMUs for orientation tracking.
>
>
> ___
> web-vr-discuss mailing list
> web-vr-disc...@mozilla.org
> https://mail.mozilla.org/listinfo/web-vr-discuss
>
>
>
> ___
> web-vr-discuss mailing list
> web-vr-disc...@mozilla.org
> https://mail.mozilla.org/listinfo/web-vr-discuss
>
>


Re: [webvr] [gamepad] Missing VRPose for tracked controllers

2016-05-25 Thread Sven Neuhaus
Am 24.05.16 um 20:50 schrieb Brandon Jones:
> Position/Orientation/Acceleration can always be reported as NULL, so
> that's what I would expect from controllers that don't support a
> particular pose value. That's a bit of a pain to use for feature
> detection purposes, though, so maybe a more explicit caps would be nice?

Yes. A "null" reading could also indicate an intermittent loss of
positional tracking, right?

-Sven




Re: [webvr] [gamepad] Missing VRPose for tracked controllers

2016-05-24 Thread Florian Bösch
On Tue, May 24, 2016 at 8:50 PM, Brandon Jones  wrote:
>
> but Yaw probably just initializes to whatever position the user started
> with.
>
Applications for these kinds of controllers usually have some "reset
forward" thing. Sometimes the settings of the device do (as is the case
with Oculuses HMD), sometimes it's up to programmers of the application to
do it (as was the case with the dk1, dk2). The Razer Hydra had some
calibration utility. I'd expect Sixsense to come with an SDK where users
can configure their space.


Re: [webvr] [gamepad] Missing VRPose for tracked controllers

2016-05-24 Thread Brandon Jones
Position/Orientation/Acceleration can always be reported as NULL, so that's
what I would expect from controllers that don't support a particular pose
value. That's a bit of a pain to use for feature detection purposes,
though, so maybe a more explicit caps would be nice?

As for determining what the controllers are relative to, that's a good
question. We'll have the vrDisplayID for controllers that are associated
with an HMD, which I think implies that they're in the same space as the
HMD. Not sure what makes sense for, say, a Wii controller. Pitch and Roll
are always relative to gravity, but Yaw probably just initializes to
whatever position the user started with.

On Tue, May 24, 2016 at 2:39 PM Justin Rogers  wrote:

> Apologies if this comes across twice - the mailing list rejected my first
> attempt :-)
>
> Do we need to know if a given Gamepad is orientation only versus
> position+orientation? I'm seeing a lot of devices that only know their
> orientation and we could detect this by a 0,0,0 position, but having a flag
> telling me if position will change could be useful. I just did a quick
> review and I didn't see anything that would help me here.
>
> Also, what about devices where the controllers report relative to the HMD
> and the HMD is relative to world space? Do we want any new prose on VRPose
> that covers these potentially more complicated scenarios?
> On Tue, May 24, 2016 at 11:12 AM, Kearwood "Kip" Gilbert <
> kgilb...@mozilla.com> wrote:
>
>> Brandon Jones (Google) has made some experimental WebVR Chromium builds
>> that include support for the HTC Vive VR motion controls.  We would like to
>> propose this as a standard and update to the GamePad API.
>>
>> Brandon has started a thread on w3.org that gives some background:
>>
>> https://lists.w3.org/Archives/Public/public-webapps/2016AprJun/0052.html
>>
>> The WebVR API 1.0 has already extended the GamePad API by adding a
>> “displayID” attribute:
>>
>> https://mozvr.com/webvr-spec/#interface-gamepad
>>
>> The proposal is to take this further and expose an optional “pose”
>> attribute, which would return the same attributes within the VRPose:
>>
>> https://mozvr.com/webvr-spec/#interface-vrpose
>>
>> Cheers,
>>  - Kearwood “Kip” Gilbert
>>Platform Engineer, Mozilla VR Team
>>
>> On May 24, 2016, at 12:22 AM, Sven Neuhaus  wrote:
>>
>> Hello Florian,
>>
>> Thanks for pointing out the WebVR spec draft.
>>
>> The WebVR draft dated April 1st contains a Gamepad interface expansion
>> (§2.11), however it only extends it by a DisplayId.
>> It should also add a VRPose for tracked controllers.
>>
>> I think adding a VRPose could have benefits for non-VR applications as
>> well (think about the Nintendo Wii controllers!), however. So my
>> suggestion to add it to the Gamepad API still stands.
>>
>> Regards,
>> -Sven Neuhaus
>>
>> Am 23.05.2016 um 15:52 schrieb Florian Bösch:
>>
>> The WebVR API models HMD pose and will model the gesture controllers.
>> https://mozvr.com/webvr-spec/
>>
>> On Tue, May 17, 2016 at 9:41 AM, Sven Neuhaus > > wrote:
>>
>>
>>I read the gamepad API description at
>>https://developer.mozilla.org/en-US/docs/Web/API/Gamepad
>>
>>I think the gamepad API should support a VRpose for gamepad controllers
>>like the ones included with the HTC Vive and the upcoming Oculus Touch
>>controllers.
>>
>>I suggest that you add a getPose() method that returns a VRPose object
>>for controllers that support tracking.
>>
>>The "orientation" property of the VRPose object could also be useful
>> for
>>some gamepads that include IMUs for orientation tracking.
>>
>>
>> ___
>> web-vr-discuss mailing list
>> web-vr-disc...@mozilla.org
>> https://mail.mozilla.org/listinfo/web-vr-discuss
>>
>>
>>
>> ___
>> web-vr-discuss mailing list
>> web-vr-disc...@mozilla.org
>> https://mail.mozilla.org/listinfo/web-vr-discuss
>>
>> ___
> web-vr-discuss mailing list
> web-vr-disc...@mozilla.org
> https://mail.mozilla.org/listinfo/web-vr-discuss
>


Re: [webvr] Re: [gamepad] Missing VRPose for tracked controllers

2016-05-24 Thread Kearwood "Kip" Gilbert
Brandon Jones (Google) has made some experimental WebVR Chromium builds that 
include support for the HTC Vive VR motion controls.  We would like to propose 
this as a standard and update to the GamePad API.

Brandon has started a thread on w3.org  that gives some 
background:

https://lists.w3.org/Archives/Public/public-webapps/2016AprJun/0052.html 


The WebVR API 1.0 has already extended the GamePad API by adding a “displayID” 
attribute:

https://mozvr.com/webvr-spec/#interface-gamepad 


The proposal is to take this further and expose an optional “pose” attribute, 
which would return the same attributes within the VRPose:

https://mozvr.com/webvr-spec/#interface-vrpose 


Cheers,
 - Kearwood “Kip” Gilbert
   Platform Engineer, Mozilla VR Team

> On May 24, 2016, at 12:22 AM, Sven Neuhaus  wrote:
> 
> Hello Florian,
> 
> Thanks for pointing out the WebVR spec draft.
> 
> The WebVR draft dated April 1st contains a Gamepad interface expansion
> (§2.11), however it only extends it by a DisplayId.
> It should also add a VRPose for tracked controllers.
> 
> I think adding a VRPose could have benefits for non-VR applications as
> well (think about the Nintendo Wii controllers!), however. So my
> suggestion to add it to the Gamepad API still stands.
> 
> Regards,
> -Sven Neuhaus
> 
> Am 23.05.2016 um 15:52 schrieb Florian Bösch:
>> The WebVR API models HMD pose and will model the gesture controllers.
>> https://mozvr.com/webvr-spec/
>> 
>> On Tue, May 17, 2016 at 9:41 AM, Sven Neuhaus > > wrote:
> 
>>I read the gamepad API description at
>>https://developer.mozilla.org/en-US/docs/Web/API/Gamepad
>> 
>>I think the gamepad API should support a VRpose for gamepad controllers
>>like the ones included with the HTC Vive and the upcoming Oculus Touch
>>controllers.
>> 
>>I suggest that you add a getPose() method that returns a VRPose object
>>for controllers that support tracking.
>> 
>>The "orientation" property of the VRPose object could also be useful for
>>some gamepads that include IMUs for orientation tracking.
> 
> ___
> web-vr-discuss mailing list
> web-vr-disc...@mozilla.org
> https://mail.mozilla.org/listinfo/web-vr-discuss



Re: [gamepad] Missing VRPose for tracked controllers

2016-05-24 Thread Sven Neuhaus
Hello,

Am 24.05.2016 um 09:38 schrieb Florian Bösch:
> You should discuss this on the WebVR ML as well, it's the main
> communication channel for that, and since it has impact on their
> spec it should be coordinated.

I looked at the archive and saw that Brandon Jones already made a good
proposal regarding the missing pose so I think we can end this thread here.

As I said earlier, working with controllers with IMUs makes sense even
without WebVR so I think the Gamepad API is the right place to add it,
not the WebVR API.
I did send an email to the WebVR API list to get their feedback.

-Sven




Re: [webvr] Re: [gamepad] Missing VRPose for tracked controllers

2016-05-24 Thread Florian Bösch
You should discuss this on the WebVR ML as well, it's the main
communication channel for that, and since it has impact on their spec it
should be coordinated.

On Tue, May 24, 2016 at 9:22 AM, Sven Neuhaus  wrote:

> Hello Florian,
>
> Thanks for pointing out the WebVR spec draft.
>
> The WebVR draft dated April 1st contains a Gamepad interface expansion
> (§2.11), however it only extends it by a DisplayId.
> It should also add a VRPose for tracked controllers.
>
> I think adding a VRPose could have benefits for non-VR applications as
> well (think about the Nintendo Wii controllers!), however. So my
> suggestion to add it to the Gamepad API still stands.
>
> Regards,
> -Sven Neuhaus
>
> Am 23.05.2016 um 15:52 schrieb Florian Bösch:
> > The WebVR API models HMD pose and will model the gesture controllers.
> > https://mozvr.com/webvr-spec/
> >
> > On Tue, May 17, 2016 at 9:41 AM, Sven Neuhaus  > > wrote:
>
> > I read the gamepad API description at
> > https://developer.mozilla.org/en-US/docs/Web/API/Gamepad
> >
> > I think the gamepad API should support a VRpose for gamepad
> controllers
> > like the ones included with the HTC Vive and the upcoming Oculus
> Touch
> > controllers.
> >
> > I suggest that you add a getPose() method that returns a VRPose
> object
> > for controllers that support tracking.
> >
> > The "orientation" property of the VRPose object could also be useful
> for
> > some gamepads that include IMUs for orientation tracking.
>
>


[webvr] Re: [gamepad] Missing VRPose for tracked controllers

2016-05-24 Thread Sven Neuhaus
Hello Florian,

Thanks for pointing out the WebVR spec draft.

The WebVR draft dated April 1st contains a Gamepad interface expansion
(§2.11), however it only extends it by a DisplayId.
It should also add a VRPose for tracked controllers.

I think adding a VRPose could have benefits for non-VR applications as
well (think about the Nintendo Wii controllers!), however. So my
suggestion to add it to the Gamepad API still stands.

Regards,
-Sven Neuhaus

Am 23.05.2016 um 15:52 schrieb Florian Bösch:
> The WebVR API models HMD pose and will model the gesture controllers.
> https://mozvr.com/webvr-spec/
> 
> On Tue, May 17, 2016 at 9:41 AM, Sven Neuhaus  > wrote:

> I read the gamepad API description at
> https://developer.mozilla.org/en-US/docs/Web/API/Gamepad
> 
> I think the gamepad API should support a VRpose for gamepad controllers
> like the ones included with the HTC Vive and the upcoming Oculus Touch
> controllers.
> 
> I suggest that you add a getPose() method that returns a VRPose object
> for controllers that support tracking.
> 
> The "orientation" property of the VRPose object could also be useful for
> some gamepads that include IMUs for orientation tracking.




Re: [gamepad] Missing VRPose for tracked controllers

2016-05-23 Thread Florian Bösch
The WebVR API models HMD pose and will model the gesture controllers.
https://mozvr.com/webvr-spec/

On Tue, May 17, 2016 at 9:41 AM, Sven Neuhaus  wrote:

> Hello,
>
> I read the gamepad API description at
> https://developer.mozilla.org/en-US/docs/Web/API/Gamepad
>
> I think the gamepad API should support a VRpose for gamepad controllers
> like the ones included with the HTC Vive and the upcoming Oculus Touch
> controllers.
>
> I suggest that you add a getPose() method that returns a VRPose object
> for controllers that support tracking.
>
> The "orientation" property of the VRPose object could also be useful for
> some gamepads that include IMUs for orientation tracking.
>
> Best regards,
> -Sven Neuhaus
>
>
>


[gamepad] Missing VRPose for tracked controllers

2016-05-23 Thread Sven Neuhaus
Hello,

I read the gamepad API description at
https://developer.mozilla.org/en-US/docs/Web/API/Gamepad

I think the gamepad API should support a VRpose for gamepad controllers
like the ones included with the HTC Vive and the upcoming Oculus Touch
controllers.

I suggest that you add a getPose() method that returns a VRPose object
for controllers that support tracking.

The "orientation" property of the VRPose object could also be useful for
some gamepads that include IMUs for orientation tracking.

Best regards,
-Sven Neuhaus