GPUClothSimulationInUnity icon indicating copy to clipboard operation
GPUClothSimulationInUnity copied to clipboard

Display error of running program unity

Open weiyu666 opened this issue 2 years ago • 3 comments

企业微信截图_8cca59d1-9d9e-40ee-a0b4-c76889af3c7d

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)`

weiyu666 avatar Feb 21 '23 06:02 weiyu666

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!

nixon-voxell avatar Feb 22 '23 04:02 nixon-voxell

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

weiyu666 avatar Feb 27 '23 03:02 weiyu666

for gpu accelerated cloth simulation in unity, here is one that I looked at when starting out: https://github.com/Ninjajie/Fusion

nixon-voxell avatar Feb 27 '23 03:02 nixon-voxell