Skip to content
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

Problem running the demos #170

Open
ghost opened this issue May 10, 2017 · 10 comments
Open

Problem running the demos #170

ghost opened this issue May 10, 2017 · 10 comments

Comments

@ghost
Copy link

ghost commented May 10, 2017

Hello there.
My name is Ivano Arrighetta and I'm Italian.
I tried opening the demos in both Firefox and Chrome, the latter with a webserver.
The only demo I was able to "see" was webgl_demo, but I can just see the plane.
No cubes, no physics.
Does ammo.js require something additional rather than just a web browser? (eg. node or something)

Thanks in advance for any help.

Bye, ivano.

@ghost
Copy link

ghost commented May 10, 2017

Yeah, I have just experienced this myself. I tried the links on the README and the "loading..." screen just showed forever. I opened up the development console and found that the browser is reporting that 'Ammo.btTransform' is not a constructor. I did some testing and found that 'Ammo' is a function that returns an object. So now every instance of Ammo should be Ammo()?

@ghost
Copy link
Author

ghost commented May 11, 2017

The code should be tested before a commit...

@kripken
Copy link
Owner

kripken commented May 11, 2017

We did change the API to be async, so Ammo() is needed. Perhaps not all the demos were updated for that, we should fix it.

@ghost
Copy link
Author

ghost commented May 12, 2017

When?

@kripken
Copy link
Owner

kripken commented May 12, 2017

As soon as someone finds time, fixing this does not depend on anything.

(Hopefully the docs are good enough to explain what needs to be done, but if not, if someone tries and gets stuck, feel free to ask me stuff, of course.)

@mrdoob mrdoob mentioned this issue Jun 14, 2017
@derivou
Copy link

derivou commented Nov 25, 2017

Is there a demo mixing ammo physics and skeletal animation (material.skinned = true) ?

@willeastcott
Copy link
Contributor

I had a go at this here. Needs a bit more work though.

@derivou
Copy link

derivou commented Nov 28, 2017

Oh thanks for confirmation ; that's nice. I use ammo.js with three.js and the object stays there (I can see the collision effect on others) but I'm afraid there is something with my code in Three.js because skin is not rendered as soon as I set material.skinning=true. OK ... have to dig more.

@willeastcott
Copy link
Contributor

Ahhh, can't help with Three I'm afraid. Maybe someone else here knows it. Good luck!

@derivou
Copy link

derivou commented Nov 28, 2017

Thanks however, at least I know ammo.js is not the problem. So, I have a direction to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants