aframevr / aframe

:a: Web framework for building virtual reality experiences.
https://aframe.io/
MIT License
16.56k stars 3.93k forks source link

Hololens2 click events don't work with A-Frame version 1.3.0 #5117

Open minkil opened 1 year ago

minkil commented 1 year ago

I'm using Hololens2 and the click events work with a-frame version 1.0.4 in ar-mode but it doesn't work with the lastet version. Below URL is using the version 1.0.4 and it works fine with Hololens.

dmarcos commented 1 year ago

That's weird. I don't have access to a Hololens. Wonder if the browser has not kept up with latest WebXR spec

minkil commented 1 year ago

It seems like the examples that are shown in aframe website also have problems clicking objects in ar-mode with hololens2.

I tried both of the examples below with hololens2 and in ar-mode, they only work for like 2 seconds and stop working.

https://aframe.io/examples/showcase/responsiveui/ https://aframe.io/examples/showcase/handtracking/

dmarcos commented 1 year ago

I need help investigating and creating a PR for this. I don't have access to a hololens 2

sorskoot commented 1 year ago

I just tested these on my HoloLens on Edge (106.0.1370.47). All examples work without any issues.

dmarcos commented 1 year ago

Thanks! I'll keep it open for a bit in case reporter has more info

minkil commented 1 year ago

I just checked again with my HoloLens2 on Edge(107.0.1418.32) and again, it works like 2 seconds and it stops working T.T I tested those examples I mentioned above. I also wanted to add that I tried other examples outside of Aframe with my Hololens bunch of times and it worked without no issues!

sorskoot commented 1 year ago

🤔 Do you get any errors in the console on your HoloLens?

minkil commented 1 year ago

Thank you for your answer! The thing is, I haven't figured out how to debug on my Hololens for WebXR. Here in this link is also me, asking MS for WebXR debugging with Hololens2.

https://learn.microsoft.com/en-us/answers/questions/1028422/hololens2-webxr-debugging.html (I uploaded this feedback to feedback hub too but didn't get any answers about it)

I also saw one of the posts of yours which was about Vorlon.js Should I try Vorlon.js for remote debugging?

vincentfretin commented 1 year ago

I tried again Vorlon.js a few days ago to debug on Quest, I couldn't make it work anymore, it was working a few years ago. Don't lose time like me trying it, it's not maintained since several years. Anyway better to use chrome remote inspect on Quest, and for Hololens2 you just gave the link. :)

minkil commented 1 year ago

Thanks for letting me know @vincentfretin ! I appreciate it!