jeromeetienne / AR.js

Efficient Augmented Reality for the Web - 60fps on mobile!
MIT License
15.79k stars 2.22k forks source link

in AR mode allow mouse click on object / user touch on object (mobile phone) #133

Closed markleeyw closed 6 years ago

markleeyw commented 7 years ago

Would like to check if this is possible? So far I have to do this in order to see the cursor .. but it follows the camera and not mouse click

JonathanWade commented 7 years ago

Edit: See #148

I was trying to do this using the camera cursor component that is in A-Frame 0.6.1

`

` But ran into issues. On page load I get the following: ![screen shot 2017-08-02 at 5 18 30 pm](https://user-images.githubusercontent.com/6645170/28895502-a5fbf656-77a6-11e7-9118-c09b8d3d919e.png)
nicolocarpignoli commented 6 years ago

yes it is possible. see https://medium.com/chialab-open-source/how-to-handle-click-events-on-ar-js-58fcacb77c4

maltekosian commented 4 years ago

That is not the general solution for touch control. Imagine a scene where you have 4 images, one North one South, one West and one East, You want to see them one by one on your white wall. So you try to try to turn around the scene. That does not work with ARJS.