소스 검색

Add posters. Update docs.

customisations
alemart 9 달 전
부모
커밋
fdb0f32aca

+ 7
- 8
README.md 파일 보기

@@ -2,7 +2,7 @@
2 2
 
3 3
 [![GitHub release (latest by date)](https://img.shields.io/github/v/release/alemart/encantar-js)](https://github.com/alemart/encantar-js/releases/) ![GitHub file size in bytes on a specified ref (branch/commit/tag)](https://img.shields.io/github/size/alemart/encantar-js/dist/encantar.min.js?branch=master&label=minified%20js) [![GitHub Repo stars](https://img.shields.io/github/stars/alemart/encantar-js?logo=github)](https://github.com/alemart/encantar-js/stargazers) [![GitHub Sponsors](https://img.shields.io/github/sponsors/alemart?logo=github)](https://github.com/sponsors/alemart/)
4 4
 
5
-Enchant your users with **encantar.js**, a GPU-accelerated Augmented Reality engine for the web.
5
+**encantar.js** is the Augmented Reality engine that will enchant you! GPU-accelerated, open-source and web-based!
6 6
 
7 7
 :magic_wand: **[Demos](https://alemart.github.io/encantar-js/demos/)** | :books: **[Learn](https://alemart.github.io/encantar-js/)** | :heart: **[Sponsor](https://github.com/sponsors/alemart)**
8 8
 
@@ -10,18 +10,17 @@ Enchant your users with **encantar.js**, a GPU-accelerated Augmented Reality eng
10 10
 
11 11
 ## Features
12 12
 
13
-* **AR everywhere**: encantar.js runs on Android, on iOS, and even on Desktop computers! Only a modern web browser is required.
14
-* **Plugins**: use encantar.js with the 3D framework of your choice, including A-Frame, Babylon.js, Three.js and more!
15 13
 * **Image tracking**: track detailed images such as book covers, cartoons and photos. No need of manual training!
16 14
 * **Pointer tracking**: create interactive experiences based on touch, mouse and pen input with an easy-to-use API.
15
+* **Plugins**: use encantar.js with the 3D framework of your choice, including A-Frame, Babylon.js, Three.js and more!
17 16
 
18 17
 ## Why use encantar.js?
19 18
 
20
-* **Device-agnostic**: no need of AR-capable devices. encantar.js runs in all modern web browsers. It's AR built from scratch with computer vision.
21
-* **Fast and powerful**: encantar.js is GPU-accelerated. It uses WebGL2 and WebAssembly for turbocharged performance.
22
-* **No need to download apps**: encantar.js is a WebAR engine. Users can access the AR experiences immediately.
23
-* **Easy to get started**: encantar.js can be used with a `<script>` tag in your page. A static HTML page is enough to get started.
24
-* **Open-source**: what are you waiting for? [Try it now!](https://alemart.github.io/encantar-js/demos/)
19
+* **AR everywhere**: it runs on Android, on iOS, and even on Desktop computers! Only a modern web browser is required.
20
+* **Easy to use**: just load a static HTML page! No need of heavy app downloads, API keys, subscriptions or server-side stuff.
21
+* **Device-agnostic**: no need of AR-capable devices! encantar.js is AR built from scratch with computer vision!
22
+* **Fast & powerful**: encantar.js is GPU-accelerated. It uses WebGL2 and WebAssembly for turbocharged performance.
23
+* **Open source**: personal, professional and educational use is allowed.
25 24
 
26 25
 ## Browser compatibility
27 26
 

+ 96
- 0
demos/assets/poster.css 파일 보기

@@ -0,0 +1,96 @@
1
+body {
2
+    background-color: #33334c;
3
+    background-image: url(mage.webp);
4
+    background-size: contain;
5
+    background-repeat: no-repeat;
6
+    background-position: center;
7
+    width: 100vw;
8
+    height: 100vh;
9
+    padding: 0;
10
+    margin: 0;
11
+}
12
+
13
+#qr-code-area {
14
+    display: flex;
15
+    align-items: center;
16
+    flex-direction: column;
17
+    position: fixed;
18
+    bottom: 16px;
19
+    right: 16px;
20
+    color: black;
21
+    background-color: white;
22
+    border-radius: 16px;
23
+    padding: 0.5em;
24
+    text-align: center;
25
+    font-weight: bold;
26
+    font-family: sans-serif;
27
+    font-size: 1.25em;
28
+}
29
+
30
+#qr-code-area h4 {
31
+    margin: 0;
32
+}
33
+
34
+#qr-code {
35
+    image-rendering: pixelated;
36
+    min-width: 120px;
37
+    height: auto;
38
+}
39
+
40
+#back {
41
+    position: fixed;
42
+    top: 0px;
43
+    right: 0px;
44
+    padding: 8px;
45
+    color: #9999a6;
46
+    background-color: #33334c;
47
+    font-family: sans-serif;
48
+    font-size: 1em;
49
+    text-decoration: underline;
50
+    transition: color 0.125s;
51
+}
52
+
53
+#back:visited {
54
+    color: #9999a6;
55
+}
56
+
57
+#back:active, #back:hover {
58
+    color: white;
59
+}
60
+
61
+#prev, #next {
62
+    position: fixed;
63
+    top: calc(50% - 55px);
64
+    font-size: 96px;
65
+    color: white;
66
+    text-decoration: none;
67
+    opacity: 0.5;
68
+    transition: opacity 0.5s;
69
+    transition: transform 0.125s;
70
+}
71
+
72
+#prev {
73
+    left: 8%;
74
+}
75
+
76
+#next {
77
+    right: 8%;
78
+}
79
+
80
+#prev:hover {
81
+    opacity: 1.0;
82
+    transform: translateX(-4px);
83
+}
84
+
85
+#next:hover {
86
+    opacity: 1.0;
87
+    transform: translateX(4px);
88
+}
89
+
90
+#prev::before {
91
+    content: "\276E";
92
+}
93
+
94
+#next::before {
95
+    content: "\276F";
96
+}

+ 35
- 0
demos/assets/poster.js 파일 보기

