16-05-2019, 04:10 PM
(14-05-2019, 08:09 AM)josemendez Wrote: Seems Unity 2019.1 contains another -afaik undocumented- change in the way bone weights are assigned to a mesh. It performs a check to see whether the bone weights match the bone indices, so it does no longer allow empty bone weight arrays (that we used to deactivate built-in skinning for cloth). In previous Unity versions, empty bone weight arrays were not an issue.
As a workaround, in 2019.1 we've resorted to use a full bone weight array with all weights set to zero. This is suboptimal, but it's the only thing that works as of now. Find the attached ObiCloth.cs file and replace it in your project.
We will include this patch in the next update.
Hey, I tried the new script; for me this also does not work, get an error (see below) in Character Cloth Demo Scene , Unity 2019.1.1f1. Also tried other things mentioned here, increasing max bones, change optimize mesh.
Seems to render now, but lots of errors in console, and rendering seems completely broken.
Assertion failed on expression: 'offset + size <= bufLen'
0 Unity 0x00000001085c621f _Z13GetStacktracei + 95
1 Unity 0x000000010af66263 _Z17DebugStringToFileRK21DebugStringToFileData + 355
2 Unity 0x000000010af63e6f _Z20AssertImplementationiPKciS0_ + 111
3 Unity 0x000000010afd6ce1 _ZN11BufferMetal10BeginWriteEmmb + 657
4 Unity 0x000000010afd69cd _ZN18GfxDeviceMetalBase12UpdateBufferEP9GfxBufferPKv20GfxUpdateBufferFlags + 93
5 Unity 0x00000001091aad02 _ZN15GfxDeviceWorker10RunCommandER20ThreadedStreamBuffer + 44642
6 Unity 0x000000010afdb38c GfxDeviceWorkerAutoreleasePoolProxy + 60
7 Unity 0x00000001091acd30 _ZN15GfxDeviceWorker6RunExtER20ThreadedStreamBuffer + 176
8 Unity 0x000000010919f9d8 _ZN15GfxDeviceWorker18RunGfxDeviceWorkerEPv + 152
9 Unity 0x0000000109f0e4af _ZN6Thread16RunThreadWrapperEPv + 1391
10 libsystem_pthread.dylib 0x00007fff6a788305 _pthread_body + 126
11 libsystem_pthread.dylib 0x00007fff6a78b26f _pthread_start + 70
12 libsystem_pthread.dylib 0x00007fff6a787415 thread_start + 13