You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/engine/overview.md
+54-8Lines changed: 54 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,19 +9,65 @@ sidebar_position: 1
9
9
If this is your first time working with 8th Wall, we strongly recommend starting with or referencing an [example project](https://github.com/8thwall/8thwall/tree/main/examples).
When importing the package, you will get a simple helper for accessing XR8 once it is loaded. This promise will only resolve if the script tag is included in the HTML.
1. Download the [8th Wall Engine Binary](https://8th.io/xrjs) and unzip it into your project folder
17
-
2. Add the 8th Wall Engine as a script tag to the `<head>` of your `index.html`. Add the `data-preload-chunks` attribute to the script tag, and depending on the type of experience you want to develop, set the `data-preload-chunks` to the appropriate value:
The engine consists of two optional chunks, `slam`, and `face`. Depending on the type of experience you want to develop, you can add the `data-preload-chunks` attribute to the script tag:
***Sky Effects**: no `data-preload-chunks` required
69
+
70
+
25
71
:::note
26
72
`data-preload-chunks="face, slam"` is also supported for experiences using both world and face effects.
27
73
:::
@@ -31,7 +77,7 @@ Alternatively, you can call `await XR8.loadChunk()` **before starting the engine
31
77
awaitXR8.loadChunk('slam')
32
78
```
33
79
34
-
### Integrating 8th Wall with A-Frame {#aframe}
80
+
## A-Frame {#aframe}
35
81
36
82
8th Wall can be integrated with your A-Frame project in a few easy steps:
37
83
@@ -50,7 +96,7 @@ await XR8.loadChunk('slam')
50
96
See documentation on [A-Frame Components](/docs/api/engine/aframe/), [A-Frame Events](/docs/api/engine/aframeevents/) and [A-Frame Event Listeners](/docs/api/engine/aframeeventlisenters/) provided by the 8th Wall Engine.
51
97
:::
52
98
53
-
### Integrating 8th Wall with three.js {#threejs}
99
+
## three.js {#threejs}
54
100
55
101
To integrate the 8th Wall engine into a three.js project, use the [Camera Pipeline Module API](/docs/api/engine/camerapipelinemodule) to add functionality like drawing the camera feed, creating a three.js scene and enabling world tracking. You should also add a custom camera pipeline module which you use to set up the three.js camera and scene content.
Copy file name to clipboardExpand all lines: docs/migration/self-hosted.md
+18-13Lines changed: 18 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,16 +14,13 @@ The 8th Wall engine binary does **not support** cloud-dependent features or thos
14
14
* Modules / Backends
15
15
:::
16
16
17
-
To update a self-hosted project to use the 8th Wall engine binary:
17
+
To update a self-hosted project to use the 8th Wall engine binary, remove the script tag for `apps.8thwall.com/xrweb` and replace it with:
18
18
19
-
1. Download [xr-standalone.zip](https://8th.io/xrjs) and unzip it into your project folder
20
-
2. Remove the script tag for `apps.8thwall.com/xrweb` and replace it with `<script async src="./path/to/xr.js"></script>`
21
-
3. Add `data-preload-chunks` to the script tag or call `await XR8.loadChunk()` in your code before starting the engine. See sections below for more details.
22
-
23
-
:::note
24
-
`data-preload-chunks="face, slam"` is also supported for experiences using both world and face effects.
Alternative installation options can be found in the [Engine Overview](/docs/engine/overview).
27
24
28
25
## World Effects
29
26
@@ -33,15 +30,20 @@ If you're using world tracking, add `data-preload-chunks="slam"` to the script t
33
30
34
31
If you're using face tracking, add `data-preload-chunks="face"` to the script tag or call `await XR8.loadChunk('face')` in your code before starting the engine.
35
32
33
+
:::note
34
+
`data-preload-chunks="face, slam"` is also supported for experiences using both world and face effects.
35
+
:::
36
+
36
37
## Image Targets
37
38
38
39
If you're using image targets, add `data-preload-chunks="slam"` to the script tag or call `await XR8.loadChunk('slam')` in your code before starting the engine.
39
40
40
41
### Configure Image Targets
41
42
42
-
Configure the image targets at the start of your experience.
43
+
Targets no longer load automatically on startup. Previously auto-loaded targets will have a `"loadAutomatically": true` property in the json file, which may help you locate them, but it doesn't have a functional effect.
43
44
44
-
To enable image targets, call `XR8.XrController.configure` before any other code:
45
+
46
+
To enable image targets, call `XR8.XrController.configure` at the start of your experience:
0 commit comments