@@ -0,0 +1,35 @@
1
+(function() {
2
+
3
+const IMAGE_PREFIX = '../assets/';
4
+const DEFAULT_IMAGE = 'mage.webp';
5
+
6
+const paths = [];
7
+let index = 0;
8
+
9
+function changeImage(direction)
10
+{
11
+    index = (index + direction + paths.length) % paths.length;
12
+    document.body.style.backgroundImage = 'url(' + IMAGE_PREFIX + paths[index] + ')';
13
+}
14
+
15
+document.addEventListener('DOMContentLoaded', function() {
16
+
17
+    const prev = document.getElementById('prev');
18
+    const next = document.getElementById('next');
19
+
20
+    const arImages = (document.body.dataset.arImages || DEFAULT_IMAGE).split(';');
21
+    paths.push.apply(paths, arImages);
22
+    changeImage(0);
23
+
24
+    if(!prev || !next)
25
+        return;
26
+
27
+    prev.addEventListener('click', function() { changeImage(-1); });
28
+    next.addEventListener('click', function() { changeImage(+1); });
29
+
30
+    if(paths.length < 2)
31
+        prev.hidden = next.hidden = true;
32
+
33
+});
34
+
35
+})();

+ 0
- 72
demos/hello-aframe/README.html 파일 보기

@@ -1,72 +0,0 @@
1
-<!doctype html>
2
-<html>
3
-    <head>
4
-        <meta charset="utf-8">
5
-        <title>encantar.js WebAR demo with A-Frame</title>
6
-        <script data-goatcounter="https://encantar-js.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script>
7
-        <style>
8
-        body {
9
-            font-family: sans-serif;
10
-            background-color: whitesmoke;
11
-        }
12
-
13
-        a:any-link {
14
-            color: #7e56c2;
15
-            text-decoration: none;
16
-        }
17
-
18
-        a:hover {
19
-            text-decoration: underline;
20
-        }
21
-
22
-        li + li {
23
-            margin-top: 1em;
24
-        }
25
-
26
-        ul {
27
-            list-style-type: none;
28
-            padding-left: 1em;
29
-        }
30
-
31
-        img.qr-code {
32
-            display: block;
33
-            width: 256px;
34
-            image-rendering: pixelated;
35
-            border: 1px dashed black;
36
-        }
37
-
38
-        a img {
39
-            height: 80px;
40
-            border-radius: 4px;
41
-        }
42
-        </style>
43
-    </head>
44
-    <body>
45
-        <h1>encantar.js with A-Frame</h1>
46
-        <p>Scan the QR code to launch the web-based Augmented Reality experience. Next, scan <a href="../assets/mage.webp" target="_blank">this cartoon</a> or <a href="../assets/cat.webp" target="_blank">this picture</a>.</p>
47
-
48
-        <h2>Menu</h2>
49
-        <ul>
50
-            <li><a href="index.html">Launch the WebAR experience</a></li>
51
-            <li><a href="video.html">Test with a pre-recorded video</a></li>
52
-            <li><a href="https://github.com/alemart/encantar-js/blob/master/demos/hello-aframe/index.html" rel="external" target="_blank">Study the source code</a></li>
53
-            <li><a href="NOTICE.html">See the attribution notices</a></li>
54
-            <li><a href="../">Try other WebAR demos</a></li>
55
-        </ul>
56
-
57
-        <h2>QR code</h2>
58
-        <img src="qr-code.gif" alt="QR code" class="qr-code">
59
-
60
-        <h2>Share</h2>
61
-        <p>This experience is powered by <a href="https://alemart.github.io/encantar-js" target="_blank">encantar.js: GPU-accelerated Augmented Reality for the web</a>.</p>
62
-        <div>
63
-            <a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Falemart.github.io/encantar-js&quote=%23encantarjs" target="_blank" rel="external" class="button"><img src="../assets/facebook.png" alt="Share on Facebook"></a>
64
-            <a href="https://twitter.com/intent/tweet?url=https%3A%2F%2Falemart.github.io/encantar-js&hashtags=encantarjs" target="_blank" rel="external" class="button"><img src="../assets/twitter.png" alt="Share on X"></a>
65
-            <a href="https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Falemart.github.io/encantar-js" target="_blank" rel="external" class="button"><img src="../assets/linkedin.png" alt="Share on LinkedIn"></a>
66
-            <a href="https://wa.me/?text=https%3A%2F%2Falemart.github.io/encantar-js" target="_blank" rel="external" class="button"><img src="../assets/whatsapp.png" alt="Share via WhatsApp"></a>
67
-            <a href="https://t.me/share/url?url=https%3A%2F%2Falemart.github.io/encantar-js" target="_blank" rel="external" class="button"><img src="../assets/telegram.png" alt="Share via Telegram"></a>
68
-            <a href="https://github.com/sponsors/alemart" target="_blank" rel="external"><img alt="GitHub Sponsors" src="https://img.shields.io/github/sponsors/alemart?style=for-the-badge&logo=github&label=Sponsor&labelColor=%237e56c2&color=%23ffd500"></a>
69
-        </div>
70
-    </body>
71
-</html>
72
-

+ 25
- 0
demos/hello-aframe/poster.html 파일 보기

@@ -0,0 +1,25 @@
1
+<!doctype html>
2
+<html>
3
+    <head>
4
+        <meta charset="utf-8">
5
+        <meta name="description" content="Demo of encantar.js, a GPU-accelerated Augmented Reality engine for the web">
6
+        <meta name="author" content="Alexandre Martins (alemart)">
7
+        <meta name="viewport" content="width=device-width,initial-scale=1">
8
+        <title>encantar.js WebAR demo with A-Frame</title>
9
+        <link href="../assets/poster.css" rel="stylesheet">
10
+        <script data-goatcounter="https://encantar-js.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script>
11
+        <script src="../assets/poster.js"></script>
12
+    </head>
13
+    <body data-ar-images="mage.webp;cat.webp">
14
+        <nav>
15
+            <a id="prev" href="#"></a>
16
+            <a id="next" href="#"></a>
17
+            <a id="back" href="https://alemart.github.io/encantar-js" target="_blank" rel="external">Back to encantar.js</a>
18
+        </nav>
19
+        <section id="qr-code-area">
20
+            <h4>QR code</h4>
21
+            <a href="index.html" target="_blank"><img id="qr-code" src="qr-code.gif" alt="QR code"></a>
22
+            <small>Scan to begin!</small>
23
+        </section>
24
+    </body>
25
+</html>

+ 0
- 72
demos/hello-babylon/README.html 파일 보기

@@ -1,72 +0,0 @@
1
-<!doctype html>
2
-<html>
3
-    <head>
4
-        <meta charset="utf-8">
5
-        <title>encantar.js WebAR demo with babylon.js</title>
6
-        <script data-goatcounter="https://encantar-js.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script>
7
-        <style>
8
-        body {
9
-            font-family: sans-serif;
10
-            background-color: whitesmoke;
11
-        }
12
-
13
-        a:any-link {
14
-            color: #7e56c2;
15
-            text-decoration: none;
16
-        }
17
-
18
-        a:hover {
19
-            text-decoration: underline;
20
-        }
21
-
22
-        li + li {
23
-            margin-top: 1em;
24
-        }
25
-
26
-        ul {
27
-            list-style-type: none;
28
-            padding-left: 1em;
29
-        }
30
-
31
-        img.qr-code {
32
-            display: block;
33
-            width: 256px;
34
-            image-rendering: pixelated;
35
-            border: 1px dashed black;
36
-        }
37
-
38
-        a img {
39
-            height: 80px;
40
-            border-radius: 4px;
41
-        }
42
-        </style>
43
-    </head>
44
-    <body>
45
-        <h1>encantar.js with babylon.js</h1>
46
-        <p>Scan the QR code to launch the web-based Augmented Reality experience. Next, scan <a href="../assets/mage.webp" target="_blank">this cartoon</a> or <a href="../assets/cat.webp" target="_blank">this picture</a>.</p>
47
-
48
-        <h2>Menu</h2>
49
-        <ul>
50
-            <li><a href="index.html">Launch the WebAR experience</a></li>
51
-            <li><a href="video.html">Test with a pre-recorded video</a></li>
52
-            <li><a href="https://github.com/alemart/encantar-js/blob/master/demos/hello-babylon/demo.js" rel="external" target="_blank">Study the source code</a></li>
53
-            <li><a href="NOTICE.html">See the attribution notices</a></li>
54
-            <li><a href="../">Try other WebAR demos</a></li>
55
-        </ul>
56
-
57
-        <h2>QR code</h2>
58
-        <img src="qr-code.gif" alt="QR code" class="qr-code">
59
-
60
-        <h2>Share</h2>
61
-        <p>This experience is powered by <a href="https://alemart.github.io/encantar-js" target="_blank">encantar.js: GPU-accelerated Augmented Reality for the web</a>.</p>
62
-        <div>
63
-            <a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Falemart.github.io/encantar-js&quote=%23encantarjs" target="_blank" rel="external" class="button"><img src="../assets/facebook.png" alt="Share on Facebook"></a>
64
-            <a href="https://twitter.com/intent/tweet?url=https%3A%2F%2Falemart.github.io/encantar-js&hashtags=encantarjs" target="_blank" rel="external" class="button"><img src="../assets/twitter.png" alt="Share on X"></a>
65
-            <a href="https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Falemart.github.io/encantar-js" target="_blank" rel="external" class="button"><img src="../assets/linkedin.png" alt="Share on LinkedIn"></a>
66
-            <a href="https://wa.me/?text=https%3A%2F%2Falemart.github.io/encantar-js" target="_blank" rel="external" class="button"><img src="../assets/whatsapp.png" alt="Share via WhatsApp"></a>
67
-            <a href="https://t.me/share/url?url=https%3A%2F%2Falemart.github.io/encantar-js" target="_blank" rel="external" class="button"><img src="../assets/telegram.png" alt="Share via Telegram"></a>
68
-            <a href="https://github.com/sponsors/alemart" target="_blank" rel="external"><img alt="GitHub Sponsors" src="https://img.shields.io/github/sponsors/alemart?style=for-the-badge&logo=github&label=Sponsor&labelColor=%237e56c2&color=%23ffd500"></a>
69
-        </div>
70
-    </body>
71
-</html>
72
-

+ 25
- 0
demos/hello-babylon/poster.html 파일 보기

@@ -0,0 +1,25 @@
1
+<!doctype html>
2
+<html>
3
+    <head>
4
+        <meta charset="utf-8">
5
+        <meta name="description" content="Demo of encantar.js, a GPU-accelerated Augmented Reality engine for the web">
6
+        <meta name="author" content="Alexandre Martins (alemart)">
7
+        <meta name="viewport" content="width=device-width,initial-scale=1">
8
+        <title>encantar.js WebAR demo with babylon.js</title>
9
+        <link href="../assets/poster.css" rel="stylesheet">
10
+        <script data-goatcounter="https://encantar-js.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script>
11
+        <script src="../assets/poster.js"></script>
12
+    </head>
13
+    <body data-ar-images="mage.webp;cat.webp">
14
+        <nav>
15
+            <a id="prev" href="#"></a>
16
+            <a id="next" href="#"></a>
17
+            <a id="back" href="https://alemart.github.io/encantar-js" target="_blank" rel="external">Back to encantar.js</a>
18
+        </nav>
19
+        <section id="qr-code-area">
20
+            <h4>QR code</h4>
21
+            <a href="index.html" target="_blank"><img id="qr-code" src="qr-code.gif" alt="QR code"></a>
22
+            <small>Scan to begin!</small>
23
+        </section>
24
+    </body>
25
+</html>

+ 0
- 72
demos/hello-three/README.html 파일 보기

@@ -1,72 +0,0 @@
1
-<!doctype html>
2
-<html>
3
-    <head>
4
-        <meta charset="utf-8">
5
-        <title>encantar.js WebAR demo with three.js</title>
6
-        <script data-goatcounter="https://encantar-js.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script>
7
-        <style>
8
-        body {
9
-            font-family: sans-serif;
10
-            background-color: whitesmoke;
11
-        }
12
-
13
-        a:any-link {
14
-            color: #7e56c2;
15
-            text-decoration: none;
16
-        }
17
-
18
-        a:hover {
19
-            text-decoration: underline;
20
-        }
21
-
22
-        li + li {
23
-            margin-top: 1em;
24
-        }
25
-
26
-        ul {
27
-            list-style-type: none;
28
-            padding-left: 1em;
29
-        }
30
-
31
-        img.qr-code {
32
-            display: block;
33
-            width: 256px;
34
-            image-rendering: pixelated;
35
-            border: 1px dashed black;
36
-        }
37
-
38
-        a img {
39
-            height: 80px;
40
-            border-radius: 4px;
41
-        }
42
-        </style>
43
-    </head>
44
-    <body>
45
-        <h1>encantar.js with three.js</h1>
46
-        <p>Scan the QR code to launch the web-based Augmented Reality experience. Next, scan <a href="../assets/mage.webp" target="_blank">this cartoon</a> or <a href="../assets/cat.webp" target="_blank">this picture</a>.</p>
47
-
48
-        <h2>Menu</h2>
49
-        <ul>
50
-            <li><a href="index.html">Launch the WebAR experience</a></li>
51
-            <li><a href="video.html">Test with a pre-recorded video</a></li>
52
-            <li><a href="https://github.com/alemart/encantar-js/blob/master/demos/hello-three/demo.js" rel="external" target="_blank">Study the source code</a></li>
53
-            <li><a href="NOTICE.html">See the attribution notices</a></li>
54
-            <li><a href="../">Try other WebAR demos</a></li>
55
-        </ul>
56
-
57
-        <h2>QR code</h2>
58
-        <img src="qr-code.gif" alt="QR code" class="qr-code">
59
-
60
-        <h2>Share</h2>
61
-        <p>This experience is powered by <a href="https://alemart.github.io/encantar-js" target="_blank">encantar.js: GPU-accelerated Augmented Reality for the web</a>.</p>
62
-        <div>
63
-            <a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Falemart.github.io/encantar-js&quote=%23encantarjs" target="_blank" rel="external" class="button"><img src="../assets/facebook.png" alt="Share on Facebook"></a>
64
-            <a href="https://twitter.com/intent/tweet?url=https%3A%2F%2Falemart.github.io/encantar-js&hashtags=encantarjs" target="_blank" rel="external" class="button"><img src="../assets/twitter.png" alt="Share on X"></a>
65
-            <a href="https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Falemart.github.io/encantar-js" target="_blank" rel="external" class="button"><img src="../assets/linkedin.png" alt="Share on LinkedIn"></a>
66
-            <a href="https://wa.me/?text=https%3A%2F%2Falemart.github.io/encantar-js" target="_blank" rel="external" class="button"><img src="../assets/whatsapp.png" alt="Share via WhatsApp"></a>
67
-            <a href="https://t.me/share/url?url=https%3A%2F%2Falemart.github.io/encantar-js" target="_blank" rel="external" class="button"><img src="../assets/telegram.png" alt="Share via Telegram"></a>
68
-            <a href="https://github.com/sponsors/alemart" target="_blank" rel="external"><img alt="GitHub Sponsors" src="https://img.shields.io/github/sponsors/alemart?style=for-the-badge&logo=github&label=Sponsor&labelColor=%237e56c2&color=%23ffd500"></a>
69
-        </div>
70
-    </body>
71
-</html>
72
-

+ 25
- 0
demos/hello-three/poster.html 파일 보기

@@ -0,0 +1,25 @@
1
+<!doctype html>
2
+<html>
3
+    <head>
4
+        <meta charset="utf-8">
5
+        <meta name="description" content="Demo of encantar.js, a GPU-accelerated Augmented Reality engine for the web">
6
+        <meta name="author" content="Alexandre Martins (alemart)">
7
+        <meta name="viewport" content="width=device-width,initial-scale=1">
8
+        <title>encantar.js WebAR demo with three.js</title>
9
+        <link href="../assets/poster.css" rel="stylesheet">
10
+        <script data-goatcounter="https://encantar-js.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script>
11
+        <script src="../assets/poster.js"></script>
12
+    </head>
13
+    <body data-ar-images="mage.webp;cat.webp">
14
+        <nav>
15
+            <a id="prev" href="#"></a>
16
+            <a id="next" href="#"></a>
17
+            <a id="back" href="https://alemart.github.io/encantar-js" target="_blank" rel="external">Back to encantar.js</a>
18
+        </nav>
19
+        <section id="qr-code-area">
20
+            <h4>QR code</h4>
21
+            <a href="index.html" target="_blank"><img id="qr-code" src="qr-code.gif" alt="QR code"></a>
22
+            <small>Scan to begin!</small>
23
+        </section>
24
+    </body>
25
+</html>

+ 0
- 72
demos/hello-webgl/README.html 파일 보기

@@ -1,72 +0,0 @@
1
-<!doctype html>
2
-<html>
3
-    <head>
4
-        <meta charset="utf-8">
5
-        <title>encantar.js WebAR demo with WebGL</title>
6
-        <script data-goatcounter="https://encantar-js.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script>
7
-        <style>
8
-        body {
9
-            font-family: sans-serif;
10
-            background-color: whitesmoke;
11
-        }
12
-
13
-        a:any-link {
14
-            color: #7e56c2;
15
-            text-decoration: none;
16
-        }
17
-
18
-        a:hover {
19
-            text-decoration: underline;
20
-        }
21
-
22
-        li + li {
23
-            margin-top: 1em;
24
-        }
25
-
26
-        ul {
27
-            list-style-type: none;
28
-            padding-left: 1em;
29
-        }
30
-
31
-        img.qr-code {
32
-            display: block;
33
-            width: 256px;
34
-            image-rendering: pixelated;
35
-            border: 1px dashed black;
36
-        }
37
-
38
-        a img {
39
-            height: 80px;
40
-            border-radius: 4px;
41
-        }
42
-        </style>
43
-    </head>
44
-    <body>
45
-        <h1>encantar.js with WebGL</h1>
46
-        <p>Scan the QR code to launch the web-based Augmented Reality experience. Next, scan <a href="../assets/my-reference-image.webp" target="_blank">this cartoon</a>.</p>
47
-
48
-        <h2>Menu</h2>
49
-        <ul>
50
-            <li><a href="index.html">Launch the WebAR experience</a></li>
51
-            <li><a href="video.html">Test with a pre-recorded video</a></li>
52
-            <li><a href="https://github.com/alemart/encantar-js/blob/master/demos/hello-webgl/demo.js" rel="external" target="_blank">Study the source code</a></li>
53
-            <li><a href="NOTICE.html">See the attribution notices</a></li>
54
-            <li><a href="../">Try other WebAR demos</a></li>
55
-        </ul>
56
-
57
-        <h2>QR code</h2>
58
-        <img src="qr-code.gif" alt="QR code" class="qr-code">
59
-
60
-        <h2>Share</h2>
61
-        <p>This experience is powered by <a href="https://alemart.github.io/encantar-js" target="_blank">encantar.js: GPU-accelerated Augmented Reality for the web</a>.</p>
62
-        <div>
63
-            <a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Falemart.github.io/encantar-js&quote=%23encantarjs" target="_blank" rel="external" class="button"><img src="../assets/facebook.png" alt="Share on Facebook"></a>
64
-            <a href="https://twitter.com/intent/tweet?url=https%3A%2F%2Falemart.github.io/encantar-js&hashtags=encantarjs" target="_blank" rel="external" class="button"><img src="../assets/twitter.png" alt="Share on X"></a>
65
-            <a href="https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Falemart.github.io/encantar-js" target="_blank" rel="external" class="button"><img src="../assets/linkedin.png" alt="Share on LinkedIn"></a>
66
-            <a href="https://wa.me/?text=https%3A%2F%2Falemart.github.io/encantar-js" target="_blank" rel="external" class="button"><img src="../assets/whatsapp.png" alt="Share via WhatsApp"></a>
67
-            <a href="https://t.me/share/url?url=https%3A%2F%2Falemart.github.io/encantar-js" target="_blank" rel="external" class="button"><img src="../assets/telegram.png" alt="Share via Telegram"></a>
68
-            <a href="https://github.com/sponsors/alemart" target="_blank" rel="external"><img alt="GitHub Sponsors" src="https://img.shields.io/github/sponsors/alemart?style=for-the-badge&logo=github&label=Sponsor&labelColor=%237e56c2&color=%23ffd500"></a>
69
-        </div>
70
-    </body>
71
-</html>
72
-

+ 25
- 0
demos/hello-webgl/poster.html 파일 보기

@@ -0,0 +1,25 @@
1
+<!doctype html>
2
+<html>
3
+    <head>
4
+        <meta charset="utf-8">
5
+        <meta name="description" content="Demo of encantar.js, a GPU-accelerated Augmented Reality engine for the web">
6
+        <meta name="author" content="Alexandre Martins (alemart)">
7
+        <meta name="viewport" content="width=device-width,initial-scale=1">
8
+        <title>encantar.js WebAR demo with WebGL</title>
9
+        <link href="../assets/poster.css" rel="stylesheet">
10
+        <script data-goatcounter="https://encantar-js.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script>
11
+        <script src="../assets/poster.js"></script>
12
+    </head>
13
+    <body data-ar-images="my-reference-image.webp">
14
+        <nav>
15
+            <a id="prev" href="#"></a>
16
+            <a id="next" href="#"></a>
17
+            <a id="back" href="https://alemart.github.io/encantar-js" target="_blank" rel="external">Back to encantar.js</a>
18
+        </nav>
19
+        <section id="qr-code-area">
20
+            <h4>QR code</h4>
21
+            <a href="index.html" target="_blank"><img id="qr-code" src="qr-code.gif" alt="QR code"></a>
22
+            <small>Scan to begin!</small>
23
+        </section>
24
+    </body>
25
+</html>

+ 0
- 72
demos/hello-world/README.html 파일 보기

@@ -1,72 +0,0 @@
1
-<!doctype html>
2
-<html>
3
-    <head>
4
-        <meta charset="utf-8">
5
-        <title>encantar.js WebAR template</title>
6
-        <script data-goatcounter="https://encantar-js.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script>
7
-        <style>
8
-        body {
9
-            font-family: sans-serif;
10
-            background-color: whitesmoke;
11
-        }
12
-
13
-        a:any-link {
14
-            color: #7e56c2;
15
-            text-decoration: none;
16
-        }
17
-
18
-        a:hover {
19
-            text-decoration: underline;
20
-        }
21
-
22
-        li + li {
23
-            margin-top: 1em;
24
-        }
25
-
26
-        ul {
27
-            list-style-type: none;
28
-            padding-left: 1em;
29
-        }
30
-
31
-        img.qr-code {
32
-            display: block;
33
-            width: 256px;
34
-            image-rendering: pixelated;
35
-            border: 1px dashed black;
36
-        }
37
-
38
-        a img {
39
-            height: 80px;
40
-            border-radius: 4px;
41
-        }
42
-        </style>
43
-    </head>
44
-    <body>
45
-        <h1>encantar.js WebAR template</h1>
46
-        <p>Scan the QR code to launch the web-based Augmented Reality experience. Next, scan <a href="../assets/mage.webp" target="_blank">this cartoon</a> or <a href="../assets/cat.webp" target="_blank">this picture</a>.</p>
47
-
48
-        <h2>Menu</h2>
49
-        <ul>
50
-            <li><a href="index.html">Launch the WebAR experience</a></li>
51
-            <li><a href="video.html">Test with a pre-recorded video</a></li>
52
-            <li><a href="https://github.com/alemart/encantar-js/blob/master/demos/hello-world/demo.js" rel="external" target="_blank">Study the source code</a></li>
53
-            <li><a href="NOTICE.html">See the attribution notices</a></li>
54
-            <li><a href="../">Try other WebAR demos</a></li>
55
-        </ul>
56
-
57
-        <h2>QR code</h2>
58
-        <img src="qr-code.gif" alt="QR code" class="qr-code">
59
-
60
-        <h2>Share</h2>
61
-        <p>This experience is powered by <a href="https://alemart.github.io/encantar-js" target="_blank">encantar.js: GPU-accelerated Augmented Reality for the web</a>.</p>
62
-        <div>
63
-            <a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Falemart.github.io/encantar-js&quote=%23encantarjs" target="_blank" rel="external" class="button"><img src="../assets/facebook.png" alt="Share on Facebook"></a>
64
-            <a href="https://twitter.com/intent/tweet?url=https%3A%2F%2Falemart.github.io/encantar-js&hashtags=encantarjs" target="_blank" rel="external" class="button"><img src="../assets/twitter.png" alt="Share on X"></a>
65
-            <a href="https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Falemart.github.io/encantar-js" target="_blank" rel="external" class="button"><img src="../assets/linkedin.png" alt="Share on LinkedIn"></a>
66
-            <a href="https://wa.me/?text=https%3A%2F%2Falemart.github.io/encantar-js" target="_blank" rel="external" class="button"><img src="../assets/whatsapp.png" alt="Share via WhatsApp"></a>
67
-            <a href="https://t.me/share/url?url=https%3A%2F%2Falemart.github.io/encantar-js" target="_blank" rel="external" class="button"><img src="../assets/telegram.png" alt="Share via Telegram"></a>
68
-            <a href="https://github.com/sponsors/alemart" target="_blank" rel="external"><img alt="GitHub Sponsors" src="https://img.shields.io/github/sponsors/alemart?style=for-the-badge&logo=github&label=Sponsor&labelColor=%237e56c2&color=%23ffd500"></a>
69
-        </div>
70
-    </body>
71
-</html>
72
-

+ 25
- 0
demos/hello-world/poster.html 파일 보기

@@ -0,0 +1,25 @@
1
+<!doctype html>
2
+<html>
3
+    <head>
4
+        <meta charset="utf-8">
5
+        <meta name="description" content="Demo of encantar.js, a GPU-accelerated Augmented Reality engine for the web">
6
+        <meta name="author" content="Alexandre Martins (alemart)">
7
+        <meta name="viewport" content="width=device-width,initial-scale=1">
8
+        <title>encantar.js WebAR demo</title>
9
+        <link href="../assets/poster.css" rel="stylesheet">
10
+        <script data-goatcounter="https://encantar-js.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script>
11
+        <script src="../assets/poster.js"></script>
12
+    </head>
13
+    <body data-ar-images="mage.webp;cat.webp">
14
+        <nav>
15
+            <a id="prev" href="#"></a>
16
+            <a id="next" href="#"></a>
17
+            <a id="back" href="https://alemart.github.io/encantar-js" target="_blank" rel="external">Back to encantar.js</a>
18
+        </nav>
19
+        <section id="qr-code-area">
20
+            <h4>QR code</h4>
21
+            <a href="index.html" target="_blank"><img id="qr-code" src="qr-code.gif" alt="QR code"></a>
22
+            <small>Scan to begin!</small>
23
+        </section>
24
+    </body>
25
+</html>

+ 0
- 71
demos/pointer-demo/README.html 파일 보기

@@ -1,71 +0,0 @@
1
-<!doctype html>
2
-<html>
3
-    <head>
4
-        <meta charset="utf-8">
5
-        <title>encantar.js pointer demo</title>
6
-        <script data-goatcounter="https://encantar-js.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script>
7
-        <style>
8
-        body {
9
-            font-family: sans-serif;
10
-            background-color: whitesmoke;
11
-        }
12
-
13
-        a:any-link {
14
-            color: #7e56c2;
15
-            text-decoration: none;
16
-        }
17
-
18
-        a:hover {
19
-            text-decoration: underline;
20
-        }
21
-
22
-        li + li {
23
-            margin-top: 1em;
24
-        }
25
-
26
-        ul {
27
-            list-style-type: none;
28
-            padding-left: 1em;
29
-        }
30
-
31
-        img.qr-code {
32
-            display: block;
33
-            width: 256px;
34
-            image-rendering: pixelated;
35
-            border: 1px dashed black;
36
-        }
37
-
38
-        a img {
39
-            height: 80px;
40
-            border-radius: 4px;
41
-        }
42
-        </style>
43
-    </head>
44
-    <body>
45
-        <h1>encantar.js pointer demo</h1>
46
-        <p>Scan the QR code to launch the demo.</p>
47
-
48
-        <h2>Menu</h2>
49
-        <ul>
50
-            <li><a href="index.html">Launch the pointer demo</a></li>
51
-            <li><a href="https://github.com/alemart/encantar-js/blob/master/demos/pointer-demo/demo.js" rel="external" target="_blank">Study the source code</a></li>
52
-            <li><a href="NOTICE.html">See the attribution notices</a></li>
53
-            <li><a href="../">Try other WebAR demos</a></li>
54
-        </ul>
55
-
56
-        <h2>QR code</h2>
57
-        <img src="qr-code.gif" alt="QR code" class="qr-code">
58
-
59
-        <h2>Share</h2>
60
-        <p>This experience is powered by <a href="https://alemart.github.io/encantar-js" target="_blank">encantar.js: GPU-accelerated Augmented Reality for the web</a>.</p>
61
-        <div>
62
-            <a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Falemart.github.io/encantar-js&quote=%23encantarjs" target="_blank" rel="external" class="button"><img src="../assets/facebook.png" alt="Share on Facebook"></a>
63
-            <a href="https://twitter.com/intent/tweet?url=https%3A%2F%2Falemart.github.io/encantar-js&hashtags=encantarjs" target="_blank" rel="external" class="button"><img src="../assets/twitter.png" alt="Share on X"></a>
64
-            <a href="https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Falemart.github.io/encantar-js" target="_blank" rel="external" class="button"><img src="../assets/linkedin.png" alt="Share on LinkedIn"></a>
65
-            <a href="https://wa.me/?text=https%3A%2F%2Falemart.github.io/encantar-js" target="_blank" rel="external" class="button"><img src="../assets/whatsapp.png" alt="Share via WhatsApp"></a>
66
-            <a href="https://t.me/share/url?url=https%3A%2F%2Falemart.github.io/encantar-js" target="_blank" rel="external" class="button"><img src="../assets/telegram.png" alt="Share via Telegram"></a>
67
-            <a href="https://github.com/sponsors/alemart" target="_blank" rel="external"><img alt="GitHub Sponsors" src="https://img.shields.io/github/sponsors/alemart?style=for-the-badge&logo=github&label=Sponsor&labelColor=%237e56c2&color=%23ffd500"></a>
68
-        </div>
69
-    </body>
70
-</html>
71
-

+ 25
- 0
demos/pointer-demo/poster.html 파일 보기

@@ -0,0 +1,25 @@
1
+<!doctype html>
2
+<html>
3
+    <head>
4
+        <meta charset="utf-8">
5
+        <meta name="description" content="Demo of encantar.js, a GPU-accelerated Augmented Reality engine for the web">
6
+        <meta name="author" content="Alexandre Martins (alemart)">
7
+        <meta name="viewport" content="width=device-width,initial-scale=1">
8
+        <title>encantar.js WebAR pointer demo</title>
9
+        <link href="../assets/poster.css" rel="stylesheet">
10
+        <script data-goatcounter="https://encantar-js.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script>
11
+        <script src="../assets/poster.js"></script>
12
+    </head>
13
+    <body data-ar-images="mage.webp">
14
+        <nav>
15
+            <a id="prev" href="#"></a>
16
+            <a id="next" href="#"></a>
17
+            <a id="back" href="https://alemart.github.io/encantar-js" target="_blank" rel="external">Back to encantar.js</a>
18
+        </nav>
19
+        <section id="qr-code-area">
20
+            <h4>QR code</h4>
21
+            <a href="index.html" target="_blank"><img id="qr-code" src="qr-code.gif" alt="QR code"></a>
22
+            <small>Scan to begin!</small>
23
+        </section>
24
+    </body>
25
+</html>

+ 0
- 5
docs/demo.md 파일 보기

@@ -1,5 +0,0 @@
1
----
2
-template: demo.html
3
-title: ""
4
----
5
-

+ 2
- 71
docs/demos.md 파일 보기

@@ -1,73 +1,4 @@
1 1
 ---
2
-title: WebAR Demo gallery
3
-#hide:
4
-#  - navigation
2
+template: demos.html
3
+title: ""
5 4
 ---
