Authors: Jeff Burke, Aidan Strong, Ryan Yeo
Date: 3/1/2024
For the USITT 24 WebAR Demo, we leverage both 8Frame and the A-Frame Inspector, making changes accordingly to fit the needs of this project.
This patch of the A-Frame inspector supports development on our USITT 23 WebAR Demo, enabling developers to create augmented reality (AR) experiences using A-Frame within the 8th Wall platform.
8Frame is 8th Wall's modified version of AFrame, with the following changes to improve compatibility with their platform:
- 8Frame exposes properties in THREE.js's
WebGLRenderer
so that it's compatible with MRCS HoloVideoObject. - 8Frame improves AFrame's compatibility with XR8.
A-Frame comes with a keyboard shortcut to inject the inspector. Just open
up any A-Frame scene (running at least A-Frame v0.3.0) and press <ctrl> + <alt> + i
to inject the inspector, just like you would use a DOM inspector:
The patch modifies certain aspects of A-Frame while ensuring compatibility with 8th Wall's AR platform, which is helpful for the AR development workflow on 8th Wall. A summary of the modifications:
- useful property updates via console in response to user interactions
- toolbar addition that provides a convenient way for users to copy entity HTML to the clipboard
For further details, see changes.md.
To immediately use our modification of the A-Frame Inspector on your 8th Wall project, add the following to your <a-scene>
in body.html
:
inspector="url: https://remap.github.io/aframe-inspector/dist/aframe-inspector.js"
If you wish to make your own changes to our A-Frame Inspector, follow these steps:
- Visit the REMAP A-Frame Inspector GitHub repository.
- Fork the respository then download it to your local machine.
- Navigate to the
/dist
directory containing the A-Frame Inspector source code ininspector.js
. - Test if your local copy of the inspector works by running it (npm start), then in your 8th Wall repository, add the following to your
<a-scene>
inbody.html
:inspector="url: http://localhost:3333/dist/inspector.js"
- Preview your project in a new window and open the A-Frame inspector with
<ctrl> + <alt> + i
. On the left panel, choose<a-scene_scene>
and a panel on the right should show up. Click on INSPECTOR and make sure the url of the inspector matches the source (http://localhost:3333/dist/inspector.js). - Now you can make your modifications, make sure the changes are compatible with A-Frame and 8th Wall.
- Once you are happy with the changes, publish your repository on Github Pages, then replace the link in your 8th Wall project accordingly.