alemart / encantar-js

encantAR.js: GPU-accelerated Augmented Reality for the web. Fast, easy to use and device-agnostic WebAR.
https://alemart.github.io/encantar-js/
GNU Lesser General Public License v3.0
57 stars 10 forks source link

Camera freezes in mobile view... #3

Closed akbartus closed 1 year ago

akbartus commented 2 years ago

Hi,

Thank you for creating a really interesting webAR framework. I wanted to see its possibilities on a mobile device, but unfortunately as soon as camera is on, it freezes and nothing works. Is there a certain limitation for use on mobile devices?

alemart commented 2 years ago

Hi,

What's your device? What does the browser console say?

akbartus commented 2 years ago

Hi,

What's your device? What does the browser console say?

Thanks for quick reply. I am using Samsung J3 Orbit phone with Android 9. I did not check the browser for errors on mobile though. In contrast it works well on desktop/notebook computers.

alemart commented 2 years ago

It does work on Android. More information is needed.

A lot of the processing takes place on the GPU - that's why it's fast. Most of the heavy lifting is done using GLSL shaders. Some devices have quirks in the video drivers, and a particular shader may not compile, even though it's technically correct. I've seen this happen due to a detail in the syntax of a shader. If this is happening in your device, we could figure out what is the shader and adjust it, so that it compiles. I can't yet say for sure that this is the issue in your device.

If you provide the complete information of the browser console, we can investigate it further. Remote debugging helps. What is your browser? Did you try using a different one? Which demos did you try? Please include as much information as possible.

alemart commented 2 years ago

Hi,

Do you still need support? Can I help you with anything else?

akbartus commented 2 years ago

Hi! Sorry for coming back later. Let me test it with other devices as well and I will let you know. I did not use remote debugging yet. As for the browsers I used Android Mozilla and Chrome browsers.

alemart commented 1 year ago

May I still help you?

gavan1 commented 1 year ago

same issue happens on chrome and safari for IOS on iPhones....I highly suggest you do your end to end testing as at this current state the library is not usable. Mind AR and AR.js work. How is this issue even closed?

alemart commented 1 year ago

The engine is not yet compatible with the iPhone, but it will be. I will resume this work in the near future.