Git Product home page Git Product logo

Comments (2)

felixtrz avatar felixtrz commented on June 22, 2024 1

UPDATE: there indeed is a problem with the emulator, during migration to MV3, the way that the custom WebXR Polyfill is injected has changed. I can no longer inject it correctly in the experience via the "content_scripts" property of manifest.json. Instead I have to do so programmatically via the service worker of the extension, via chrome.scripting.registerContentScripts. In order to inject this into both the main page and its iframes, I had to specify all_frames: true prior to MV3 in "content_scripts", but with the new registerContentScripts method, this property was no longer accepted, and instead they renamed it to allFrames. And I forgot to add it in, lol.

I will submit a new version to Chrome Web Store by EOD

from immersive-web-emulator.

felixtrz avatar felixtrz commented on June 22, 2024

Hi, unfortunately the emulator is not working for me, with either three.js or A-Frame samples (pls see attached screenshots, tested in Edge). It does work with the babylon.js samples and the immersive-web samples. Have I done smth wrong, with the the setup, or any ideas what might be the problem here?

best regards :)

image image

Hey there!

Thanks for bringing this to my attention, this is indeed a strange problem, one that I haven't seen before.. I tested the emulator with the most barebone example of WebXR: https://immersive-web.github.io/webxr-samples/immersive-vr-session.html, and it worked as expected.

And then I discovered this: when I go to https://threejs.org/examples/?q=vr#webxr_vr_ballshooter, which is the example you are showing in this example side bar view, the button indeed shows VR NOT SUPPORTED, but if I go straight to https://threejs.org/examples/webxr_vr_ballshooter, without the examples side bar, the VR button is back and it works as expected.

Same story with A-Frame, I was able to find the hellovr main page, but similarly https://aframe.io/examples/showcase/a-painter/ did not work and https://aframe.io/a-painter/ worked.

I highly suspect that it has something to do with iframe, the non-working versions of the experiences you mentioned are all in iframes, go to their main page without the iframe, and it works again.

from immersive-web-emulator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.