Преглед на файлове

Update to encantar.js

customisations
alemart преди 1 година
родител
ревизия
b27811123b
променени са 93 файла, в които са добавени 247 реда и са изтрити 26378 реда
  1. 1
    3
      CONTRIBUTING.md
  2. 13
    13
      README.md
  3. 10
    10
      demos/assets/aframe-with-encantar.js
  4. 12
    12
      demos/assets/three-with-encantar.js
  5. 2
    2
      demos/hello-aframe/NOTICE.html
  6. 6
    6
      demos/hello-aframe/README.html
  7. 0
    6
      demos/hello-aframe/demo.js
  8. 3
    3
      demos/hello-aframe/index.html
  9. 3
    3
      demos/hello-aframe/video.html
  10. 2
    2
      demos/hello-three/NOTICE.html
  11. 6
    6
      demos/hello-three/README.html
  12. 2
    8
      demos/hello-three/demo.js
  13. 3
    3
      demos/hello-three/index.html
  14. 3
    3
      demos/hello-three/video.html
  15. 2
    2
      demos/hello-webgl/NOTICE.html
  16. 6
    6
      demos/hello-webgl/README.html
  17. 1
    7
      demos/hello-webgl/demo.js
  18. 2
    2
      demos/hello-webgl/index.html
  19. 2
    2
      demos/hello-webgl/video.html
  20. 2
    2
      demos/hello-world/NOTICE.html
  21. 6
    6
      demos/hello-world/README.html
  22. 0
    6
      demos/hello-world/demo.js
  23. 2
    2
      demos/hello-world/index.html
  24. 2
    2
      demos/hello-world/video.html
  25. 2
    2
      demos/touch-three/NOTICE.html
  26. 6
    6
      demos/touch-three/README.html
  27. 2
    8
      demos/touch-three/demo.js
  28. 3
    3
      demos/touch-three/index.html
  29. 3
    3
      demos/touch-three/video.html
  30. 0
    26076
      dist/martins.js
  31. 0
    20
      dist/martins.min.js
  32. 2
    2
      docs/api/martins.md
  33. 1
    1
      docs/api/speedy-matrix.md
  34. 2
    2
      docs/api/speedy.md
  35. 7
    7
      docs/demos.md
  36. 5
    7
      docs/faq.md
  37. 6
    6
      docs/getting-started/activate-your-webcam.md
  38. 3
    3
      docs/getting-started/concepts.md
  39. 6
    6
      docs/getting-started/create-the-augmented-scene.md
  40. 11
    11
      docs/getting-started/index.md
  41. 3
    3
      docs/getting-started/next-steps.md
  42. 4
    4
      docs/getting-started/set-up-a-web-server.md
  43. 2
    2
      docs/getting-started/set-up-the-session.md
  44. 12
    12
      docs/getting-started/set-up-the-tracker.md
  45. Двоични данни
      docs/img/martins-icon.png
  46. 1
    1
      docs_overrides/demo.html
  47. 3
    3
      docs_overrides/download.html
  48. 1
    1
      docs_overrides/main.html
  49. 1
    1
      docs_overrides/partials/share.html
  50. 1
    1
      docs_overrides/support-my-work.html
  51. 4
    5
      mkdocs.yml
  52. 2
    2
      package-lock.json
  53. 5
    5
      package.json
  54. 1
    1
      src/core/frame.ts
  55. 1
    1
      src/core/gizmos.ts
  56. 1
    1
      src/core/hud.ts
  57. 2
    2
      src/core/session.ts
  58. 1
    1
      src/core/settings.ts
  59. 2
    2
      src/core/stats-panel.ts
  60. 1
    1
      src/core/stats.ts
  61. 1
    1
      src/core/time.ts
  62. 1
    1
      src/core/viewport.ts
  63. 1
    1
      src/geometry/camera-model.ts
  64. 1
    1
      src/geometry/pose.ts
  65. 1
    1
      src/geometry/transform.ts
  66. 1
    1
      src/geometry/view.ts
  67. 1
    1
      src/geometry/viewer-pose.ts
  68. 1
    1
      src/geometry/viewer.ts
  69. 9
    9
      src/main.ts
  70. 1
    1
      src/sources/camera-source.ts
  71. 1
    1
      src/sources/canvas-source.ts
  72. 1
    1
      src/sources/source-factory.ts
  73. 1
    1
      src/sources/source.ts
  74. 1
    1
      src/sources/video-source.ts
  75. 1
    1
      src/trackers/image-tracker/image-tracker-event.ts
  76. 1
    1
      src/trackers/image-tracker/image-tracker.ts
  77. 1
    1
      src/trackers/image-tracker/reference-image-database.ts
  78. 1
    1
      src/trackers/image-tracker/reference-image.ts
  79. 1
    1
      src/trackers/image-tracker/settings.ts
  80. 1
    1
      src/trackers/image-tracker/states/initial.ts
  81. 1
    1
      src/trackers/image-tracker/states/pre-tracking.ts
  82. 1
    1
      src/trackers/image-tracker/states/scanning.ts
  83. 1
    1
      src/trackers/image-tracker/states/state.ts
  84. 1
    1
      src/trackers/image-tracker/states/tracking.ts
  85. 1
    1
      src/trackers/image-tracker/states/training.ts
  86. 1
    1
      src/trackers/tracker-factory.ts
  87. 1
    1
      src/trackers/tracker.ts
  88. 1
    1
      src/utils/ar-events.ts
  89. 1
    1
      src/utils/asap.ts
  90. 1
    1
      src/utils/errors.ts
  91. 1
    1
      src/utils/resolution.ts
  92. 4
    4
      src/utils/utils.ts
  93. 6
    6
      webpack.config.js

+ 1
- 3
CONTRIBUTING.md Целия файл

@@ -1,8 +1,6 @@
1 1
 # How to contribute
2 2
 
3
-Thank you for your interest in contributing to MARTINS.js! 👍
4
-
5
-In order to contribute to MARTINS.js, you must certify that you have the right to submit your contribution according to the [Developer Certificate of Origin (DCO)](https://developercertificate.org). Each commit must include a `Signed-off-by` line at the end of the commit message, as in the template below:
3
+Please certify that you have the right to submit your contribution according to the [Developer Certificate of Origin (DCO)](https://developercertificate.org). Each commit must include a `Signed-off-by` line at the end of the commit message, as in the template below:
6 4
 
7 5
 ```
8 6
 Signed-off-by: Your Name <your.email@addr.es>

+ 13
- 13
README.md Целия файл

@@ -1,10 +1,10 @@
1
-# MARTINS.js WebAR engine
1
+# encantAR.js WebAR engine
2 2
 
3
-[![GitHub release (latest by date)](https://img.shields.io/github/v/release/alemart/martins-js)](https://github.com/alemart/martins-js/releases/) ![GitHub file size in bytes on a specified ref (branch/commit/tag)](https://img.shields.io/github/size/alemart/martins-js/dist/martins.min.js?branch=master&label=minified%20js) [![GitHub Repo stars](https://img.shields.io/github/stars/alemart/martins-js?logo=github)](https://github.com/alemart/martins-js/stargazers) [![GitHub Sponsors](https://img.shields.io/github/sponsors/alemart?logo=github)](https://github.com/sponsors/alemart/)
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
-Create amazing Augmented Reality experiences with **MARTINS.js**, a GPU-accelerated Augmented Reality engine for the web.
5
+Create amazing Augmented Reality experiences with **encantAR.js**, a GPU-accelerated Augmented Reality engine for the web.
6 6
 
7
-:books: Documentation: <https://alemart.github.io/martins-js/>
7
+:books: Documentation: <https://alemart.github.io/encantar-js/>
8 8
 
9 9
 ## Features
10 10
 
@@ -13,7 +13,7 @@ Create amazing Augmented Reality experiences with **MARTINS.js**, a GPU-accelera
13 13
 
14 14
 ## Try a demo
15 15
 
16
-:arrow_right: [Launch now!](https://alemart.github.io/martins-js/demo)
16
+:arrow_right: [Launch now!](https://alemart.github.io/encantar-js/demo)
17 17
 
18 18
 >
19 19
 > **Guidelines:**
@@ -23,17 +23,17 @@ Create amazing Augmented Reality experiences with **MARTINS.js**, a GPU-accelera
23 23
 > * The physical environment should be properly illuminated.
24 24
 >
25 25
 
26
-## Why use MARTINS.js?
26
+## Why use encantAR.js?
27 27
 
28
-* **No need to download apps!** MARTINS.js is a WebAR engine: it runs in web browsers. Users can access the AR experiences immediately.
29
-* **Easy to get started!** MARTINS.js can be used with a `<script>` tag in your page. A static HTML page is enough to get started.
30
-* **Fast and powerful!** MARTINS.js is GPU-accelerated. It uses WebGL2 and WebAssembly for turbocharged performance.
31
-* **Fully standalone!** MARTINS.js is built from scratch using standard web technologies. No need for additional hardware or software!
28
+* **No need to download apps!** encantAR.js is a WebAR engine: it runs in web browsers. Users can access the AR experiences immediately.
29
+* **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.
30
+* **Fast and powerful!** encantAR.js is GPU-accelerated. It uses WebGL2 and WebAssembly for turbocharged performance.
31
+* **Fully standalone!** encantAR.js is built from scratch using standard web technologies. No need for additional hardware or software!
32 32
 * **Free and open-source!** Get started right away!
33 33
 
34 34
 ## Browser compatibility
35 35
 
36
-MARTINS.js is compatible with all major web browsers:
36
+encantAR.js is compatible with all major web browsers:
37 37
 
38 38
 | Chrome | Edge | Firefox | Opera | Safari* |
39 39
 | ------ | ---- | ------- | ----- | ------- |
@@ -41,8 +41,8 @@ MARTINS.js is compatible with all major web browsers:
41 41
 
42 42
 \* use Safari 15.2 or later.
43 43
 
44
-MARTINS.js requires WebGL2 and WebAssembly.
44
+encantAR.js requires WebGL2 and WebAssembly.
45 45
 
46 46
 ## About
47 47
 
48
-MARTINS.js is developed by [Alexandre Martins](https://github.com/alemart) and released under the [LGPL](LICENSE.md). It is based on [Speedy Vision](https://github.com/alemart/speedy-vision).
48
+encantAR.js is developed by [Alexandre Martins](https://github.com/alemart) and released under the [LGPL](LICENSE.md). It is based on [Speedy Vision](https://github.com/alemart/speedy-vision).

demos/assets/aframe-with-martins.js → demos/assets/aframe-with-encantar.js Целия файл

@@ -1,20 +1,20 @@
1 1
 /**
2
- * @file MARTINS.js & AFRAME glue code
2
+ * @file aframe plugin for encantar.js
3 3
  * @author Alexandre Martins (https://github.com/alemart)
4 4
  * @license LGPL-3.0-or-later
5 5
  */
6 6
 
7 7
 /* Usage of the indicated versions is encouraged */
8
-__THIS_GLUE_CODE_HAS_BEEN_TESTED_WITH__({
9
-    'MARTINS.js': { version: '0.2.0' },
10
-        'AFRAME': { version: '1.4.2' }
8
+__THIS_PLUGIN_HAS_BEEN_TESTED_WITH__({
9
+    'encantar.js': { version: '0.2.0' },
10
+         'aframe': { version: '1.4.2' }
11 11
 });
12 12
 
13 13
 /**
14
- * Connect MARTINS.js to AFRAME
14
+ * Connect encantar.js to aframe
15 15
  * @param {(canvas: HTMLCanvasElement) => Promise<Session> | SpeedyPromise<Session>} startARSession
16 16
  */
17
-function linkMartinsToAFRAME(startARSession)
17
+function encantar(startARSession)
18 18
 {
19 19
     AFRAME.registerSystem('ar-system', {
20 20
         init()
@@ -218,7 +218,7 @@ function linkMartinsToAFRAME(startARSession)
218 218
 
219 219
 // Start automatically
220 220
 if(typeof startARSession === 'function')
221
-    linkMartinsToAFRAME(startARSession);
221
+    encantar(startARSession);
222 222
 else
223 223
     alert('Missing startARSession');
224 224
 
@@ -226,11 +226,11 @@ else
226 226
  * Version check
227 227
  * @param {object} json
228 228
  */
229
-function __THIS_GLUE_CODE_HAS_BEEN_TESTED_WITH__(json)
229
+function __THIS_PLUGIN_HAS_BEEN_TESTED_WITH__(json)
230 230
 {
231 231
     try { Martins, AFRAME;
232
-    const versionOf = { 'MARTINS.js': Martins.version.replace(/-.*$/, ''), 'AFRAME': AFRAME.version };
233
-    const check = (x,v,w) => v !== w ? console.warn(`\n\n\nWARNING\n\nThis glue code has been tested with ${x} version ${v}. The version in use is ${w}. Usage of ${x} version ${v} is recommended instead.\n\n\n`) : void 0;
232
+    const versionOf = { 'encantar.js': Martins.version.replace(/-.*$/, ''), 'aframe': AFRAME.version };
233
+    const check = (x,v,w) => v !== w ? console.warn(`\n\n\nWARNING\n\nThis plugin has been tested with ${x} version ${v}. The version in use is ${w}. Usage of ${x} version ${v} is recommended instead.\n\n\n`) : void 0;
234 234
     for(const [x, expected] of Object.entries(json)) check(x, expected.version, versionOf[x]);
235 235
     } catch(e) { alert(e.message); }
236 236
 }

demos/assets/three-with-martins.js → demos/assets/three-with-encantar.js Целия файл

@@ -1,35 +1,35 @@
1 1
 /**
2
- * @file MARTINS.js & THREE.js glue code
2
+ * @file three.js plugin for encantar.js
3 3
  * @author Alexandre Martins (https://github.com/alemart)
4 4
  * @license LGPL-3.0-or-later
5 5
  */
6 6
 
7 7
 /* Usage of the indicated versions is encouraged */
8
-__THIS_GLUE_CODE_HAS_BEEN_TESTED_WITH__({
9
-    'MARTINS.js': { version: '0.2.0' },
10
-      'THREE.js': { version: '147' }
8
+__THIS_PLUGIN_HAS_BEEN_TESTED_WITH__({
9
+    'encantar.js': { version: '0.2.1' },
10
+       'three.js': { version: '147' }
11 11
 });
12 12
 
13 13
 /**
14 14
  * Use this object to create your augmented scene
15 15
  * @typedef {object} ARSystem
16
- * @property {Session} session MARTINS.js Session
16
+ * @property {Session} session AR Session
17 17
  * @property {Frame} frame current Frame
18 18
  * @property {ReferenceImage | null} referenceImage corresponds to the target being tracked (if any)
19
- * @property {THREE.Scene} scene THREE.js Scene
19
+ * @property {THREE.Scene} scene three.js Scene
20 20
  * @property {THREE.Group} root a 3D object that is automatically aligned with the physical target
21 21
  * @property {THREE.Camera} camera a camera adjusted for AR
22
- * @property {THREE.WebGLRenderer} renderer THREE.js renderer
22
+ * @property {THREE.WebGLRenderer} renderer three.js renderer
23 23
  */
24 24
 
25 25
 /**
26
- * Connect MARTINS.js to THREE.js
26
+ * Connect encantar.js to three.js
27 27
  * @param {() => Promise<Session> | SpeedyPromise<Session>} startARSession
28 28
  * @param {(ar: ARSystem) => void} [animateVirtualScene] animation callback
29 29
  * @param {(ar: ARSystem) => void | Promise<void> | SpeedyPromise<Session>} [initializeVirtualScene] initialization callback
30 30
  * @returns {Promise<ARSystem> | SpeedyPromise<ARSystem>}
31 31
  */
32
-function linkMartinsToTHREE(startARSession, animateVirtualScene, initializeVirtualScene)
32
+function encantar(startARSession, animateVirtualScene, initializeVirtualScene)
33 33
 {
34 34
     const ar = /** @type {ARSystem} */ ({
35 35
         session: null,
@@ -144,12 +144,12 @@ function linkMartinsToTHREE(startARSession, animateVirtualScene, initializeVirtu
144 144
  * Version check
145 145
  * @param {object} json
146 146
  */
147
-function __THIS_GLUE_CODE_HAS_BEEN_TESTED_WITH__(json)
147
+function __THIS_PLUGIN_HAS_BEEN_TESTED_WITH__(json)
148 148
 {
149 149
     window.addEventListener('load', () => {
150 150
     try { Martins, __THREE__;
151
-    const versionOf = { 'MARTINS.js': Martins.version.replace(/-.*$/, ''), 'THREE.js': __THREE__ };
152
-    const check = (x,v,w) => v !== w ? console.warn(`\n\n\nWARNING\n\nThis glue code has been tested with ${x} version ${v}. The version in use is ${w}. Usage of ${x} version ${v} is recommended instead.\n\n\n`) : void 0;
151
+    const versionOf = { 'encantar.js': Martins.version.replace(/-.*$/, ''), 'three.js': __THREE__ };
152
+    const check = (x,v,w) => v !== w ? console.warn(`\n\n\nWARNING\n\nThis plugin has been tested with ${x} version ${v}. The version in use is ${w}. Usage of ${x} version ${v} is recommended instead.\n\n\n`) : void 0;
153 153
     for(const [x, expected] of Object.entries(json)) check(x, expected.version, versionOf[x]);
154 154
     } catch(e) { alert(e.message); }
155 155
     });

+ 2
- 2
demos/hello-aframe/NOTICE.html Целия файл

@@ -17,10 +17,10 @@
17 17
         <p>This application contains free and open-source software and this page sets forth the corresponding attribution notices.</p>
18 18
         <ol>
19 19
             <li>
20
-                MARTINS.js: GPU-accelerated Augmented Reality for the web<br>
20
+                encantAR.js: GPU-accelerated Augmented Reality for the web<br>
21 21
                 Copyright &copy; 2022-present Alexandre Martins<br>
22 22
                 License: <a href="#lgpl">GNU Lesser General Public License, version 3</a><br>
23
-                <a href="https://github.com/alemart/martins-js" target="_blank" rel="external">https://github.com/alemart/martins-js</a>
23
+                <a href="https://github.com/alemart/encantar-js" target="_blank" rel="external">https://github.com/alemart/encantar-js</a>
24 24
             </li>
25 25
             <li>
26 26
                 Speedy Vision: GPU-accelerated Computer Vision for JavaScript<br>

+ 6
- 6
demos/hello-aframe/README.html Целия файл

@@ -2,7 +2,7 @@
2 2
 <html>
3 3
     <head>
4 4
         <meta charset="utf-8">
5
-        <title>MARTINS.js WebAR demo with A-Frame</title>
5
+        <title>encantAR.js WebAR demo with A-Frame</title>
6 6
         <style>
7 7
         li + li {
8 8
             margin-top: 1em;
@@ -42,12 +42,12 @@
42 42
         <img src="qr-code.gif" alt="QR code" class="qr-code">
43 43
 
44 44
         <h2>Share</h2>
45
-        <p>This application is powered by <a href="https://alemart.github.io/martins-js" target="_blank">MARTINS.js: GPU-accelerated Augmented Reality for the web</a>.</p>
45
+        <p>This application is powered by <a href="https://alemart.github.io/encantar-js" target="_blank">encantAR.js: GPU-accelerated Augmented Reality for the web</a>.</p>
46 46
         <div>
47
-            <a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Falemart.github.io/martins-js&quote=%23martins-js" target="_blank" rel="external" class="button"><img src="../assets/facebook.png" alt="Share on Facebook"></a>
48
-            <a href="https://twitter.com/intent/tweet?url=https%3A%2F%2Falemart.github.io/martins-js&hashtags=martins-js" target="_blank" rel="external" class="button"><img src="../assets/twitter.png" alt="Share on X"></a>
49
-            <a href="https://wa.me/?text=https%3A%2F%2Falemart.github.io/martins-js" target="_blank" rel="external" class="button"><img src="../assets/whatsapp.png" alt="Share via WhatsApp"></a>
50
-            <a href="https://t.me/share/url?url=https%3A%2F%2Falemart.github.io/martins-js" target="_blank" rel="external" class="button"><img src="../assets/telegram.png" alt="Share via Telegram"></a>
47
+            <a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Falemart.github.io/encantar-js&quote=%23encantar-js" target="_blank" rel="external" class="button"><img src="../assets/facebook.png" alt="Share on Facebook"></a>
48
+            <a href="https://twitter.com/intent/tweet?url=https%3A%2F%2Falemart.github.io/encantar-js&hashtags=encantar-js" target="_blank" rel="external" class="button"><img src="../assets/twitter.png" alt="Share on X"></a>
49
+            <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>
50
+            <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>
51 51
         </div>
52 52
     </body>
53 53
 </html>

+ 0
- 6
demos/hello-aframe/demo.js Целия файл

@@ -1,9 +1,3 @@
1
-/**
2
- * @file MARTINS.js WebAR demo with A-Frame
3
- * @author Alexandre Martins (https://github.com/alemart)
4
- * @license LGPL-3.0-or-later
5
- */
6
-
7 1
 async function startARSession(canvas)
8 2
 {
9 3
     if(!Martins.isSupported()) {

+ 3
- 3
demos/hello-aframe/index.html Целия файл

@@ -3,13 +3,13 @@
3 3
     <head>
4 4
         <meta charset="utf-8">
5 5
         <meta name="viewport" content="width=device-width,initial-scale=1">
6
-        <title>MARTINS.js WebAR demo with A-Frame</title>
6
+        <title>encantAR.js WebAR demo with A-Frame</title>
7 7
         <link href="demo.css" rel="stylesheet">
8
-        <script src="../../dist/martins.min.js"></script>
8
+        <script src="../../dist/encantar.min.js"></script>
9 9
         <script src="https://cdn.jsdelivr.net/npm/aframe@1.4.2/dist/aframe-v1.4.2.min.js"></script>
10 10
         <script src="../assets/aframe-particle-system-component.min.js"></script>
11 11
         <script src="demo.js"></script>
12
-        <script src="../assets/aframe-with-martins.js"></script>
12
+        <script src="../assets/aframe-with-encantar.js"></script>
13 13
     </head>
14 14
     <body>
15 15
         <div id="ar-viewport">

+ 3
- 3
demos/hello-aframe/video.html Целия файл

@@ -3,13 +3,13 @@
3 3
     <head>
4 4
         <meta charset="utf-8">
5 5
         <meta name="viewport" content="width=device-width,initial-scale=1">
6
-        <title>MARTINS.js WebAR demo with A-Frame</title>
6
+        <title>encantAR.js WebAR demo with A-Frame</title>
7 7
         <link href="demo.css" rel="stylesheet">
8
-        <script src="../../dist/martins.min.js"></script>
8
+        <script src="../../dist/encantar.min.js"></script>
9 9
         <script src="https://cdn.jsdelivr.net/npm/aframe@1.4.2/dist/aframe-v1.4.2.min.js"></script>
10 10
         <script src="../assets/aframe-particle-system-component.min.js"></script>
11 11
         <script src="demo.js"></script>
12
-        <script src="../assets/aframe-with-martins.js"></script>
12
+        <script src="../assets/aframe-with-encantar.js"></script>
13 13
     </head>
14 14
     <body>
15 15
         <div id="ar-viewport">

+ 2
- 2
demos/hello-three/NOTICE.html Целия файл

@@ -17,10 +17,10 @@
17 17
         <p>This application contains free and open-source software and this page sets forth the corresponding attribution notices.</p>
18 18
         <ol>
19 19
             <li>
20
-                MARTINS.js: GPU-accelerated Augmented Reality for the web<br>
20
+                encantAR.js: GPU-accelerated Augmented Reality for the web<br>
21 21
                 Copyright &copy; 2022-present Alexandre Martins<br>
22 22
                 License: <a href="#lgpl">GNU Lesser General Public License, version 3</a><br>
23
-                <a href="https://github.com/alemart/martins-js" target="_blank" rel="external">https://github.com/alemart/martins-js</a>
23
+                <a href="https://github.com/alemart/encantar-js" target="_blank" rel="external">https://github.com/alemart/encantar-js</a>
24 24
             </li>
25 25
             <li>
26 26
                 Speedy Vision: GPU-accelerated Computer Vision for JavaScript<br>

+ 6
- 6
demos/hello-three/README.html Целия файл

@@ -2,7 +2,7 @@
2 2
 <html>
3 3
     <head>
4 4
         <meta charset="utf-8">
5
-        <title>MARTINS.js WebAR demo with three.js</title>
5
+        <title>encantAR.js WebAR demo with three.js</title>
6 6
         <style>
7 7
         li + li {
8 8
             margin-top: 1em;
@@ -42,12 +42,12 @@
42 42
         <img src="qr-code.gif" alt="QR code" class="qr-code">
43 43
 
44 44
         <h2>Share</h2>
45
-        <p>This application is powered by <a href="https://alemart.github.io/martins-js" target="_blank">MARTINS.js: GPU-accelerated Augmented Reality for the web</a>.</p>
45
+        <p>This application is powered by <a href="https://alemart.github.io/encantar-js" target="_blank">encantAR.js: GPU-accelerated Augmented Reality for the web</a>.</p>
46 46
         <div>
47
-            <a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Falemart.github.io/martins-js&quote=%23martins-js" target="_blank" rel="external" class="button"><img src="../assets/facebook.png" alt="Share on Facebook"></a>
48
-            <a href="https://twitter.com/intent/tweet?url=https%3A%2F%2Falemart.github.io/martins-js&hashtags=martins-js" target="_blank" rel="external" class="button"><img src="../assets/twitter.png" alt="Share on X"></a>
49
-            <a href="https://wa.me/?text=https%3A%2F%2Falemart.github.io/martins-js" target="_blank" rel="external" class="button"><img src="../assets/whatsapp.png" alt="Share via WhatsApp"></a>
50
-            <a href="https://t.me/share/url?url=https%3A%2F%2Falemart.github.io/martins-js" target="_blank" rel="external" class="button"><img src="../assets/telegram.png" alt="Share via Telegram"></a>
47
+            <a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Falemart.github.io/encantar-js&quote=%23encantar-js" target="_blank" rel="external" class="button"><img src="../assets/facebook.png" alt="Share on Facebook"></a>
48
+            <a href="https://twitter.com/intent/tweet?url=https%3A%2F%2Falemart.github.io/encantar-js&hashtags=encantar-js" target="_blank" rel="external" class="button"><img src="../assets/twitter.png" alt="Share on X"></a>
49
+            <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>
50
+            <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>
51 51
         </div>
52 52
     </body>
53 53
 </html>

+ 2
- 8
demos/hello-three/demo.js Целия файл

@@ -1,9 +1,3 @@
1
-/**
2
- * @file MARTINS.js WebAR demo with three.js
3
- * @author Alexandre Martins (https://github.com/alemart)
4
- * @license LGPL-3.0-or-later
5
- */
6
-
7 1
 window.addEventListener('load', () => {
8 2
 
9 3
     const my = { };
@@ -157,7 +151,7 @@ window.addEventListener('load', () => {
157 151
         return session;
158 152
     }
159 153
 
160
-    // link MARTINS.js to THREE.js
161
-    linkMartinsToTHREE(startARSession, animate, initialize);
154
+    // enchant!
155
+    encantar(startARSession, animate, initialize);
162 156
 
163 157
 });

+ 3
- 3
demos/hello-three/index.html Целия файл

@@ -3,12 +3,12 @@
3 3
     <head>
4 4
         <meta charset="utf-8">
5 5
         <meta name="viewport" content="width=device-width,initial-scale=1">
6
-        <title>MARTINS.js WebAR demo with three.js</title>
6
+        <title>encantAR.js WebAR demo with three.js</title>
7 7
         <link href="demo.css" rel="stylesheet">
8
-        <script src="../../dist/martins.min.js"></script>
8
+        <script src="../../dist/encantar.min.js"></script>
9 9
         <script src="https://cdn.jsdelivr.net/npm/three@0.147.0/build/three.min.js"></script>
10 10
         <script src="https://cdn.jsdelivr.net/npm/three@0.147.0/examples/js/loaders/GLTFLoader.js"></script>
11
-        <script src="../assets/three-with-martins.js"></script>
11
+        <script src="../assets/three-with-encantar.js"></script>
12 12
         <script src="demo.js"></script>
13 13
     </head>
14 14
     <body>

+ 3
- 3
demos/hello-three/video.html Целия файл

@@ -3,12 +3,12 @@
3 3
     <head>
4 4
         <meta charset="utf-8">
5 5
         <meta name="viewport" content="width=device-width,initial-scale=1">
6
-        <title>MARTINS.js WebAR demo with three.js</title>
6
+        <title>encantAR.js WebAR demo with three.js</title>
7 7
         <link href="demo.css" rel="stylesheet">
8
-        <script src="../../dist/martins.min.js"></script>
8
+        <script src="../../dist/encantar.min.js"></script>
9 9
         <script src="https://cdn.jsdelivr.net/npm/three@0.147.0/build/three.min.js"></script>
10 10
         <script src="https://cdn.jsdelivr.net/npm/three@0.147.0/examples/js/loaders/GLTFLoader.js"></script>
11
-        <script src="../assets/three-with-martins.js"></script>
11
+        <script src="../assets/three-with-encantar.js"></script>
12 12
         <script src="demo.js"></script>
13 13
     </head>
14 14
     <body>

+ 2
- 2
demos/hello-webgl/NOTICE.html Целия файл

@@ -17,10 +17,10 @@
17 17
         <p>This application contains free and open-source software and this page sets forth the corresponding attribution notices.</p>
18 18
         <ol>
19 19
             <li>
20
-                MARTINS.js: GPU-accelerated Augmented Reality for the web<br>
20
+                encantAR.js: GPU-accelerated Augmented Reality for the web<br>
21 21
                 Copyright &copy; 2022-present Alexandre Martins<br>
22 22
                 License: <a href="#lgpl">GNU Lesser General Public License, version 3</a><br>
23
-                <a href="https://github.com/alemart/martins-js" target="_blank" rel="external">https://github.com/alemart/martins-js</a>
23
+                <a href="https://github.com/alemart/encantar-js" target="_blank" rel="external">https://github.com/alemart/encantar-js</a>
24 24
             </li>
25 25
             <li>
26 26
                 Speedy Vision: GPU-accelerated Computer Vision for JavaScript<br>

+ 6
- 6
demos/hello-webgl/README.html Целия файл

@@ -2,7 +2,7 @@
2 2
 <html>
3 3
     <head>
4 4
         <meta charset="utf-8">
5
-        <title>MARTINS.js WebAR demo with WebGL</title>
5
+        <title>encantAR.js WebAR demo with WebGL</title>
6 6
         <style>
7 7
         li + li {
8 8
             margin-top: 1em;
@@ -42,12 +42,12 @@
42 42
         <img src="qr-code.gif" alt="QR code" class="qr-code">
43 43
 
44 44
         <h2>Share</h2>
45
-        <p>This application is powered by <a href="https://alemart.github.io/martins-js" target="_blank">MARTINS.js: GPU-accelerated Augmented Reality for the web</a>.</p>
45
+        <p>This application is powered by <a href="https://alemart.github.io/encantar-js" target="_blank">encantAR.js: GPU-accelerated Augmented Reality for the web</a>.</p>
46 46
         <div>
47
-            <a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Falemart.github.io/martins-js&quote=%23martins-js" target="_blank" rel="external" class="button"><img src="../assets/facebook.png" alt="Share on Facebook"></a>
48
-            <a href="https://twitter.com/intent/tweet?url=https%3A%2F%2Falemart.github.io/martins-js&hashtags=martins-js" target="_blank" rel="external" class="button"><img src="../assets/twitter.png" alt="Share on X"></a>
49
-            <a href="https://wa.me/?text=https%3A%2F%2Falemart.github.io/martins-js" target="_blank" rel="external" class="button"><img src="../assets/whatsapp.png" alt="Share via WhatsApp"></a>
50
-            <a href="https://t.me/share/url?url=https%3A%2F%2Falemart.github.io/martins-js" target="_blank" rel="external" class="button"><img src="../assets/telegram.png" alt="Share via Telegram"></a>
47
+            <a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Falemart.github.io/encantar-js&quote=%23encantar-js" target="_blank" rel="external" class="button"><img src="../assets/facebook.png" alt="Share on Facebook"></a>
48
+            <a href="https://twitter.com/intent/tweet?url=https%3A%2F%2Falemart.github.io/encantar-js&hashtags=encantar-js" target="_blank" rel="external" class="button"><img src="../assets/twitter.png" alt="Share on X"></a>
49
+            <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>
50
+            <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>
51 51
         </div>
52 52
     </body>
53 53
 </html>

+ 1
- 7
demos/hello-webgl/demo.js Целия файл

@@ -1,9 +1,3 @@
1
-/**
2
- * @file MARTINS.js WebAR demo with WebGL
3
- * @author Alexandre Martins (https://github.com/alemart)
4
- * @license LGPL-3.0-or-later
5
- */
6
-
7 1
 /*
8 2
 
9 3
 Note:
@@ -842,7 +836,7 @@ class WingMan extends Sprite
842 836
 
843 837
 /*
844 838
 
845
-MARTINS.js + WebGL code:
839
+encantar.js + WebGL code:
846 840
 
847 841
 */
848 842
 

+ 2
- 2
demos/hello-webgl/index.html Целия файл

@@ -3,9 +3,9 @@
3 3
     <head>
4 4
         <meta charset="utf-8">
5 5
         <meta name="viewport" content="width=device-width,initial-scale=1">
6
-        <title>MARTINS.js WebAR demo with WebGL</title>
6
+        <title>encantAR.js WebAR demo with WebGL</title>
7 7
         <link href="demo.css" rel="stylesheet">
8
-        <script src="../../dist/martins.min.js"></script>
8
+        <script src="../../dist/encantar.min.js"></script>
9 9
         <script src="demo.js"></script>
10 10
     </head>
11 11
     <body>

+ 2
- 2
demos/hello-webgl/video.html Целия файл

@@ -3,9 +3,9 @@
3 3
     <head>
4 4
         <meta charset="utf-8">
5 5
         <meta name="viewport" content="width=device-width,initial-scale=1">
6
-        <title>MARTINS.js WebAR demo with WebGL</title>
6
+        <title>encantAR.js WebAR demo with WebGL</title>
7 7
         <link href="demo.css" rel="stylesheet">
8
-        <script src="../../dist/martins.min.js"></script>
8
+        <script src="../../dist/encantar.min.js"></script>
9 9
         <script src="demo.js"></script>
10 10
     </head>
11 11
     <body>

+ 2
- 2
demos/hello-world/NOTICE.html Целия файл

@@ -17,10 +17,10 @@
17 17
         <p>This application contains free and open-source software and this page sets forth the corresponding attribution notices.</p>
18 18
         <ol>
19 19
             <li>
20
-                MARTINS.js: GPU-accelerated Augmented Reality for the web<br>
20
+                encantAR.js: GPU-accelerated Augmented Reality for the web<br>
21 21
                 Copyright &copy; 2022-present Alexandre Martins<br>
22 22
                 License: <a href="#lgpl">GNU Lesser General Public License, version 3</a><br>
23
-                <a href="https://github.com/alemart/martins-js" target="_blank" rel="external">https://github.com/alemart/martins-js</a>
23
+                <a href="https://github.com/alemart/encantar-js" target="_blank" rel="external">https://github.com/alemart/encantar-js</a>
24 24
             </li>
25 25
             <li>
26 26
                 Speedy Vision: GPU-accelerated Computer Vision for JavaScript<br>

+ 6
- 6
demos/hello-world/README.html Целия файл

@@ -2,7 +2,7 @@
2 2
 <html>
3 3
     <head>
4 4
         <meta charset="utf-8">
5
-        <title>MARTINS.js WebAR template</title>
5
+        <title>encantAR.js WebAR template</title>
6 6
         <style>
7 7
         li + li {
8 8
             margin-top: 1em;
@@ -42,12 +42,12 @@
42 42
         <img src="qr-code.gif" alt="QR code" class="qr-code">
43 43
 
44 44
         <h2>Share</h2>
45
-        <p>This application is powered by <a href="https://alemart.github.io/martins-js" target="_blank">MARTINS.js: GPU-accelerated Augmented Reality for the web</a>.</p>
45
+        <p>This application is powered by <a href="https://alemart.github.io/encantar-js" target="_blank">encantAR.js: GPU-accelerated Augmented Reality for the web</a>.</p>
46 46
         <div>
47
-            <a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Falemart.github.io/martins-js&quote=%23martins-js" target="_blank" rel="external" class="button"><img src="../assets/facebook.png" alt="Share on Facebook"></a>
48
-            <a href="https://twitter.com/intent/tweet?url=https%3A%2F%2Falemart.github.io/martins-js&hashtags=martins-js" target="_blank" rel="external" class="button"><img src="../assets/twitter.png" alt="Share on X"></a>
49
-            <a href="https://wa.me/?text=https%3A%2F%2Falemart.github.io/martins-js" target="_blank" rel="external" class="button"><img src="../assets/whatsapp.png" alt="Share via WhatsApp"></a>
50
-            <a href="https://t.me/share/url?url=https%3A%2F%2Falemart.github.io/martins-js" target="_blank" rel="external" class="button"><img src="../assets/telegram.png" alt="Share via Telegram"></a>
47
+            <a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Falemart.github.io/encantar-js&quote=%23encantar-js" target="_blank" rel="external" class="button"><img src="../assets/facebook.png" alt="Share on Facebook"></a>
48
+            <a href="https://twitter.com/intent/tweet?url=https%3A%2F%2Falemart.github.io/encantar-js&hashtags=encantar-js" target="_blank" rel="external" class="button"><img src="../assets/twitter.png" alt="Share on X"></a>
49
+            <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>
50
+            <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>
51 51
         </div>
52 52
     </body>
53 53
 </html>

+ 0
- 6
demos/hello-world/demo.js Целия файл

@@ -1,9 +1,3 @@
1
-/**
2
- * @file MARTINS.js WebAR template: Hello, world!
3
- * @author Alexandre Martins (https://github.com/alemart)
4
- * @license LGPL-3.0-or-later
5
- */
6
-
7 1
 window.addEventListener('load', async function() {
8 2
     try {
9 3
         const session = await startARSession();

+ 2
- 2
demos/hello-world/index.html Целия файл

@@ -3,9 +3,9 @@
3 3
     <head>
4 4
         <meta charset="utf-8">
5 5
         <meta name="viewport" content="width=device-width,initial-scale=1">
6
-        <title>MARTINS.js WebAR template</title>
6
+        <title>encantAR.js WebAR template</title>
7 7
         <link href="demo.css" rel="stylesheet">
8
-        <script src="../../dist/martins.min.js"></script>
8
+        <script src="../../dist/encantar.min.js"></script>
9 9
         <script src="demo.js"></script>
10 10
     </head>
11 11
     <body>

+ 2
- 2
demos/hello-world/video.html Целия файл

@@ -3,9 +3,9 @@
3 3
     <head>
4 4
         <meta charset="utf-8">
5 5
         <meta name="viewport" content="width=device-width,initial-scale=1">
6
-        <title>MARTINS.js WebAR template</title>
6
+        <title>encantAR.js WebAR template</title>
7 7
         <link href="demo.css" rel="stylesheet">
8
-        <script src="../../dist/martins.min.js"></script>
8
+        <script src="../../dist/encantar.min.js"></script>
9 9
         <script src="demo.js"></script>
10 10
     </head>
11 11
     <body>

+ 2
- 2
demos/touch-three/NOTICE.html Целия файл

@@ -17,10 +17,10 @@
17 17
         <p>This application contains free and open-source software and this page sets forth the corresponding attribution notices.</p>
18 18
         <ol>
19 19
             <li>
20
-                MARTINS.js: GPU-accelerated Augmented Reality for the web<br>
20
+                encantAR.js: GPU-accelerated Augmented Reality for the web<br>
21 21
                 Copyright &copy; 2022-present Alexandre Martins<br>
22 22
                 License: <a href="#lgpl">GNU Lesser General Public License, version 3</a><br>
23
-                <a href="https://github.com/alemart/martins-js" target="_blank" rel="external">https://github.com/alemart/martins-js</a>
23
+                <a href="https://github.com/alemart/encantar-js" target="_blank" rel="external">https://github.com/alemart/encantar-js</a>
24 24
             </li>
25 25
             <li>
26 26
                 Speedy Vision: GPU-accelerated Computer Vision for JavaScript<br>

+ 6
- 6
demos/touch-three/README.html Целия файл

@@ -2,7 +2,7 @@
2 2
 <html>
3 3
     <head>
4 4
         <meta charset="utf-8">
5
-        <title>MARTINS.js WebAR demo with three.js and touch interaction</title>
5
+        <title>encantAR.js WebAR demo with three.js and touch interaction</title>
6 6
         <style>
7 7
         li + li {
8 8
             margin-top: 1em;
@@ -42,12 +42,12 @@
42 42
         <img src="qr-code.gif" alt="QR code" class="qr-code">
43 43
 
44 44
         <h2>Share</h2>
45
-        <p>This application is powered by <a href="https://alemart.github.io/martins-js" target="_blank">MARTINS.js: GPU-accelerated Augmented Reality for the web</a>.</p>
45
+        <p>This application is powered by <a href="https://alemart.github.io/encantar-js" target="_blank">encantAR.js: GPU-accelerated Augmented Reality for the web</a>.</p>
46 46
         <div>
47
-            <a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Falemart.github.io/martins-js&quote=%23martins-js" target="_blank" rel="external" class="button"><img src="../assets/facebook.png" alt="Share on Facebook"></a>
48
-            <a href="https://twitter.com/intent/tweet?url=https%3A%2F%2Falemart.github.io/martins-js&hashtags=martins-js" target="_blank" rel="external" class="button"><img src="../assets/twitter.png" alt="Share on X"></a>
49
-            <a href="https://wa.me/?text=https%3A%2F%2Falemart.github.io/martins-js" target="_blank" rel="external" class="button"><img src="../assets/whatsapp.png" alt="Share via WhatsApp"></a>
50
-            <a href="https://t.me/share/url?url=https%3A%2F%2Falemart.github.io/martins-js" target="_blank" rel="external" class="button"><img src="../assets/telegram.png" alt="Share via Telegram"></a>
47
+            <a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Falemart.github.io/encantar-js&quote=%23encantar-js" target="_blank" rel="external" class="button"><img src="../assets/facebook.png" alt="Share on Facebook"></a>
48
+            <a href="https://twitter.com/intent/tweet?url=https%3A%2F%2Falemart.github.io/encantar-js&hashtags=encantar-js" target="_blank" rel="external" class="button"><img src="../assets/twitter.png" alt="Share on X"></a>
49
+            <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>
50
+            <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>
51 51
         </div>
52 52
     </body>
53 53
 </html>

+ 2
- 8
demos/touch-three/demo.js Целия файл

@@ -1,9 +1,3 @@
1
-/**
2
- * @file MARTINS.js WebAR demo with three.js and touch interaction
3
- * @author Alexandre Martins (https://github.com/alemart)
4
- * @license LGPL-3.0-or-later
5
- */
6
-
7 1
 window.addEventListener('load', () => {
8 2
 
9 3
     const my = { };
@@ -187,7 +181,7 @@ window.addEventListener('load', () => {
187 181
         return session;
188 182
     }
189 183
 
190
-    // link MARTINS.js to THREE.js
191
-    linkMartinsToTHREE(startARSession, animate, initialize);
184
+    // enchant!
185
+    encantar(startARSession, animate, initialize);
192 186
 
193 187
 });

+ 3
- 3
demos/touch-three/index.html Целия файл

@@ -3,13 +3,13 @@
3 3
     <head>
4 4
         <meta charset="utf-8">
5 5
         <meta name="viewport" content="width=device-width,initial-scale=1">
6
-        <title>MARTINS.js WebAR demo with three.js and touch interaction</title>
6
+        <title>encantAR.js WebAR demo with three.js and touch interaction</title>
7 7
         <link href="demo.css" rel="stylesheet">
8
-        <script src="../../dist/martins.min.js"></script>
8
+        <script src="../../dist/encantar.min.js"></script>
9 9
         <script src="https://cdn.jsdelivr.net/npm/three@0.147.0/build/three.min.js"></script>
10 10
         <script src="https://cdn.jsdelivr.net/npm/three@0.147.0/examples/js/loaders/FontLoader.js"></script>
11 11
         <script src="https://cdn.jsdelivr.net/npm/three@0.147.0/examples/js/geometries/TextGeometry.js"></script>
12
-        <script src="../assets/three-with-martins.js"></script>
12
+        <script src="../assets/three-with-encantar.js"></script>
13 13
         <script src="demo.js"></script>
14 14
     </head>
15 15
     <body>

+ 3
- 3
demos/touch-three/video.html Целия файл

@@ -3,13 +3,13 @@
3 3
     <head>
4 4
         <meta charset="utf-8">
5 5
         <meta name="viewport" content="width=device-width,initial-scale=1">
6
-        <title>MARTINS.js WebAR demo with three.js and touch interaction</title>
6
+        <title>encantAR.js WebAR demo with three.js and touch interaction</title>
7 7
         <link href="demo.css" rel="stylesheet">
8
-        <script src="../../dist/martins.min.js"></script>
8
+        <script src="../../dist/encantar.min.js"></script>
9 9
         <script src="https://cdn.jsdelivr.net/npm/three@0.147.0/build/three.min.js"></script>
10 10
         <script src="https://cdn.jsdelivr.net/npm/three@0.147.0/examples/js/loaders/FontLoader.js"></script>
11 11
         <script src="https://cdn.jsdelivr.net/npm/three@0.147.0/examples/js/geometries/TextGeometry.js"></script>
12
-        <script src="../assets/three-with-martins.js"></script>
12
+        <script src="../assets/three-with-encantar.js"></script>
13 13
         <script src="demo.js"></script>
14 14
     </head>
15 15
     <body>

+ 0
- 26076
dist/martins.js
Файловите разлики са ограничени, защото са твърде много
Целия файл


+ 0
- 20
dist/martins.min.js
Файловите разлики са ограничени, защото са твърде много
Целия файл


+ 2
- 2
docs/api/martins.md Целия файл

@@ -1,6 +1,6 @@
1 1
 # Martins
2 2
 
3
-The `Martins` namespace is the entry point of the features and components of MARTINS.js.
3
+The `Martins` namespace is the entry point of the features and components of encantAR.js.
4 4
 
5 5
 I have documented the instantiation of the components of the engine in their respective pages.
6 6
 
@@ -16,7 +16,7 @@ The [settings](settings.md) of the engine.
16 16
 
17 17
 `Martins.version: string, read-only`
18 18
 
19
-The version of MARTINS.js.
19
+The version of encantAR.js.
20 20
 
21 21
 ## Methods
22 22
 

+ 1
- 1
docs/api/speedy-matrix.md Целия файл

@@ -1,6 +1,6 @@
1 1
 # SpeedyMatrix
2 2
 
3
-[Speedy](speedy.md) includes its own fast implementation of matrices. They are used extensively in MARTINS.js.
3
+[Speedy](speedy.md) includes its own fast implementation of matrices. They are used extensively in encantAR.js.
4 4
 
5 5
 ## Properties
6 6
 

+ 2
- 2
docs/api/speedy.md Целия файл

@@ -1,8 +1,8 @@
1 1
 # Speedy
2 2
 
3
-MARTINS.js is built using [Speedy Vision](https://github.com/alemart/speedy-vision){ ._blank }, a GPU-accelerated Computer Vision library which is another project of mine.
3
+encantAR.js is built using [Speedy Vision](https://github.com/alemart/speedy-vision){ ._blank }, a GPU-accelerated Computer Vision library which is another project of mine.
4 4
 
5
-Many features provided by Speedy Vision are very useful (e.g., matrices). I have decided to include some of them in parts of the MARTINS.js API for convenience.
5
+Many features provided by Speedy Vision are very useful (e.g., matrices). I have decided to include some of them in parts of the encantAR.js API for convenience.
6 6
 
7 7
 In this documentation, I provide a quick reference of some of the classes used in Speedy Vision. This reference is minimal. For a more complete reference, please visit the [website of the project](https://github.com/alemart/speedy-vision){ ._blank }.
8 8
 

+ 7
- 7
docs/demos.md Целия файл

@@ -14,25 +14,25 @@ Please read the [guidelines](#guidelines) before you play with the demos. Feel f
14 14
 
15 15
 Create an augmented scene with [A-Frame](https://aframe.io){ ._blank }. This is the easiest demo to edit!
16 16
 
17
-[Launch demo](/martins-js/demos/hello-aframe/README.html){ ._blank .md-button }
17
+[Launch demo](/encantar-js/demos/hello-aframe/README.html){ ._blank .md-button }
18 18
 
19 19
 ### WebAR with three.js
20 20
 
21 21
 Create an augmented scene with [three.js](https://threejs.org){ ._blank }.
22 22
 
23
-[Launch demo](/martins-js/demos/hello-three/README.html){ ._blank .md-button }
23
+[Launch demo](/encantar-js/demos/hello-three/README.html){ ._blank .md-button }
24 24
 
25 25
 ### WebAR with WebGL only
26 26
 
27 27
 Create an augmented scene without additional libraries.
28 28
 
29
-[Launch demo](/martins-js/demos/hello-webgl/README.html){ ._blank .md-button }
29
+[Launch demo](/encantar-js/demos/hello-webgl/README.html){ ._blank .md-button }
30 30
 
31 31
 ### Hello, world!
32 32
 
33 33
 A basic template to help you get started.
34 34
 
35
-[Launch demo](/martins-js/demos/hello-world/README.html){ ._blank .md-button }
35
+[Launch demo](/encantar-js/demos/hello-world/README.html){ ._blank .md-button }
36 36
 
37 37
 ## Interactive demos
38 38
 
@@ -40,7 +40,7 @@ A basic template to help you get started.
40 40
 
41 41
 Have virtual elements respond to touch input.
42 42
 
43
-[Launch demo](/martins-js/demos/touch-three/README.html){ ._blank .md-button }
43
+[Launch demo](/encantar-js/demos/touch-three/README.html){ ._blank .md-button }
44 44
 
45 45
 ## Guidelines
46 46
 
@@ -60,8 +60,8 @@ Try the demos on your own machine:
60 60
 * Run on a console:
61 61
 
62 62
 ```sh
63
-git clone git@github.com:alemart/martins-js.git
64
-cd martins-js
63
+git clone git@github.com:alemart/encantar-js.git
64
+cd encantar-js
65 65
 npm start
66 66
 ```
67 67
 

+ 5
- 7
docs/faq.md Целия файл

@@ -1,10 +1,8 @@
1 1
 # Questions & Answers
2 2
 
3
-## What is MARTINS.js?
3
+## What is encantAR.js?
4 4
 
5
-MARTINS.js is a GPU-accelerated Augmented Reality engine for the web. It's a standalone WebAR technology for creating AR experiences that run in web browsers. Users don't need specialized hardware nor dedicated software - only a modern web browser.
6
-
7
-MARTINS is a recursive acronym for MARTINS Augmented Reality Technology for Internet Software. It also happens to be my name. See, AR is part of my name. Can you believe it? :sunglasses:
5
+encantAR.js is a standalone GPU-accelerated Augmented Reality engine for the web. The name derives from the Portuguese and Spanish word _encantar_, which means: to enchant, to delight, to love, to fascinate, to put a magical spell.
8 6
 
9 7
 ## What is WebAR?
10 8
 
@@ -12,11 +10,11 @@ Refer to the [concepts](./getting-started/concepts.md).
12 10
 
13 11
 ## Is this WebXR?
14 12
 
15
-No, MARTINS.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, but they are supported on specific devices, which may or may not match your users' devices. On the other hand, MARTINS.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.
13
+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, but 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.
16 14
 
17 15
 ## Why do my models appear "laid down" in AR?
18 16
 
19
-MARTINS.js uses a right-handed coordinate system with the Z-axis pointing "up". The same convention is used in [Blender](https://www.blender.org){ ._blank }. When exporting your own models, make sure that the Z-axis points "up" and that the ground plane is the XY-plane. If your models appear "laid down" in AR, this is probably the issue.
17
+encantAR.js uses a right-handed coordinate system with the Z-axis pointing "up". The same convention is used in [Blender](https://www.blender.org){ ._blank }. When exporting your own models, make sure that the Z-axis points "up" and that the ground plane is the XY-plane. If your models appear "laid down" in AR, this is probably the issue.
20 18
 
21 19
 !!! info "Fix with code"
22 20
 
@@ -26,6 +24,6 @@ MARTINS.js uses a right-handed coordinate system with the Z-axis pointing "up".
26 24
 
27 25
 [Get in touch!](https://github.com/alemart)
28 26
 
29
-## I love WebAR!
27
+## I am enchanted!
30 28
 
31 29
 I know! :wink:

+ 6
- 6
docs/getting-started/activate-your-webcam.md Целия файл

@@ -4,7 +4,7 @@ In this section we're going to learn how to use your webcam to capture the video
4 4
 
5 5
 ## Change the source of data
6 6
 
7
-Instead of using a video file, we're going to use your webcam. We simply need to change the source of data and instruct MARTINS.js to use your webcam. We'll do it with 1 new line of code!
7
+Instead of using a video file, we're going to use your webcam. We simply need to change the source of data and instruct encantAR.js to use your webcam. We'll do it with 1 new line of code!
8 8
 
9 9
 ```js title="ar-demo.js" hl_lines="20-22"
10 10
 async function startARSession()
@@ -51,8 +51,8 @@ Let's also comment (or remove) the `<video>` tag from the HTML file - we no long
51 51
     <head>
52 52
         <meta charset="utf-8">
53 53
         <meta name="viewport" content="width=device-width,initial-scale=1">
54
-        <title>MARTINS.js WebAR demo</title>
55
-        <script src="martins.js"></script>
54
+        <title>encantAR.js WebAR demo</title>
55
+        <script src="encantar.js"></script>
56 56
         <script src="ar-demo.js"></script>
57 57
         <style>body { background-color: #3d5afe; }</style>
58 58
     </head>
@@ -81,7 +81,7 @@ Open <http://localhost:8000>{ ._blank } and... ta-da! The web browser will ask f
81 81
 
82 82
 !!! tip "Check your physical scene"
83 83
 
84
-    Good lighting conditions are important for a good user experience. Even though the MARTINS.js can handle various lighting conditions, you should get your physical scene appropriately illuminated.
84
+    Good lighting conditions are important for a good user experience. Even though the encantAR.js can handle various lighting conditions, you should get your physical scene appropriately illuminated.
85 85
 
86 86
     When developing your own WebAR experiences, ask yourself:
87 87
     
@@ -125,9 +125,9 @@ In order to display that scan gimmick, we need to create a HUD (<em>Heads-Up Dis
125 125
     <head>
126 126
         <meta charset="utf-8">
127 127
         <meta name="viewport" content="width=device-width,initial-scale=1">
128
-        <title>MARTINS.js WebAR demo</title>
128
+        <title>encantAR.js WebAR demo</title>
129 129
         <!-- <script> tags of the rendering engine of your choice -->
130
-        <script src="martins.js"></script>
130
+        <script src="encantar.js"></script>
131 131
         <script src="ar-demo.js"></script>
132 132
         <style>
133 133
         body { background-color: #3d5afe; }

+ 3
- 3
docs/getting-started/concepts.md Целия файл

@@ -16,9 +16,9 @@ Let me clarify what I mean by terms such as Augmented Reality and WebAR:
16 16
 
17 17
 4. A **WebAR experience** is an Augmented Reality experience developed using WebAR technology.
18 18
 
19
-5. **MARTINS.js** is a WebAR technology. I also call it a WebAR engine. Lots of computations have to be performed behind the scenes in order to make an Augmented Reality experience possible. MARTINS.js uses the GPU[^2] to accelerate many of those computations. In fact, the GPU and the CPU[^3] are used together. This approach improves the performance of the WebAR experience and ultimately leads to a better user experience.
19
+5. **encantAR.js** is a WebAR technology. I also call it a WebAR engine. Lots of computations have to be performed behind the scenes in order to make an Augmented Reality experience possible. encantAR.js uses the GPU[^2] to accelerate many of those computations. In fact, the GPU and the CPU[^3] are used together. This approach improves the performance of the WebAR experience and ultimately leads to a better user experience.
20 20
 
21
-Now that those terms are clarified, I say this: you can use MARTINS.js to create amazing WebAR experiences! :wink:
21
+Now that those terms are clarified, I say this: you can use encantAR.js to create amazing WebAR experiences! :wink:
22 22
 
23 23
 [^1]: This definition of AR experience is convenient in different ways. For example, it makes the term "WebAR experience", which is arguably better than "WebAR app" (no apps are downloaded), well-defined. I make a distinction between AR experience and experience of AR. An experience of AR is an event in consciousness in which AR is experienced. I sometimes use the latter definition.
24 24
 [^2]: Graphics Processing Unit
@@ -26,7 +26,7 @@ Now that those terms are clarified, I say this: you can use MARTINS.js to create
26 26
 
27 27
 ## Practical concepts
28 28
 
29
-Let me explain some concepts that you'll see over and over again when developing WebAR experiences with MARTINS.js:
29
+Let me explain some concepts that you'll see over and over again when developing WebAR experiences with encantAR.js:
30 30
 
31 31
 1. The experience of Augmented Reality is created by augmenting the physical scene with the virtual scene.
32 32
 

+ 6
- 6
docs/getting-started/create-the-augmented-scene.md Целия файл

@@ -4,9 +4,9 @@ Now that the image is being tracked, the next step is to render a virtual scene
4 4
 
5 5
 ## Pick a 3D rendering technology
6 6
 
7
-MARTINS.js is not a 3D rendering technology. It is an Augmented Reality technology that provides the data you need in order to augment your physical scenes. There are free and open-source 3D rendering technologies for the web that you can find online and use with MARTINS.js. Popular solutions include: A-Frame, Babylon.js and Three.js. You can also use other solutions. MARTINS.js lets you pick any 3D rendering technology.
7
+encantAR.js is not a 3D rendering technology. It is an Augmented Reality technology that provides the data you need in order to augment your physical scenes. There are free and open-source 3D rendering technologies for the web that you can find online and use with encantAR.js. Popular solutions include: A-Frame, Babylon.js and Three.js. You can also use other solutions. encantAR.js lets you pick any 3D rendering technology.
8 8
 
9
-Once you pick a 3D rendering technology, you need to integrate it with MARTINS.js. There is a code that is responsible for that integration. I call it a _glue code_. Among other things, a glue code transports the tracking results from MARTINS.js to the 3D rendering technology of your choice - it really is a "glue" connecting them.
9
+Once you pick a 3D rendering technology, you need to integrate it with encantAR.js. There is a code that is responsible for that integration. I call it a _glue code_. Among other things, a glue code transports the tracking results from encantAR.js to the 3D rendering technology of your choice - it really is a "glue" connecting them.
10 10
 
11 11
 ## Write the glue code
12 12
 
@@ -32,7 +32,7 @@ Let me tell you a bit more about the 3D rendering technologies I just mentioned.
32 32
 
33 33
 ### A-Frame
34 34
 
35
-[A-Frame](https://aframe.io){ ._blank } is an open-source framework used to build virtual reality (VR) experiences for the web. When you combine it with MARTINS.js, you become able to use it to create AR experiences too - without the need of special hardware or software.
35
+[A-Frame](https://aframe.io){ ._blank } is an open-source framework used to build virtual reality (VR) experiences for the web. When you combine it with encantAR.js, you become able to use it to create AR experiences too - without the need of special hardware or software.
36 36
 
37 37
 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. Sounds complicated? It is not!
38 38
 
@@ -44,13 +44,13 @@ A-Frame is easy for beginners and pleasing for experts. A simple scene is declar
44 44
     <head>
45 45
         <meta charset="utf-8">
46 46
         <meta name="viewport" content="width=device-width,initial-scale=1">
47
-        <title>MARTINS.js WebAR demo</title>
47
+        <title>encantAR.js WebAR demo</title>
48 48
         <!-- include A-Frame -->
49 49
         <script src="aframe-vX.Y.Z.min.js"></script>
50
-        <script src="martins.js"></script>
50
+        <script src="encantar.js"></script>
51 51
         <script src="ar-demo.js"></script>
52 52
         <!-- this is my glue code for A-Frame -->
53
-        <script src="aframe-with-martins.js"></script>
53
+        <script src="aframe-with-encantar.js"></script>
54 54
         <style>body { background-color: #3d5afe; }</style>
55 55
     </head>
56 56
     <body>

+ 11
- 11
docs/getting-started/index.md Целия файл

@@ -1,8 +1,8 @@
1
-# Welcome to MARTINS.js!
1
+# Welcome to encantAR.js!
2 2
 
3
-[![GitHub release (latest by date)](https://img.shields.io/github/v/release/alemart/martins-js)](https://github.com/alemart/martins-js/releases/) ![GitHub file size in bytes on a specified ref (branch/commit/tag)](https://img.shields.io/github/size/alemart/martins-js/dist/martins.min.js?branch=master&label=minified%20js) [![GitHub Repo stars](https://img.shields.io/github/stars/alemart/martins-js?logo=github)](https://github.com/alemart/martins-js/stargazers) [![GitHub Sponsors](https://img.shields.io/github/sponsors/alemart?logo=github)](https://github.com/sponsors/alemart/)
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
-Create amazing Augmented Reality experiences with **MARTINS.js**, a GPU-accelerated Augmented Reality engine for the web.
5
+Create amazing Augmented Reality experiences with **encantAR.js**, a GPU-accelerated Augmented Reality engine for the web.
6 6
 
7 7
 [Get started](./introduction.md){ .md-button .md-button--primary } [Try a demo](../demo.md){ .md-button .md-button } [:heart:{ .heart } Support my work](../support-my-work.md){ .md-button }
8 8
 
@@ -11,17 +11,17 @@ Create amazing Augmented Reality experiences with **MARTINS.js**, a GPU-accelera
11 11
 * **Runs everywhere**: on Android, on iOS, and even on Desktop computers. No need of AR-capable devices.
12 12
 * **Image tracking**. Use it to track detailed images such as: book covers, cartoons and photos.
13 13
 
14
-## Why use MARTINS.js?
14
+## Why use encantAR.js?
15 15
 
16
-* **No need to download apps!** MARTINS.js is a WebAR engine: it runs in web browsers. Users can access the AR experiences immediately.
17
-* **Easy to get started!** MARTINS.js can be used with a `<script>` tag in your page. A static HTML page is enough to get started.
18
-* **Fast and powerful!** MARTINS.js is GPU-accelerated. It uses WebGL2 and WebAssembly for turbocharged performance.
19
-* **Fully standalone!** MARTINS.js is built from scratch using standard web technologies. No need for additional hardware or software!
16
+* **No need to download apps!** encantAR.js is a WebAR engine: it runs in web browsers. Users can access the AR experiences immediately.
17
+* **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.
18
+* **Fast and powerful!** encantAR.js is GPU-accelerated. It uses WebGL2 and WebAssembly for turbocharged performance.
19
+* **Fully standalone!** encantAR.js is built from scratch using standard web technologies. No need for additional hardware or software!
20 20
 * **Free and open-source!** Get started right away!
21 21
 
22 22
 ## Browser compatibility
23 23
 
24
-MARTINS.js is compatible with all major web browsers:
24
+encantAR.js is compatible with all major web browsers:
25 25
 
26 26
 | Chrome | Edge | Firefox | Opera | Safari* |
27 27
 |:------:|:----:|:-------:|:-----:|:-------:|
@@ -29,8 +29,8 @@ MARTINS.js is compatible with all major web browsers:
29 29
 
30 30
 \* use Safari 15.2 or later.
31 31
 
32
-MARTINS.js requires WebGL2 and WebAssembly.
32
+encantAR.js requires WebGL2 and WebAssembly.
33 33
 
34 34
 ## About
35 35
 
36
-MARTINS.js is developed by [Alexandre Martins](https://github.com/alemart) and released under the [LGPL](../license.md). It is based on [Speedy Vision](https://github.com/alemart/speedy-vision).
36
+encantAR.js is developed by [Alexandre Martins](https://github.com/alemart) and released under the [LGPL](../license.md). It is based on [Speedy Vision](https://github.com/alemart/speedy-vision).

+ 3
- 3
docs/getting-started/next-steps.md Целия файл

@@ -1,6 +1,6 @@
1 1
 # Next steps
2 2
 
3
-Congratulations! You have created your first WebAR experience with MARTINS.js! :sunglasses:
3
+Congratulations! You have created your first WebAR experience with encantAR.js! :sunglasses:
4 4
 
5 5
 Let me tell you some of the steps you can take from now on.
6 6
 
@@ -84,12 +84,12 @@ So far we've just created a static HTML page. The next step is to make your page
84 84
 
85 85
 !!! tip "Use the minified code"
86 86
 
87
-    When deploying your WebAR experiences, make sure to include the minified `martins.min.js` file instead of the regular `martins.js`. The latter is suitable for development. The former, for production.
87
+    When deploying your WebAR experiences, make sure to include the minified `encantar.min.js` file instead of the regular `encantar.js`. The latter is suitable for development. The former, for production.
88 88
 
89 89
 ## Support my work
90 90
 
91 91
 If you came this far in the guide, WebAR probably excites you. It is definitely something you want. I know, it is awesome! The possibilities are endless. Even better than getting your creative juices boiling with enthusiasm is the feeling of joy I have for sharing this work with you.
92 92
 
93
-I develop MARTINS.js independently. Creating this WebAR engine required a lot of time, effort, skill and specialized knowledge. Please support my work today, so that I can make it even more awesome!
93
+I develop encantAR.js independently. Creating this WebAR engine required a lot of time, effort, skill and specialized knowledge. Please support my work today, so that I can make it even more awesome!
94 94
 
95 95
 [:heart:{ .heart } Support my work](../support-my-work.md){ .md-button }

+ 4
- 4
docs/getting-started/set-up-a-web-server.md Целия файл

@@ -7,14 +7,14 @@ Let's prepare our local environment in order to create our first WebAR experienc
7 7
 Let's create a file structure for our AR experience:
8 8
 
9 9
 1. Create a new folder called `ar-demo` in your filesystem
10
-2. Download the [latest release of MARTINS.js](../download.md){ ._blank } and extract `dist/martins.js` to `ar-demo/`
10
+2. Download the [latest release of encantAR.js](../download.md){ ._blank } and extract `dist/encantar.js` to `ar-demo/`
11 11
 3. Create a new empty file called `index.html` and store it in `ar-demo/`
12 12
 
13 13
 You will have the following file structure:
14 14
 
15 15
     ar-demo/
16 16
     ├── index.html
17
-    └── martins.js
17
+    └── encantar.js
18 18
 
19 19
 ## Add boilerplate code
20 20
 
@@ -26,8 +26,8 @@ Use the code editor of your choice to write the following content to `index.html
26 26
     <head>
27 27
         <meta charset="utf-8">
28 28
         <meta name="viewport" content="width=device-width,initial-scale=1">
29
-        <title>MARTINS.js WebAR demo</title>
30
-        <script src="martins.js"></script>
29
+        <title>encantAR.js WebAR demo</title>
30
+        <script src="encantar.js"></script>
31 31
         <style>body { background-color: #3d5afe; }</style>
32 32
     </head>
33 33
     <body>

+ 2
- 2
docs/getting-started/set-up-the-session.md Целия файл

@@ -12,8 +12,8 @@ We begin by creating the viewport. Remember that the viewport is the area in whi
12 12
     <head>
13 13
         <meta charset="utf-8">
14 14
         <meta name="viewport" content="width=device-width,initial-scale=1">
15
-        <title>MARTINS.js WebAR demo</title>
16
-        <script src="martins.js"></script>
15
+        <title>encantAR.js WebAR demo</title>
16
+        <script src="encantar.js"></script>
17 17
         <script src="ar-demo.js"></script>
18 18
         <style>body { background-color: #3d5afe; }</style>
19 19
     </head>

+ 12
- 12
docs/getting-started/set-up-the-tracker.md Целия файл

@@ -23,8 +23,8 @@ Next, let's add the reference image to our web page. Add an `<img>` tag to the `
23 23
     <head>
24 24
         <meta charset="utf-8">
25 25
         <meta name="viewport" content="width=device-width,initial-scale=1">
26
-        <title>MARTINS.js WebAR demo</title>
27
-        <script src="martins.js"></script>
26
+        <title>encantAR.js WebAR demo</title>
27
+        <script src="encantar.js"></script>
28 28
         <style>body { background-color: #3d5afe; }</style>
29 29
     </head>
30 30
     <body>
@@ -50,8 +50,8 @@ Once you see that the image is being properly loaded, there is no need to keep i
50 50
     <head>
51 51
         <meta charset="utf-8">
52 52
         <meta name="viewport" content="width=device-width,initial-scale=1">
53
-        <title>MARTINS.js WebAR demo</title>
54
-        <script src="martins.js"></script>
53
+        <title>encantAR.js WebAR demo</title>
54
+        <script src="encantar.js"></script>
55 55
         <style>body { background-color: #3d5afe; }</style>
56 56
     </head>
57 57
     <body>
@@ -75,7 +75,7 @@ This is the expected directory structure at this point:
75 75
 
76 76
     ar-demo/
77 77
     ├── index.html
78
-    ├── martins.js
78
+    ├── encantar.js
79 79
     ├── my-reference-image.webp
80 80
     ├── my-video.mp4
81 81
     └── my-video.webm
@@ -88,8 +88,8 @@ Let's include the test video in our page. Add a `<video>` tag as follows:
88 88
     <head>
89 89
         <meta charset="utf-8">
90 90
         <meta name="viewport" content="width=device-width,initial-scale=1">
91
-        <title>MARTINS.js WebAR demo</title>
92
-        <script src="martins.js"></script>
91
+        <title>encantAR.js WebAR demo</title>
92
+        <script src="encantar.js"></script>
93 93
         <style>body { background-color: #3d5afe; }</style>
94 94
     </head>
95 95
     <body>
@@ -108,7 +108,7 @@ In order to track the reference image in our video, we need an Image Tracker. Re
108 108
 
109 109
 Before we track anything with an Image Tracker, we must tell it what to track. There are two steps to this: first, we instantiate an Image Tracker. Next, we link our reference image to it.
110 110
 
111
-We'll be writing a little bit of JavaScript code now. In order to keep our code clean, we'll be writing the JavaScript code to a new file. Let's add a `<script>` tag below `martins.js` as follows:
111
+We'll be writing a little bit of JavaScript code now. In order to keep our code clean, we'll be writing the JavaScript code to a new file. Let's add a `<script>` tag below `encantar.js` as follows:
112 112
 
113 113
 ```html title="index.html" hl_lines="8"
114 114
 <!doctype html>
@@ -116,8 +116,8 @@ We'll be writing a little bit of JavaScript code now. In order to keep our code
116 116
     <head>
117 117
         <meta charset="utf-8">
118 118
         <meta name="viewport" content="width=device-width,initial-scale=1">
119
-        <title>MARTINS.js WebAR demo</title>
120
-        <script src="martins.js"></script>
119
+        <title>encantAR.js WebAR demo</title>
120
+        <script src="encantar.js"></script>
121 121
         <script src="ar-demo.js"></script>
122 122
         <style>body { background-color: #3d5afe; }</style>
123 123
     </head>
@@ -154,14 +154,14 @@ window.onload = async function()
154 154
 
155 155
 The `Martins` namespace holds the various elements featured by the engine. We'll be using it extensively.
156 156
 
157
-MARTINS.js only requires standard web technologies that have been around for a while. Still, it's a good practice to check if those technologies are supported by the target system. If they are not, we display a message and quit. If they are, we instantiate an Image Tracker.
157
+encantAR.js only requires standard web technologies that have been around for a while. Still, it's a good practice to check if those technologies are supported by the target system. If they are not, we display a message and quit. If they are, we instantiate an Image Tracker.
158 158
 
159 159
 Before moving on, make sure that you have the following directory structure at this point:
160 160
 
161 161
     ar-demo/
162 162
     ├── ar-demo.js
163 163
     ├── index.html
164
-    ├── martins.js
164
+    ├── encantar.js
165 165
     ├── my-reference-image.webp
166 166
     ├── my-video.mp4
167 167
     └── my-video.webm

Двоични данни
docs/img/martins-icon.png Целия файл


+ 1
- 1
docs_overrides/demo.html Целия файл

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

+ 3
- 3
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/martins-js/releases'">
6
-        <title>Download MARTINS.js</title>
5
+        <meta http-equiv="refresh" content="0; url='https://github.com/alemart/encantar-js/releases'">
6
+        <title>Download encantAR.js</title>
7 7
     </head>
8 8
     <body>
9
-        <p>Redirecting to <a href="https://github.com/alemart/martins-js/releases">https://github.com/alemart/martins-js/releases</a>...</p>
9
+        <p>Redirecting to <a href="https://github.com/alemart/encantar-js/releases">https://github.com/alemart/encantar-js/releases</a>...</p>
10 10
     </body>
11 11
 </html>

+ 1
- 1
docs_overrides/main.html Целия файл

@@ -12,7 +12,7 @@
12 12
 
13 13
 {% block libs %}
14 14
 {{ super() }}
15
-<script data-goatcounter="https://martins-js.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script>
15
+<script data-goatcounter="https://encantar-js.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script>
16 16
 {% endblock %}
17 17
 
18 18
 {% block _announce %}

+ 1
- 1
docs_overrides/partials/share.html Целия файл

@@ -9,7 +9,7 @@
9 9
 </a>
10 10
 
11 11
 <!-- Sharingbutton Twitter -->
12
-<a class="resp-sharing-button__link" href="https://twitter.com/intent/tweet/?text=%23MARTINSjs%20%23WebAR&amp;url={{ page.canonical_url | urlencode }}" target="_blank" rel="noopener" aria-label="">
12
+<a class="resp-sharing-button__link" href="https://twitter.com/intent/tweet/?text=%23encantar-js%20%23webar%20%23augmented-reality&amp;url={{ page.canonical_url | urlencode }}" target="_blank" rel="noopener" aria-label="">
13 13
   <div class="resp-sharing-button resp-sharing-button--twitter resp-sharing-button--small"><div aria-hidden="true" class="resp-sharing-button__icon resp-sharing-button__icon--solid">
14 14
     <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M23.44 4.83c-.8.37-1.5.38-2.22.02.93-.56.98-.96 1.32-2.02-.88.52-1.86.9-2.9 1.1-.82-.88-2-1.43-3.3-1.43-2.5 0-4.55 2.04-4.55 4.54 0 .36.03.7.1 1.04-3.77-.2-7.12-2-9.36-4.75-.4.67-.6 1.45-.6 2.3 0 1.56.8 2.95 2 3.77-.74-.03-1.44-.23-2.05-.57v.06c0 2.2 1.56 4.03 3.64 4.44-.67.2-1.37.2-2.06.08.58 1.8 2.26 3.12 4.25 3.16C5.78 18.1 3.37 18.74 1 18.46c2 1.3 4.4 2.04 6.97 2.04 8.35 0 12.92-6.92 12.92-12.93 0-.2 0-.4-.02-.6.9-.63 1.96-1.22 2.56-2.14z"/></svg>
15 15
     </div>

+ 1
- 1
docs_overrides/support-my-work.html Целия файл

@@ -3,7 +3,7 @@
3 3
     <head>
4 4
         <meta charset="utf-8">
5 5
         <meta http-equiv="refresh" content="0; url='https://github.com/sponsors/alemart'">
6
-        <title>MARTINS.js - Support my work</title>
6
+        <title>encantAR.js - Support my work</title>
7 7
     </head>
8 8
     <body>
9 9
         <p>Redirecting to <a href="https://github.com/sponsors/alemart">GitHub Sponsors</a>...</p>

+ 4
- 5
mkdocs.yml Целия файл

@@ -1,17 +1,16 @@
1
-site_name: "MARTINS.js: GPU-accelerated Augmented Reality for the web"
2
-site_url: https://alemart.github.io/martins-js
1
+site_name: "encantAR.js: GPU-accelerated Augmented Reality for the web"
2
+site_url: https://alemart.github.io/encantar-js
3 3
 site_author: Alexandre Martins
4 4
 site_description: Open source WebAR engine. Runs everywhere. Easy to get started.
5 5
 copyright: Copyright &copy; 2022 - present Alexandre Martins
6 6
 
7
-repo_name: alemart/martins-js
8
-repo_url: https://github.com/alemart/martins-js
7
+repo_name: alemart/encantar-js
8
+repo_url: https://github.com/alemart/encantar-js
9 9
 
10 10
 theme:
11 11
   name: material
12 12
   custom_dir: docs_overrides
13 13
   features: [ 'navigation.tabs', 'navigation.tabs.sticky' ]
14
-  logo: img/martins-icon.png
15 14
 
16 15
 extra_css: [ 'style/extra.css' ]
17 16
 extra_javascript: [ 'js/extra.js' ]

+ 2
- 2
package-lock.json Целия файл

@@ -1,11 +1,11 @@
1 1
 {
2
-  "name": "martins-js",
2
+  "name": "encantar-js",
3 3
   "version": "0.2.1-wip",
4 4
   "lockfileVersion": 2,
5 5
   "requires": true,
6 6
   "packages": {
7 7
     "": {
8
-      "name": "martins-js",
8
+      "name": "encantar-js",
9 9
       "version": "0.2.1-wip",
10 10
       "license": "LGPL-3.0-or-later",
11 11
       "dependencies": {

+ 5
- 5
package.json Целия файл

@@ -1,11 +1,11 @@
1 1
 {
2
-  "name": "martins-js",
2
+  "name": "encantar-js",
3 3
   "version": "0.2.1-wip",
4 4
   "description": "GPU-accelerated Augmented Reality for the web",
5 5
   "author": "Alexandre Martins <alemartf@gmail.com> (https://github.com/alemart)",
6
-  "homepage": "https://github.com/alemart/martins-js",
6
+  "homepage": "https://github.com/alemart/encantar-js",
7 7
   "license": "LGPL-3.0-or-later",
8
-  "repository": "github:alemart/martins-js",
8
+  "repository": "github:alemart/encantar-js",
9 9
   "funding": "https://github.com/sponsors/alemart",
10 10
   "keywords": [
11 11
     "augmented reality",
@@ -21,12 +21,12 @@
21 21
     "webgl2",
22 22
     "wasm"
23 23
   ],
24
-  "main": "dist/martins.js",
24
+  "main": "dist/encantar.js",
25 25
   "scripts": {
26 26
     "start": "webpack serve --mode development --env PORT=8000 --env minimize=1",
27 27
     "build-dev": "npm run update && npm run clean && webpack --mode development",
28 28
     "build": "npm run update && npm run clean && webpack --mode production && webpack --mode production --env minimize=1",
29
-    "clean": "rm -rf dist/martins*.js",
29
+    "clean": "rm -rf dist/encantar*.js",
30 30
     "update": "npm update speedy-vision",
31 31
     "deploy": "mkdocs gh-deploy",
32 32
     "test": "echo \"Error: no test specified\" && exit 1"

+ 1
- 1
src/core/frame.ts Целия файл

@@ -1,5 +1,5 @@
1 1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3 3
  * GPU-accelerated Augmented Reality for the web
4 4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5 5
  *

+ 1
- 1
src/core/gizmos.ts Целия файл

@@ -1,5 +1,5 @@
1 1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3 3
  * GPU-accelerated Augmented Reality for the web
4 4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5 5
  *

+ 1
- 1
src/core/hud.ts Целия файл

@@ -1,5 +1,5 @@
1 1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3 3
  * GPU-accelerated Augmented Reality for the web
4 4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5 5
  *

+ 2
- 2
src/core/session.ts Целия файл

@@ -1,5 +1,5 @@
1 1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3 3
  * GPU-accelerated Augmented Reality for the web
4 4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5 5
  *
@@ -287,7 +287,7 @@ export class Session extends AREventTarget<SessionEventType>
287 287
 
288 288
             // is the engine supported?
289 289
             if(!Session.isSupported())
290
-                throw new NotSupportedError('You need a browser/device compatible with WebGL2 and WebAssembly in order to experience Augmented Reality with the MARTINS.js engine');
290
+                throw new NotSupportedError('You need a browser/device compatible with WebGL2 and WebAssembly in order to experience Augmented Reality with encantar.js');
291 291
 
292 292
             // block multiple immersive sessions
293 293
             if(mode !== 'inline' && Session.count > 0)

+ 1
- 1
src/core/settings.ts Целия файл

@@ -1,5 +1,5 @@
1 1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3 3
  * GPU-accelerated Augmented Reality for the web
4 4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5 5
  *

+ 2
- 2
src/core/stats-panel.ts Целия файл

@@ -1,5 +1,5 @@
1 1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3 3
  * GPU-accelerated Augmented Reality for the web
4 4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5 5
  *
@@ -195,7 +195,7 @@ export class StatsPanel
195 195
         container.style.fontSize = '14px';
196 196
 
197 197
         // all sanitized
198
-        container.innerText = 'MARTINS.js ' + Martins.version;
198
+        container.innerText = 'encantAR.js ' + Martins.version;
199 199
 
200 200
         print('<br>');
201 201
         print('FPS: <span class="_ar_fps"></span> | ');

+ 1
- 1
src/core/stats.ts Целия файл

@@ -1,5 +1,5 @@
1 1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3 3
  * GPU-accelerated Augmented Reality for the web
4 4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5 5
  *

+ 1
- 1
src/core/time.ts Целия файл

@@ -1,5 +1,5 @@
1 1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3 3
  * GPU-accelerated Augmented Reality for the web
4 4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5 5
  *

+ 1
- 1
src/core/viewport.ts Целия файл

@@ -1,5 +1,5 @@
1 1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3 3
  * GPU-accelerated Augmented Reality for the web
4 4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5 5
  *

+ 1
- 1
src/geometry/camera-model.ts Целия файл

@@ -1,5 +1,5 @@
1 1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3 3
  * GPU-accelerated Augmented Reality for the web
4 4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5 5
  *

+ 1
- 1
src/geometry/pose.ts Целия файл

@@ -1,5 +1,5 @@
1 1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3 3
  * GPU-accelerated Augmented Reality for the web
4 4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5 5
  *

+ 1
- 1
src/geometry/transform.ts Целия файл

@@ -1,5 +1,5 @@
1 1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3 3
  * GPU-accelerated Augmented Reality for the web
4 4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5 5
  *

+ 1
- 1
src/geometry/view.ts Целия файл

@@ -1,5 +1,5 @@
1 1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3 3
  * GPU-accelerated Augmented Reality for the web
4 4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5 5
  *

+ 1
- 1
src/geometry/viewer-pose.ts Целия файл

@@ -1,5 +1,5 @@
1 1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3 3
  * GPU-accelerated Augmented Reality for the web
4 4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5 5
  *

+ 1
- 1
src/geometry/viewer.ts Целия файл

@@ -1,5 +1,5 @@
1 1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3 3
  * GPU-accelerated Augmented Reality for the web
4 4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5 5
  *

+ 9
- 9
src/main.ts Целия файл

@@ -1,5 +1,5 @@
1 1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3 3
  * GPU-accelerated Augmented Reality for the web
4 4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5 5
  *
@@ -28,9 +28,9 @@ import { TrackerFactory } from './trackers/tracker-factory';
28 28
 import { SourceFactory } from './sources/source-factory';
29 29
 import { Viewport, ViewportSettings } from './core/viewport';
30 30
 import { Utils } from './utils/utils';
31
-declare const __MARTINS_VERSION__: string;
32
-declare const __MARTINS_DEVELOPMENT_MODE__: string;
33
-declare const __MARTINS_WEBSITE__: string;
31
+declare const __AR_VERSION__: string;
32
+declare const __AR_DEVELOPMENT_MODE__: string;
33
+declare const __AR_WEBSITE__: string;
34 34
 
35 35
 /**
36 36
  * GPU-accelerated Augmented Reality for the web
@@ -86,10 +86,10 @@ export default class Martins
86 86
      */
87 87
     static get version(): string
88 88
     {
89
-        if(__MARTINS_DEVELOPMENT_MODE__)
90
-            return __MARTINS_VERSION__ + '-dev';
89
+        if(__AR_DEVELOPMENT_MODE__)
90
+            return __AR_VERSION__ + '-dev';
91 91
         else
92
-            return __MARTINS_VERSION__;
92
+            return __AR_VERSION__;
93 93
     }
94 94
 
95 95
     /**
@@ -118,7 +118,7 @@ Object.freeze(Martins);
118 118
 
119 119
 // Display a notice
120 120
 Utils.log(
121
-    `MARTINS.js version ${Martins.version}. ` +
121
+    `encantAR.js version ${Martins.version}. ` +
122 122
     `GPU-accelerated Augmented Reality for the web by Alexandre Martins. ` +
123
-    __MARTINS_WEBSITE__
123
+    __AR_WEBSITE__
124 124
 );

+ 1
- 1
src/sources/camera-source.ts Целия файл

@@ -1,5 +1,5 @@
1 1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3 3
  * GPU-accelerated Augmented Reality for the web
4 4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5 5
  *

+ 1
- 1
src/sources/canvas-source.ts Целия файл

@@ -1,5 +1,5 @@
1 1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3 3
  * GPU-accelerated Augmented Reality for the web
4 4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5 5
  *

+ 1
- 1
src/sources/source-factory.ts Целия файл

@@ -1,5 +1,5 @@
1 1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3 3
  * GPU-accelerated Augmented Reality for the web
4 4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5 5
  *

+ 1
- 1
src/sources/source.ts Целия файл

@@ -1,5 +1,5 @@
1 1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3 3
  * GPU-accelerated Augmented Reality for the web
4 4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5 5
  *

+ 1
- 1
src/sources/video-source.ts Целия файл

@@ -1,5 +1,5 @@
1 1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3 3
  * GPU-accelerated Augmented Reality for the web
4 4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5 5
  *

+ 1
- 1
src/trackers/image-tracker/image-tracker-event.ts Целия файл

@@ -1,5 +1,5 @@
1 1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3 3
  * GPU-accelerated Augmented Reality for the web
4 4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5 5
  *

+ 1
- 1
src/trackers/image-tracker/image-tracker.ts Целия файл

@@ -1,5 +1,5 @@
1 1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3 3
  * GPU-accelerated Augmented Reality for the web
4 4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5 5
  *

+ 1
- 1
src/trackers/image-tracker/reference-image-database.ts Целия файл

@@ -1,5 +1,5 @@
1 1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3 3
  * GPU-accelerated Augmented Reality for the web
4 4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5 5
  *

+ 1
- 1
src/trackers/image-tracker/reference-image.ts Целия файл

@@ -1,5 +1,5 @@
1 1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3 3
  * GPU-accelerated Augmented Reality for the web
4 4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5 5
  *

+ 1
- 1
src/trackers/image-tracker/settings.ts Целия файл

@@ -1,5 +1,5 @@
1 1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3 3
  * GPU-accelerated Augmented Reality for the web
4 4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5 5
  *

+ 1
- 1
src/trackers/image-tracker/states/initial.ts Целия файл

@@ -1,5 +1,5 @@
1 1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3 3
  * GPU-accelerated Augmented Reality for the web
4 4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5 5
  *

+ 1
- 1
src/trackers/image-tracker/states/pre-tracking.ts Целия файл

@@ -1,5 +1,5 @@
1 1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3 3
  * GPU-accelerated Augmented Reality for the web
4 4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5 5
  *

+ 1
- 1
src/trackers/image-tracker/states/scanning.ts Целия файл

@@ -1,5 +1,5 @@
1 1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3 3
  * GPU-accelerated Augmented Reality for the web
4 4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5 5
  *

+ 1
- 1
src/trackers/image-tracker/states/state.ts Целия файл

@@ -1,5 +1,5 @@
1 1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3 3
  * GPU-accelerated Augmented Reality for the web
4 4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5 5
  *

+ 1
- 1
src/trackers/image-tracker/states/tracking.ts Целия файл

@@ -1,5 +1,5 @@
1 1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3 3
  * GPU-accelerated Augmented Reality for the web
4 4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5 5
  *

+ 1
- 1
src/trackers/image-tracker/states/training.ts Целия файл

@@ -1,5 +1,5 @@
1 1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3 3
  * GPU-accelerated Augmented Reality for the web
4 4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5 5
  *

+ 1
- 1
src/trackers/tracker-factory.ts Целия файл

@@ -1,5 +1,5 @@
1 1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3 3
  * GPU-accelerated Augmented Reality for the web
4 4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5 5
  *

+ 1
- 1
src/trackers/tracker.ts Целия файл

@@ -1,5 +1,5 @@
1 1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3 3
  * GPU-accelerated Augmented Reality for the web
4 4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5 5
  *

+ 1
- 1
src/utils/ar-events.ts Целия файл

@@ -1,5 +1,5 @@
1 1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3 3
  * GPU-accelerated Augmented Reality for the web
4 4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5 5
  *

+ 1
- 1
src/utils/asap.ts Целия файл

@@ -1,5 +1,5 @@
1 1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3 3
  * GPU-accelerated Augmented Reality for the web
4 4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5 5
  *

+ 1
- 1
src/utils/errors.ts Целия файл

@@ -1,5 +1,5 @@
1 1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3 3
  * GPU-accelerated Augmented Reality for the web
4 4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5 5
  *

+ 1
- 1
src/utils/resolution.ts Целия файл

@@ -1,5 +1,5 @@
1 1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3 3
  * GPU-accelerated Augmented Reality for the web
4 4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5 5
  *

+ 4
- 4
src/utils/utils.ts Целия файл

@@ -1,5 +1,5 @@
1 1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3 3
  * GPU-accelerated Augmented Reality for the web
4 4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5 5
  *
@@ -42,7 +42,7 @@ export class Utils
42 42
      */
43 43
     static log(message: string, ...args: any[]): void
44 44
     {
45
-        console.log('[martins-js]', message, ...args);
45
+        console.log('[encantar-js]', message, ...args);
46 46
     }
47 47
 
48 48
     /**
@@ -52,7 +52,7 @@ export class Utils
52 52
      */
53 53
     static warning(message: string, ...args: any[]): void
54 54
     {
55
-        console.warn('[martins-js]', message, ...args);
55
+        console.warn('[encantar-js]', message, ...args);
56 56
     }
57 57
 
58 58
     /**
@@ -62,7 +62,7 @@ export class Utils
62 62
      */
63 63
     static error(message: string, ...args: any[]): void
64 64
     {
65
-        console.error('[martins-js]', message, ...args);
65
+        console.error('[encantar-js]', message, ...args);
66 66
     }
67 67
 
68 68
     /**

+ 6
- 6
webpack.config.js Целия файл

@@ -9,7 +9,7 @@ module.exports = (env, argv) => ({
9 9
     devtool: argv.mode == 'development' ? 'source-map' : undefined,
10 10
 
11 11
     output: {
12
-        filename: !env.minimize ? 'martins.js' : 'martins.min.js',
12
+        filename: !env.minimize ? 'encantar.js' : 'encantar.min.js',
13 13
         path: path.resolve(__dirname, 'dist'),
14 14
         publicPath: '/dist/',
15 15
         library: {
@@ -32,7 +32,7 @@ module.exports = (env, argv) => ({
32 32
     plugins: [
33 33
         new webpack.BannerPlugin({
34 34
             banner: ((({ author, version, year, homepage, description, date }) => ([
35
-                `MARTINS.js version ${version}`,
35
+                `encantAR.js version ${version}`,
36 36
                 `${description}`,
37 37
                 `Copyright ${year} ${author}`,
38 38
                 `${homepage}`,
@@ -42,14 +42,14 @@ module.exports = (env, argv) => ({
42 42
             ].join('\n')))({
43 43
                 ...pack,
44 44
                 'date': new Date().toISOString(),
45
-                'year': [ ...(new Set([2022, new Date().getFullYear()])) ].join('-'),
45
+                'year': [2022, new Date().getFullYear()].join('-'),
46 46
                 'author': pack.author.replace('@', '(at)'),
47 47
             }))
48 48
         }),
49 49
         new webpack.DefinePlugin({
50
-            '__MARTINS_VERSION__': JSON.stringify(pack.version),
51
-            '__MARTINS_DEVELOPMENT_MODE__': argv.mode == 'development',
52
-            '__MARTINS_WEBSITE__': JSON.stringify(pack.homepage),
50
+            '__AR_VERSION__': JSON.stringify(pack.version),
51
+            '__AR_DEVELOPMENT_MODE__': argv.mode == 'development',
52
+            '__AR_WEBSITE__': JSON.stringify(pack.homepage),
53 53
         }),
54 54
         new webpack.IgnorePlugin({
55 55
             resourceRegExp: /\.ignore\./i,

Loading…
Отказ
Запис