-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Working Glitch example using AFrame #2
Comments
Try adding gl-matrix to the importmap as well, I remixed your glitch and that seems to have fixed the error |
Thanks @msub2 it does indeed remove the error, yet if I run |
@msub2 thanks for jumping in! @Utopiah thanks for raising this issue! What's happening here is that IWER wasn't injected before aframe is able to run - when aframe first runs on the page, it will try to detect whether there is native WebXR implementation by looking at the navigator.xr object. In your code, IWER was injected after aframe script is run, causing aframe to not find native WebXR implementation at start up, and aframe injected its only WebVR polyfill as a result. |
I remixed your project and hooked up some keyboard shortcuts that controls the camera movement (you need to click on the vr button first to use those): https://glitch.com/~bird-curvy-quartz |
It's kinda tricky, and I have this point documented here: https://meta-quest.github.io/immersive-web-emulation-runtime/getting-started.html#creating-an-xrdevice-and-installing-the-runtime But probably not noticeable enough and I've a feeling more folks are gonna run into this issue. Sorry for the confusion! |
Alternatively, instead of importing the /lib/index.js and having to include gl-matrix as well, just import the /build/iwer.module.js: <script type="importmap">
{
"imports": {
"iwer": "https://unpkg.com/iwer@<version>/build/iwer.module.js"
}
}
</script> Check out my threejs integration example: https://glitch.com/edit/#!/iwer-three-example |
Added a few framework-specific integration examples on Glitch: |
Marking issue as closed |
Hi, just gave the documentation a test at https://glitch.com/edit/#!/iwer-on-aframe?path=index.html relying on the CDN import example https://meta-quest.github.io/immersive-web-emulation-runtime/getting-started.html#import-iwer-from-a-cdn
Unfortunately it leads to
while using
so wondering what should be done.
The text was updated successfully, but these errors were encountered: