Bläddra i källkod

Update FAQ

customisations
alemart 3 månader sedan
förälder
incheckning
bfc75795c4
1 ändrade filer med 10 tillägg och 1 borttagningar
  1. 10
    1
      docs/faq.md

+ 10
- 1
docs/faq.md Visa fil

16
 
16
 
17
 No, encantar.js is not WebXR. The WebXR API allows you to access functionalities of VR and AR-capable devices in web browsers. It relies on other technologies, such as Google's ARCore or Apple's ARKit, to run the show. Those technologies are great, though they are supported on specific devices, which may or may not match your users' devices. On the other hand, encantar.js is fully standalone and is built from scratch using standard web technologies such as WebGL2 and WebAssembly, which are widely available. My intention is to give it broad compatibility.
17
 No, encantar.js is not WebXR. The WebXR API allows you to access functionalities of VR and AR-capable devices in web browsers. It relies on other technologies, such as Google's ARCore or Apple's ARKit, to run the show. Those technologies are great, though they are supported on specific devices, which may or may not match your users' devices. On the other hand, encantar.js is fully standalone and is built from scratch using standard web technologies such as WebGL2 and WebAssembly, which are widely available. My intention is to give it broad compatibility.
18
 
18
 
19
+## Can I bundle it using Vite, Webpack, etc?
20
+
21
+Static linking is not allowed according to the [license](license.md). The inclusion of encantar.js in a web page using a separate script tag does not constitute static linking:
22
+
23
+```html
24
+<script src="path/to/encantar.js"></script>
25
+<script src="path/to/my-ar-experience.js"></script>
26
+```
27
+
19
 ## Why do my models appear "laid down" in AR?
28
 ## Why do my models appear "laid down" in AR?
20
 
29
 
21
 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.
30
 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.
30
 
39
 
31
 ## I am enchanted!
40
 ## I am enchanted!
32
 
41
 
33
-I know! :wink:
42
+I know! :wink:

Laddar…
Avbryt
Spara