use-ammojs icon indicating copy to clipboard operation
use-ammojs copied to clipboard

is this project still going?

Open drcmda opened this issue 3 years ago ā€¢ 10 comments

looks really really interesting! would you be interested to make this pmndrs official with more help and resources?

drcmda avatar Aug 03 '21 15:08 drcmda

yes, I am still looking to solve the problem of more capable physics!

I also wouldn't mind this project getting more love at all, or making the (npm) name available for a better implemetation of the idea.

Out of curiosity what is your motivation for considering ammo? Mainly asking because there are also Javascript PhysX bindings available, which I probably would have considered more closely if I knew about them earlier.

notrabs avatar Aug 04 '21 19:08 notrabs

@drcmda @notrabs : What are next steps to make this "pmndrs official" with more support šŸ˜ƒ

I'm loving use-cannon so far and would appreciate the support for soft bodies and other features provided by Ammo (Bullet) over Cannon-ES.

I'd also be interested in contributing, with my experience in JavaScript, TypeScript, React, and recently Three.js. Thank you both for building such awesome projects! šŸŽ‰

there are also Javascript PhysX bindings available, which I probably would have considered more closely if I knew about them earlier.

@notrabs : Are you referring to https://www.npmjs.com/package/physx-js ?

Glavin001 avatar Sep 12 '21 21:09 Glavin001

@notrabs sorry i must have missed the notification, too much going on. the main problem with cannon is performance, it just doesn't keep up as the amount of items increases and that seems to be less of an issue with ammo. if these libraries are being developed on poimandres it might help to attract more devs, give it more attention, you can add your donation channels which might see more people chipping in, etc.

drcmda avatar Jan 06 '22 11:01 drcmda

Iā€™d love to contribute to this project, potentially this weekend. Would you be open to reviewing PRs or is this project no longer being maintained and should be forked? Regardless, thanks for getting this started!

Glavin001 avatar Jan 11 '22 07:01 Glavin001

Update: I've made progress updating use-ammojs to be a more feature complete alternative to use-cannon, such as adding constraints API and much, much more.

Check out:

  • Examples/Demos: https://use-ammojs-git-feat-examples-glavin001.vercel.app/
  • API Docs: https://use-ammojs-git-feat-examples-glavin001.vercel.app/docs/index.html
  • Super rough work-in-progress Pull Request: https://github.com/Glavin001/use-ammojs/pull/1

I need this for my own project switching from Cannon-ES to Ammo.js so I've temporarily published to @glavin001/use-ammojs

After using it for the past few weeks, I do think use-ammojs would be an awesome alternative to use-cannon for 3D physics! @drcmda @notrabs : Have you given any more thought to migrating the project to be pmndrs officially supported? šŸŽ‰ I'd love to continue contributing with the support of others.

Glavin001 avatar Feb 07 '22 04:02 Glavin001

Would you be open to reviewing PRs

@Glavin001 The new example interface is awesome, especially like the one with gears and the streamlining of the ammo build steps. I'd be happy to review the PR once its ready.

Have you given any more thought to migrating the project to be pmndrs officially supported?

I'd love for this project to go on, my only concern is that I currently don't have as much time for a passion project as I had last summer. At the same time moving it to pmndrs sounds like it would solve this problem, if that means having more contributions like @Glavin001's.

@drcmda What would be the requirements/next steps towards a migration?

P.S. I'm also available to chat on Discord @_seb#9739

notrabs avatar Feb 07 '22 14:02 notrabs

Progress Update: I'm still working on improvements/adding features to use-ammojs such that I can replace use-cannon in my projects. Once the essential features & performance are good, I'll polish the Pull Request and let you know it is ready for review.

The latest, I've added InstancedMesh support:

  • Instanced: https://use-ammojs-git-feat-examples-glavin001.vercel.app/stress?size=10&height=10&instanced=true
  • Not Instanced: https://use-ammojs-git-feat-examples-glavin001.vercel.app/stress?size=10&height=10&instanced=false

You can edit the query parameters to push Ammo.js & Three.js to the limits. On my machine 1000 boxes ā˜ļø was sufficient to show how InstancedMesh is superior.

It is impressive how powerful Three.js & Ammo.js are together! A couple more examples:

  • https://use-ammojs-git-feat-examples-glavin001.vercel.app/stress?size=5&height=100&instanced=true
  • https://use-ammojs-git-feat-examples-glavin001.vercel.app/stress?size=20&height=10&instanced=true

Glavin001 avatar Feb 19 '22 23:02 Glavin001

@Glavin001 @drcmda @notrabs do we have any update on the migration status regarding this project becoming pmndrs official?

fgarrec0397 avatar Jul 22 '22 20:07 fgarrec0397

I recommend https://github.com/pmndrs/react-three-rapier now. I hear Rapier is faster than Bullet/Ammojs and Rapier has official support for WASM.

Glavin001 avatar Jul 29 '22 04:07 Glavin001

tbf rapier doesn't feel as snappy as ammojs

DeveeiveD avatar Feb 21 '23 17:02 DeveeiveD