Non-Studio Projects
The primary way of using the 8th Wall desktop app is with Studio projects, which use 8th Wall's scene graph format (src/.expanse.json) and ECS framework.
Projects that aren't considered Studio projects (projects built with A-Frame, Three.js, etc) can still utilize the 8th Wall desktop app for specific features such as asset management, image targets, and the simulator, by opening in a separate Non-Studio mode. Non-Studio mode does not include a 3D scene editor.
Minimum Requirements
- The folder contains a
package.jsonfile. npm run servestarts a local build server.- For preview to work, the
--portargument, or thePORTenvironment variable, should be honored, e.g.PORT=8888 npm run serveshould host the content on http://localhost:8888. - If the command starts with
node, the command will be invoked through the desktop app's internal node executable. Otherwise, node/npm are required.
- For preview to work, the
AR Simulator + Device Connect
- dev8.js is loaded for development builds.
You can add dev8.js to your project's index.html <head> with:
<script src="https://cdn.jsdelivr.net/npm/@8thwall/ecs@3/dev8/dev8.js"></script>
warning
Note that this script should not be included in production builds. This sample configuration shows one way to achieve this, though it might vary depending on your configuration.
Image Targets
- Image Targets are stored in the
image-targets/folder (not insidesrc/), with no subfolders.
File Browser (optional)
- Source code is in the
srcfolder. - Non-text assets (e.g. images, models) are contained in in
src/assets/.
Publishing
npm run buildgenerates a production build in thedistfolder.
Questions?
Please open a discussion or issue on Github.