Cursor component: fixes for WebXR mode#5528
Cursor component: fixes for WebXR mode#5528JL-Vidinoti wants to merge 5 commits intoaframevr:masterfrom
Conversation
|
While I'm not entirely sure about the history of the As for the event listeners, the change looks good, but |
|
I am doing some tests with the Vision Pro. The If we use a camera rig like below, it is necessary to add the I see your point with the |
I see, I still think this is something that the Put differently, there is no meaningful reason to use a different entity than the rig. And since A-Frame knows the reference space and the relevant transform of the reference space (parent transform of the active camera), there's no reason to require the user to specify/configure it manually.
Updating the PR would be nice, it makes sense to have |
|
I updated the handling of the WebXR event listeners such that they are correctly registered/unregistered. |
|
Thanks for the patience. I had to reload the context in my head. We introduced in #5065 to handle generic input events that come from an input we can't track like in the case of taps on the screen while in immersive mode on mobile or gaze in the vision Pro. Origin of those events is I agree, we should calculate the correct coordinates internally and not put the burden on the dev. Is there any quick modification we can do to this PR? Goal is to ship 1.7.0 next week. Would be awesome to include this. Thanks again |
It should just be a matter of converting the WebXR pose from the reference space into world space. Basically just applying the worldMatrix of the parent of the (active) camera. |
|
@JL-Vidinoti @mrxz Any of you wanna take this PR and make it calculate the pose in world space vs having the user to configure manually? Thanks |
|
Unfortunately, I don't have the resources to do it in the short term. |
|
Closing this in favor of #5606 Thanks everybody |
Description:
This PR fixes a couple of small issues when using the
cursorcomponent withrayOrigin: xrselect.Changes proposed:
cursorcomponent is attached to an entity other thana-scene, an error occurs.cursorattribute is removed.