AR-js-org / AR.js

Image tracking, Location Based AR, Marker tracking. All on the Web.
MIT License
5.3k stars 909 forks source link

Camera not updating position #542

Open vuya24 opened 1 year ago

vuya24 commented 1 year ago

Do you want to request a feature or report a bug?

Bug

What is the current behavior?

Camera position not changing, rotation changes but doesn't look like it is working

If the current behavior is a bug, please provide the steps to reproduce.

Open location based example from ar-js github, allow camera and location

https://ar-js-org.github.io/AR.js-Docs/location-based-aframe/

Please mention other relevant information such as the browser version, Operating System and Device Name Browser version: Chrome 111.0.5563.57 Operating System: Android 13 Device name: Samsung Galaxy Note20 5G

What is the expected behavior? Object should not be fixed to camera and camera should update it's position

I don't know why is this happening, tried multiple examples. Also i've seen that DeviceOrientationControls from Three.js is deprecated from version 0.133. I don't know if that causes an issue, should i build npm packages. Also , i don't know if attribute look-controls does anything when using phone camera or it is only for VR but in inspect of the example code a-camera gets attribute look-controls-enabled:"false".

kalwalt commented 1 year ago

Are you using the latest from Ar.js? Does this live example works for you?