6
-
7
-# Demo gallery
8
-
9
-!!! info "Guidelines"
10
-
11
-    For a good experience:
12
-
13
-    * Don't move the camera nor the target image too quickly. This produces motion blur.
14
-    * The target image should appear clearly in the video.
15
-    * The physical environment should be properly illuminated.
16
-    * If you're scanning the image on a screen, make sure to adjust the brightness. If the screen is too bright (too dark), it will cause overexposure (underexposure) in the video and tracking difficulties - details of the images will be lost. Screen reflections are also undesirable.
17
-    * If you print the image, avoid shiny materials (e.g., glossy paper). They may generate artifacts in the image and interfere with the tracking. Prefer non-reflective materials.
18
-    * Avoid low-quality cameras. Cameras of common smartphones are okay.
19
-
20
-## Basic demos
21
-
22
-### WebAR with A-Frame
23
-
24
-Create an augmented scene with [A-Frame](https://aframe.io){ ._blank }. For beginners - no knowledge of JavaScript is required!
25
-
26
-[Launch demo](/encantar-js/demos/hello-aframe/README.html){ ._blank .md-button }
27
-
28
-### WebAR with babylon.js
29
-
30
-Create an augmented scene with [babylon.js](https://www.babylonjs.com){ ._blank }.
31
-
32
-[Launch demo](/encantar-js/demos/hello-babylon/README.html){ ._blank .md-button }
33
-
34
-### WebAR with three.js
35
-
36
-Create an augmented scene with [three.js](https://threejs.org){ ._blank }.
37
-
38
-[Launch demo](/encantar-js/demos/hello-three/README.html){ ._blank .md-button }
39
-
40
-### WebAR template
41
-
42
-A template to help you create an augmented scene with any 3D framework.
43
-
44
-[Launch demo](/encantar-js/demos/hello-world/README.html){ ._blank .md-button }
45
-
46
-### WebAR with pure WebGL
47
-
48
-Create an augmented scene without a 3D framework.
49
-
50
-[Launch demo](/encantar-js/demos/hello-webgl/README.html){ ._blank .md-button }
51
-
52
-## Miscellaneous
53
-
54
-### Pointer-based input
55
-
56
-Learn how to work with pointer-based input such as touch and mouse.
57
-
58
-[Launch demo](/encantar-js/demos/pointer-demo/README.html){ ._blank .md-button }
59
-
60
-## Try locally
61
-
62
-* Run on a console:
63
-
64
-```sh
65
-repo=https://github.com/alemart/encantar-js.git
66
-tag=$(git ls-remote --refs --tags $repo | cut -d/ -f3 | sort -V | tail -n1)
67
-git clone $repo --branch $tag --depth 1
68
-cd encantar-js
69
-npm start
70
-```
71
-
72
-* Open [https://localhost:8000/demos/](https://localhost:8000/demos/)
73
-* Pick a demo and have fun!

+ 11
- 0
docs/faq.md 파일 보기

@@ -8,6 +8,17 @@ encantar.js is a standalone GPU-accelerated Augmented Reality engine for the web
8 8
 
9 9
 Refer to the [concepts](./getting-started/concepts.md).
10 10
 
11
+## What are your recommendations for WebAR?
12
+
13
+For a good experience with WebAR:
14
+
15
+* Don't move the camera nor the target image too quickly. This produces motion blur.
16
+* The target image should appear clearly in the video.
17
+* The physical environment should be properly illuminated.
18
+* If you're scanning the image on a screen, make sure to adjust the brightness. If the screen is too bright (too dark), it will cause overexposure (underexposure) in the video and tracking difficulties - details of the images will be lost. Screen reflections are also undesirable.
19
+* If you print the image, avoid shiny materials (e.g., glossy paper). They may generate artifacts in the image and interfere with the tracking. Prefer non-reflective materials.
20
+* Avoid low-quality cameras. Cameras of common smartphones are okay.
21
+
11 22
 ## Is this WebXR?
12 23
 
13 24
 No, encantar.js is not WebXR. The WebXR API allows you to access functionalities of VR and AR-capable devices in web browsers. It relies on other technologies, such as Google's ARCore or Apple's ARKit, to run the show. Those technologies are great, though they are supported on specific devices, which may or may not match your users' devices. On the other hand, encantar.js is fully standalone and is built from scratch using standard web technologies such as WebGL2 and WebAssembly, which are widely available. My intention is to give it broad compatibility.

+ 1
- 7
docs/getting-started/augment-the-scene.md 파일 보기

@@ -12,7 +12,7 @@ Once you pick a 3D rendering technology, you need to integrate it with encantar.
12 12
 
13 13
 Writing a plugin is a task of moderate complexity. It requires dealing with maths and with some idiosyncrasies of the 3D rendering technologies in order to make sure that it all works as intended. I provide easy-to-use plugins that work with different 3D rendering technologies, so that you don't need to deal with that complexity yourself. Plugins are shipped as JavaScript (.js) files. You just need to add a plugin to your web page, and then the integration will be done for you!
14 14
 
15
-[Get the plugins](https://github.com/alemart/encantar-js/tree/master/plugins){ .md-button .md-button--primary ._blank }
15
+[Get the plugins in the demos](/encantar-js/demos){ .md-button .md-button--primary ._blank }
16 16
 
17 17
 ## Create the virtual scene
18 18
 
@@ -26,20 +26,14 @@ Let me tell you more about the 3D rendering technologies I just mentioned.
26 26
 
27 27
 A-Frame is built on top of [Three.js](#threejs) and extends it in powerful ways. It introduces a HTML-based declarative approach for [scene graphs](https://en.wikipedia.org/wiki/Scene_graph){ ._blank }, empowering them with the [Entity-Component-System](https://en.wikipedia.org/wiki/Entity_component_system){ ._blank }, a software pattern commonly used in game development. A-Frame is easy for beginners and pleasing for experts. In many cases, writing JavaScript code is not needed.
28 28
 
29
-[Launch an A-Frame demo](/encantar-js/demos/hello-aframe/README.html){ ._blank .md-button }
30
-
31 29
 ### Babylon.js
32 30
 
33 31
 [Babylon.js](https://www.babylonjs.com){ ._blank } is a powerful open-source game and 3D rendering engine for the web. It includes pretty much all features you commonly find in 3D rendering engines (scene graphs, lights, materials, meshes, animations, etc.), plus systems that are specific to game engines (audio engine, collision system, physics system, support for sprites, etc.), plus all kinds of sophisticated features for various applications.
34 32
 
35 33
 Babylon.js has an amazing documentation with plenty of learning resources, as well as a helpful and friendly community! Even though it can be used by beginners, it's recommended to have experience with JavaScript before creating projects with it.
36 34
 
37
-[Launch a Babylon.js demo](/encantar-js/demos/hello-babylon/README.html){ ._blank .md-button }
38
-
39 35
 ### Three.js
40 36
 
41 37
 [Three.js](https://threejs.org){ ._blank } is a popular open-source JavaScript library used to render 3D graphics in web browsers. It has many features, including: scene graphs, cameras, animations, lights, materials, loading of 3D models, mathematical utilities, special effects, and more. It has an active and vibrant community. Many community-made extensions are available.
42 38
 
43 39
 Using Three.js requires more JavaScript experience than using A-Frame in most cases, but it's also a great choice if you're comfortable with coding. Compared to A-Frame, Three.js offers you additional freedom on how you can organize your code, because it's a library, not a framework.
44
-
45
-[Launch a Three.js demo](/encantar-js/demos/hello-three/README.html){ ._blank .md-button }

+ 8
- 9
docs/getting-started/index.md 파일 보기

@@ -2,24 +2,23 @@
2 2
 
3 3
 [![GitHub release (latest by date)](https://img.shields.io/github/v/release/alemart/encantar-js)](https://github.com/alemart/encantar-js/releases/) ![GitHub file size in bytes on a specified ref (branch/commit/tag)](https://img.shields.io/github/size/alemart/encantar-js/dist/encantar.min.js?branch=master&label=minified%20js) [![GitHub Repo stars](https://img.shields.io/github/stars/alemart/encantar-js?logo=github)](https://github.com/alemart/encantar-js/stargazers) [![GitHub Sponsors](https://img.shields.io/github/sponsors/alemart?logo=github)](https://github.com/sponsors/alemart/)
4 4
 
5
-Enchant your users with **encantar.js**, a GPU-accelerated Augmented Reality engine for the web.
5
+**encantar.js** is the Augmented Reality engine that will enchant you! GPU-accelerated, open-source and web-based!
6 6
 
7
-[:sparkles: Demos](../demos.md){ .md-button .md-button } [:books: Learn](./introduction.md){ .md-button } [:heart:{ .heart } Sponsor](../support-my-work.md){ .md-button }
7
+[:sparkles: Demos](../demos.md){ .md-button } [:books: Learn](./introduction.md){ .md-button } [:heart:{ .heart } Sponsor](../support-my-work.md){ .md-button }
8 8
 
9 9
 ## Features
10 10
 
11
-* **AR everywhere**: encantar.js runs on Android, on iOS, and even on Desktop computers! Only a modern web browser is required.
12
-* **Plugins**: use encantar.js with the 3D framework of your choice, including A-Frame, Babylon.js, Three.js and more!
13 11
 * **Image tracking**: track detailed images such as book covers, cartoons and photos. No need of manual training!
14 12
 * **Pointer tracking**: create interactive experiences based on touch, mouse and pen input with an easy-to-use API.
13
+* **Plugins**: use encantar.js with the 3D framework of your choice, including A-Frame, Babylon.js, Three.js and more!
15 14
 
16 15
 ## Why use encantar.js?
17 16
 
18
-* **Device-agnostic**: no need of AR-capable devices. encantar.js runs in all modern web browsers. It's AR built from scratch with computer vision.
19
-* **Fast and powerful**: encantar.js is GPU-accelerated. It uses WebGL2 and WebAssembly for turbocharged performance.
20
-* **No need to download apps**: encantar.js is a WebAR engine. Users can access the AR experiences immediately.
21
-* **Easy to get started**: encantar.js can be used with a `<script>` tag in your page. A static HTML page is enough to get started.
22
-* **Open-source**: what are you waiting for? [Try it now!](../demos.md)
17
+* **AR everywhere**: it runs on Android, on iOS, and even on Desktop computers! Only a modern web browser is required.
18
+* **Easy to use**: just load a static HTML page! No need of heavy app downloads, API keys, subscriptions or server-side stuff.
19
+* **Device-agnostic**: no need of AR-capable devices! encantar.js is AR built from scratch with computer vision!
20
+* **Fast & powerful**: encantar.js is GPU-accelerated. It uses WebGL2 and WebAssembly for turbocharged performance.
21
+* **Open source**: personal, professional and educational use is allowed.
23 22
 
24 23
 ## Browser compatibility
25 24
 

+ 0
- 11
docs_overrides/demo.html 파일 보기

@@ -1,11 +0,0 @@
1
-<!doctype html>
2
-<html>
3
-    <head>
4
-        <meta charset="utf-8">
5
-        <meta http-equiv="refresh" content="0; url='{{ 'demos/hello-webgl/README.html' | url }}'">
6
-        <title>encantar.js WebAR demo</title>
7
-    </head>
8
-    <body>
9
-        <p>Redirecting to <a href="{{ 'demos/hello-webgl/README.html' | url }}">{{ 'demos/hello-webgl/README.html' | url }}</a>...</p>
10
-    </body>
11
-</html>

+ 11
- 0
docs_overrides/demos.html 파일 보기

@@ -0,0 +1,11 @@
1
+<!doctype html>
2
+<html>
3
+    <head>
4
+        <meta charset="utf-8">
5
+        <meta http-equiv="refresh" content="0; url='https://ko-fi.com/alemart/shop'">
6
+        <title>encantar.js WebAR Demo gallery</title>
7
+    </head>
8
+    <body>
9
+        <p><a href="https://ko-fi.com/alemart/shop" rel="external">Redirecting</a>...</p>
10
+    </body>
11
+</html>

+ 2
- 2
docs_overrides/download.html 파일 보기

@@ -2,10 +2,10 @@
2 2
 <html>
3 3
     <head>
4 4
         <meta charset="utf-8">
5
-        <meta http-equiv="refresh" content="0; url='https://github.com/alemart/encantar-js/releases'">
5
+        <meta http-equiv="refresh" content="0; url='https://ko-fi.com/s/3ee4182cb6'">
6 6
         <title>Download encantar.js</title>
7 7
     </head>
8 8
     <body>
9
-        <p>Redirecting to <a href="https://github.com/alemart/encantar-js/releases">https://github.com/alemart/encantar-js/releases</a>...</p>
9
+        <p><a href="https://ko-fi.com/s/3ee4182cb6">Redirecting</a>...</p>
10 10
     </body>
11 11
 </html>

+ 1
- 2
mkdocs.yml 파일 보기

@@ -63,8 +63,7 @@ nav:
63 63
     - 'Support my work': 'support-my-work.md'
64 64
     - 'License': 'license.md'
65 65
   - 'Download': 'download.md'
66
-  - 'Demos':
67
-    - 'Demo gallery': 'demos.md'
66
+  - 'Demos': 'demos.md'
68 67
   - 'API':
69 68
     - 'General':
70 69
       - 'AR': 'api/ar.md'

Loading…
취소
저장