jeromeetienne / AR.js

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

Not running on mobile devices #259

Closed ishansmishra closed 6 years ago

ishansmishra commented 6 years ago
<body style='margin : 0px; overflow: hidden;'>
    <a-scene stats="stats" embedded="embedded" arjs='trackingMethod: best;'>
        <!-- X: horiz, Y: depth, Z: verti -->
        <a-marker-camera preset="hiro">
            <a-image listener geometry="primitive: plane" src="images/logo-ekya.png" rotation="-90 0 0" width="2" position='0 0 -2.5'></a-image>
            <a-text value="Ekya Open Day" rotation="-90 0 0" position="-0.5 0 -2" color="white"></a-text>
            <a-text value="Welcome to the AR Exhibit!" rotation="-90 0 0" position="-1 0 -1.5" color="white"></a-text>
        </a-marker-camera>
        <a-marker preset="kanji">
            <a-portal-door url="images/koper_slovenia.jpg" rotation="0 0 0"></a-portal-door>
        </a-marker-camera>
        <a-entity camera="camera"></a-entity>
                </a-scene>
</body>

``

Why does the above code work on my laptop but not on my phone?

ZoltanVeres commented 6 years ago

Can you be a little bit more specific? What kind of phone you have? Which demo page is not working for you? Please also be aware that AR.js has two dependencies:

Please check them and make sure your browser has support for these features, otherwise i will have to close this issue.

ishansmishra commented 6 years ago

the hiro and kanji work perfectly on my laptop,the ekya one i'm yet to figure that one .The hiro and kanji markers aren't recognized on any phone

ZoltanVeres commented 6 years ago

Make sure your browser supports these features:

Can you try and see if this example is working for you?

  1. Open this hiro marker image in your desktop browser.
  2. Open this augmented reality webapps in your phone browser, and point it

If not please specify your browser, otherwise we cannot help.

ishansmishra commented 6 years ago

Google Chrome.This works. that means there's a problem with my code.

ishansmishra commented 6 years ago

And...yes.My browser supports the dependencies

ishansmishra commented 6 years ago

Well it started working!Yay!

RomitSingh1999 commented 3 years ago

@legitishan can you tell us what was the problem you were facing earlier, I am having the same issue tell us how you resolved your problem.