GithubHelp home page GithubHelp logo

Comments (3)

fabmax avatar fabmax commented on May 30, 2024

Ok, I think I solved it

Biggest problem was my own stupidity - I mixed up the files from the public release and my own build.

However another issue was the version of the emscripten docker image. By default docker pulls the latest version which now uses the upstream flavor of emscripten. I'm quite new to emscripten but apparently upstream loads the wasm module as a promise, which means the loader code has to be adjusted.

Essentially it now has to look something like this:

PhysX().then(function(PhysX) {
    // initializeStuff...
});

from physx-js.

ashconnell avatar ashconnell commented on May 30, 2024

Hi @fabmax glad you got it working!

I should have clamped the version of that docker image to prevent against breaking changes like that.

I wonder what other goodies emscripten have given us haha

from physx-js.

fabmax avatar fabmax commented on May 30, 2024

Alright got my setup working pretty nicely now, so I'm going to close this.

Btw. here's a little demo I made with this:
https://fabmax.github.io/kool/kool-js/?demo=phys-joints

It makes pretty heavy use of revolute joints and convex meshes therefore I had to add a few bindings. My binding code is pretty ugly right now, so hopefully I get that a bit better and can put it into a PR.

from physx-js.

Related Issues (11)

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.