nialltl / incremental_mpm

2D implementation of MLS-MPM for simulating soft bodies and fluids
https://nialltl.neocities.org/articles/mpm_guide.html
MIT License
343 stars 28 forks source link

Instructions on opening/running project? #1

Open Makogan opened 1 year ago

Makogan commented 1 year ago

I have unity installed on my machine and I have tried opening this demo but I have been unsuccessful. A short helper telling people how to run the demo might be beneficial for people with little unity experience.

nialltl commented 1 year ago

hey Makogan, thanks for writing. can you let me know which unity version you're running it on and where you get stuck? i know a lot of the parallelisation code depends highly on the exact version of unity and associated packages ('burst', 'mathematics') you have installed, and the unity ecosystem has changed a lot in a short space of time. i don't think i could write a generic set of demo instructions at this point but i'm happy to try and help with individual cases, particularly if it's giving you specific error messages.

yabadabu commented 6 months ago

I got the same problem after installing the exact Unity version described in the project. Updating Burst and entities to the last version generated another error:

BurstCompilerOptions.cs(549,34): error CS1061: 'BurstCompileAttribute' does not contain a definition for '_disableDirectCall' and no accessible extension method '_disableDirectCall' accepting a first argument of type 'BurstCompileAttribute' could be found (are you missing a using directive or an assembly reference?)

But reversing Burst to version 0.2.4-preview.50 has fixed the problems. The reference to the Instance.mesh has also lost. Adding a sphere fixed the problem.