GPUClothSimulationInUnity
GPUClothSimulationInUnity copied to clipboard
Display error of running program unity
Or display such an error: `UnassignedReferenceException: The variable clothSolver of GPUClothSimulation has not been assigned. You probably need to assign the clothSolver variable of the GPUClothSimulation script in the inspector. GPUClothSimulation.SimulateOneTimeStep () (at Assets/GPUClothSimulation/Scripts/GPUClothSimulation.cs:137) GPUClothSimulation.Update () (at Assets/GPUClothSimulation/Scripts/GPUClothSimulation.cs:113)
NullReferenceException: Object reference not set to an instance of an object GPUClothSimulationLegacy.DispatchKernels () (at Assets/GPUClothSimulation/Scripts/GPUClothSimulationLegacy.cs:445) GPUClothSimulationLegacy.FixedUpdate () (at Assets/GPUClothSimulation/Scripts/GPUClothSimulationLegacy.cs:204)
IndexOutOfRangeException: Index was outside the bounds of the array. GPUClothSimulation.Start () (at Assets/GPUClothSimulation/Scripts/GPUClothSimulation.cs:97)`
as mentioned in #5 , this project is really in a paused state for now until further announcement xd.
for now, I can only point you to some resources:
PBD / XPBD by Matthias Muller for collision you can look for:
- Binary volume hierarchy (https://developer.nvidia.com/blog/thinking-parallel-part-ii-tree-traversal-gpu/)
- or you can use Spatial Hashing by Matthias Muller (again xd)
hope it helps!
In China, I saw that this course has just started, but it is still very difficult. I haven’t done it before and feel that I can’t do it hahaha. Are there any open source libraries or recommended projects? https://mp.weixin.qq.com/s?__biz=MzI0MTY1NTk1Nw==&mid=2247494025&idx=1&sn=0ca74940772751667a1cc531cbb4b1c5&chksm=e90ae073de7d6965a2a3018fdba725e3dd983761658aef519122609cb579385b5c0108bb11f8&mpshare=1&scene=23&srcid=0227nW6IIc90RNkH445zDlKi&sharer_sharetime=1677460473590&sharer_shareid=16adbc0aa70dfdd7612e89590a369419#rd
for gpu accelerated cloth simulation in unity, here is one that I looked at when starting out: https://github.com/Ninjajie/Fusion