Giter Site home page Giter Site logo

WebXR Fails to Load about magnum-examples HOT 6 OPEN

mosra avatar mosra commented on August 15, 2024
WebXR Fails to Load

from magnum-examples.

Comments (6)

Squareys avatar Squareys commented on August 15, 2024

Hi @TylerSeppala !

I saw the email first and replied there, but here's a summary for anyone who comes across this issue:

  • library_webxr.js is from emscripten-webxr, which has received some updates, but nothing directly relating to the dynCall() error you have here. You might find useful cmake flags there and using that repository as a subproject allows you to link to it like a static library.
  • Port forwarding should not be related here, that works fine with emscripten-webxr.

Which emscripten version are you using?

from magnum-examples.

TylerSeppala avatar TylerSeppala commented on August 15, 2024

Alright, good to know. I'm using emscripten 3.1.1

from magnum-examples.

TylerSeppala avatar TylerSeppala commented on August 15, 2024

New developments:

I just decided to go all the way back to emscripten v1.39.4 because that was the version around the time this code was written... and it kind of works. I can now enter VR and see everything just fine, but it seems that shading isn't working properly. The sides of the cubes that are supposed to have any amount of shadow are completely black.

So it seems the problem is definitely surrounding the emscripten version. Maybe I just need to find the right version?

from magnum-examples.

TylerSeppala avatar TylerSeppala commented on August 15, 2024

This is the new error I'm getting... mean anything to anyone?

Uncaught TypeError: Cannot read properties of null (reading 'transform')
at _webxr_get_input_pose (magnum-webxr.js:6621)
at magnum-webxr.wasm:0x4032
at magnum-webxr.wasm:0x72fd
at magnum-webxr.wasm:0x3874
at magnum-webxr.wasm:0x4afef
at Module.dynCall_viiii (magnum-webxr.js:7156)
at dynCall (magnum-webxr.js:538)
at XRSession.onFrame (magnum-webxr.js:6698)

from magnum-examples.

Squareys avatar Squareys commented on August 15, 2024

Whew, so much trouble, I wonder how this is working so well for us 🤔
We're on 2.0.23 at the moment. With a bit of luck that might the version that works for you, too?

from magnum-examples.

TylerSeppala avatar TylerSeppala commented on August 15, 2024

Thanks, I'll definitely try that in the morning!

from magnum-examples.

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.