Comments (3)
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.
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.
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)
- Publish all build configurations
- NVIDIAGameWorks/Blast/
- Is it possible to set combine mode of PxMaterial instance HOT 1
- Are there any metrics about performance of this library? HOT 4
- physx-js as ES6 module HOT 4
- Compilation errors HOT 1
- Allow specifying which configuration to build
- Unable to npm install HOT 3
- Collision detection does not work with versions > 0.0.6 HOT 1
- emscripten.xml missing HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from physx-js.