Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Skinned Cloth with Proxy
#8
(06-02-2020, 05:43 PM)kubold Wrote: Same in my case.

1. If I follow this tutorial: put Skinned Cloth and Skinned Cloth Renderer on the low poly mesh, and then Proxy to high poly mesh - the low poly has animated cloth, but high poly doesn't (and it should).

2. If I do it like in the example scene in the pack: put Skinned Cloth, Skinned Cloth Renderer and Cloth Proxy on the high poly model (and nothing on low poly) - the high poly changes itself to low poly mesh (!) and I get spammed with Errors (IndexOutOfRangeException: Index was outside the bounds of the array.)

So yes, the example in the pack works, but I can't replicate it, just like previous posters.

REPRO:

1. Get a hi poly model.
2. Make a low poly model by hand in a 3d modelling program (just like in the tutorial), but do not use just a part of hi poly model as your low poly model.
3. Follow the tutorial steps, except use Skinned Cloth instead of Cloth scripts.
4. Observe that hi poly mesh is not animated by the cloth on low poly mesh.

Hi,

Proxies won't work if the master blueprint is a skinned cloth and the slave mesh is a skinned mesh, different from the one used in the blueprint.

The reason for this is that Unity does not allow (in 2019.1 and up) to deactivate the skinning of a SkinnedMeshRenderer, not even partially. Previously you were able to supply a mesh with a weights array with zero-ed entries, or even an empty weights array, and the SkinnedMeshRenderer would still render you mesh, applying no skinning. Attempting to do this now raises an error.

This forces the slave skinned mesh renderer to be a simulated cloth itself, which defeats the purpose of using a proxy (what good is it to drive a cloth simulation using another cloth simulation?). Supported cases are:
- Master ObiCloth and slave mesh renderer.
- Master ObiSkinnedCloth and slave mesh renderer.
- Master ObiSkinnedCloth, and slave skinned mesh renderer as long as it's the same one used by the cloth. Useful in cases where part of the mesh is simulated, and other parts of the mesh driven by it. It's what we do in the CharacterCloth sample scene.
Reply


Messages In This Thread
Skinned Cloth with Proxy - by jp715 - 16-12-2019, 09:33 PM
RE: Skinned Cloth with Proxy - by josemendez - 16-12-2019, 09:34 PM
RE: Skinned Cloth with Proxy - by jp715 - 17-12-2019, 06:56 PM
RE: Skinned Cloth with Proxy - by ArsMagica - 22-01-2020, 04:20 AM
RE: Skinned Cloth with Proxy - by jp715 - 23-01-2020, 06:33 PM
RE: Skinned Cloth with Proxy - by jp715 - 03-02-2020, 05:47 PM
RE: Skinned Cloth with Proxy - by kubold - 06-02-2020, 05:43 PM
RE: Skinned Cloth with Proxy - by josemendez - 07-02-2020, 09:24 AM
RE: Skinned Cloth with Proxy - by khos85 - 25-07-2021, 05:55 PM
RE: Skinned Cloth with Proxy - by josemendez - 26-07-2021, 08:41 AM
RE: Skinned Cloth with Proxy - by khos85 - 26-07-2021, 08:15 PM
RE: Skinned Cloth with Proxy - by josemendez - 27-07-2021, 07:45 AM