# What are the best free libraries for WebAR?

**URL:** <https://discourse.threejs.org/t/what-are-the-best-free-libraries-for-webar/18421>\
**Category:** Questions\
**Tags:** webar, ar\
**Created:** [September 4, 2020, 9:13am UTC](https://discourse.threejs.org/t/what-are-the-best-free-libraries-for-webar/18421 "2020-09-04T09:13:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![GamerWael](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/gamerwael/32/18373_2.png) [@GamerWael](https://discourse.threejs.org/u/GamerWael)\
**Post date:** [September 4, 2020, 9:13am UTC](https://discourse.threejs.org/t/what-are-the-best-free-libraries-for-webar/18421/1 "2020-09-04T09:13:42Z")

</div>

Can anyone tell me the pros and cons of the various libraries such as ar.js, a-frame, playcanvas-ar, etc. And also which is the best in your opinion?

---

<div class="post-metadata">

**Author:** ![karanganesan](https://avatars.discourse-cdn.com/v4/letter/k/eb9ed0/32.png) [@karanganesan](https://discourse.threejs.org/u/karanganesan)\
**Post date:** [September 4, 2020, 9:55am UTC](https://discourse.threejs.org/t/what-are-the-best-free-libraries-for-webar/18421/2 "2020-09-04T09:55:02Z")

</div>

With my experience of using them

Three.js + WebXR - You can do anything, still WIP APIs, supports only Chrome on Android, no support on iOS Safari yet (soon maybe)

[https://threejs.org/examples/?q=webxr#webxr\_ar\_cones](https://threejs.org/examples/?q=webxr#webxr_ar_cones)  
[https://threejs.org/examples/?q=webxr#webxr\_ar\_hittest](https://threejs.org/examples/?q=webxr#webxr_ar_hittest)  
[https://threejs.org/examples/?q=webxr#webxr\_ar\_paint](https://threejs.org/examples/?q=webxr#webxr_ar_paint)

ar.js - marker based, location based, pretty good set of components and helpers avaiable from ar.js repo, works everywhere Android and iOS. most of the times I have seen it’s not maintaining 60 FPS. and has limitations how the marker should look like, it needs black border to detect images. No Markerless feature.

> **[AR-js-org/AR.js](https://github.com/AR-js-org/AR.js)**
>
> Image tracking, Location Based AR, Marker tracking. All on the Web. - AR-js-org/AR.js

a-frame - You can use A-Frame with AR.js easily too. AR.js creators have created A-Frame componets to use it.

> **[A-Frame – Make WebVR](https://aframe.io/blog/arjs/)**
>
> A web framework for building virtual reality experiences. Make WebVR with HTML and Entity-Component. Works on Vive, Rift, desktop, mobile platforms.

playcanvas-ar - Not sure havn’t used it

One more things you should take a look at is [https://modelviewer.dev/](https://modelviewer.dev/) if your requirement is all about rendering 3D models on web pages and have a AR feature to view in your space.

it has pretty good AR features too  
[https://modelviewer.dev/examples/augmented-reality.html](https://modelviewer.dev/examples/augmented-reality.html)  
[https://modelviewer.dev/examples/webxr.html](https://modelviewer.dev/examples/webxr.html)

---

<div class="post-metadata">

**Author:** ![GamerWael](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/gamerwael/32/18373_2.png) [@GamerWael](https://discourse.threejs.org/u/GamerWael)\
**Post date:** [September 4, 2020, 10:33am UTC](https://discourse.threejs.org/t/what-are-the-best-free-libraries-for-webar/18421/3 "2020-09-04T10:33:44Z")

</div>

Thanks a lot for the detailed answer. I appreciate it.  
Can’t decide between threejs and modelviewer. Modelviewer seems to be the easiest for the end user as well as the programmer but I don’t think I can customize it much or turn it into a game, however I can use threejs to make a game but it will be slightly more complicated.

However I am confused about one thing.

> [@karanganesan](#):
>
> [https://modelviewer.dev/examples/augmented-reality.html](https://modelviewer.dev/examples/augmented-reality.html)  
> [https://modelviewer.dev/examples/webxr.html](https://modelviewer.dev/examples/webxr.html)

Both these examples do pretty much the same thing. They display a model in 3D as well as in AR. What’s the difference?

---

<div class="post-metadata">

**Author:** ![karanganesan](https://avatars.discourse-cdn.com/v4/letter/k/eb9ed0/32.png) [@karanganesan](https://discourse.threejs.org/u/karanganesan)\
**Post date:** [September 5, 2020, 5:12am UTC](https://discourse.threejs.org/t/what-are-the-best-free-libraries-for-webar/18421/4 "2020-09-05T05:12:21Z")

</div>

> Can’t decide between threejs and modelviewer. Modelviewer seems to be the easiest for the end user as well as the programmer but I don’t think I can customize it much or turn it into a game, however I can use threejs to make a game but it will be slightly more complicated.

Ya true if you are looking to make something like a game you can’t use model viewer.

> [@karanganesan](#):
>
> [https://modelviewer.dev/examples/augmented-reality.html](https://modelviewer.dev/examples/augmented-reality.html)  
> [https://modelviewer.dev/examples/webxr.html](https://modelviewer.dev/examples/webxr.html)

so the first link  
[https://modelviewer.dev/examples/augmented-reality.html](https://modelviewer.dev/examples/augmented-reality.html)

this uses Scene Viewer and AR Quick Look to make AR possoble  
they are native level binding that Google and Apple provide to do AR

where as second link  
[https://modelviewer.dev/examples/webxr.html](https://modelviewer.dev/examples/webxr.html)

this uses the WebXR Standard that is in early stages of it’s development  
currently only supports chrome on Andorid

hope that anwsers your question 🙂

---

<div class="post-metadata">

**Author:** ![GamerWael](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/gamerwael/32/18373_2.png) [@GamerWael](https://discourse.threejs.org/u/GamerWael)\
**Post date:** [September 6, 2020, 7:14am UTC](https://discourse.threejs.org/t/what-are-the-best-free-libraries-for-webar/18421/5 "2020-09-06T07:14:41Z")

</div>

Thanks a lot for the detailed answers. Really appreciate it.

---

<div class="post-metadata">

**Author:** ![elifares](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/elifares/32/16178_2.png) [@elifares](https://discourse.threejs.org/u/elifares)\
**Post date:** [February 8, 2021, 3:04pm UTC](https://discourse.threejs.org/t/what-are-the-best-free-libraries-for-webar/18421/6 "2021-02-08T15:04:27Z")

</div>

Have you looked at [https://www.babylonjs.com/](https://www.babylonjs.com/)?
