Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Dress does not fall linearly
#1
Dear Jose,

Again, thank you very much for your help. Gran sonrisa

Finally what we decided to do next:

1) We manually made a copy of the original Blueprint ("blueprintCopy").

2) We generated a temporary blueprint ("blendShapeTemporal"), based on the bakedMesh obtained from the mesh with the blensdhapes applied.

3) We only copy the attributes "positions" and "restPositions" from the blueprintTemporal to the blueprintCopy.
Code:
for (int i = 0; i < blueprintCopy.particleCount; ++i)
{
            blueprintCopy.positions[i] = blueprintTemporal.positions[i];
            blueprintCopy.restPositions[i] = blueprintTemporal.restPositions[i];
}

4) we assign the blueprintCopy to the cloth.

Code:
vestidoCloth.skinnedClothBlueprint = blueprintCopy;

This way we get a blueprint with the positions of the particles based on the mesh with the blendshapes applied, and keeping the other attributes according to the original blendshape.

With that we get the following result:

[Image: blueprint_nuevo_2.jpg]

[Image: blueprint_nuevo.jpg]



Regarding this, we have the following questions:

- Why does the dress not fall in a linear way from the border when the "skin radius" is greater than zero (following the location of the particles defined in the blueprint), but rather falls into the shape of the dress?

- How can we make the dress fall linearly downwards when the "skin radius" is greater than zero, preventing the dress from going inside?

- What is the correct way to copy a blendshape using the Instantiate() method? Could you please give us an example of its use?

- If we only want to change the location of the particles (according to the mesh with the blenshapes applied) and keep the rest of the attributes of the blueprint, is it correct to only copy the "positions" and "restPositions" attributes, or should we copy something else?
Thank you in advance for your help!
PD: Le enviamos por e-mail esta misma consulta en español. Desde ya le agradeceremos su ayuda, pues estamos entrampados con esto. Huh
Reply


Messages In This Thread
Dress does not fall linearly - by nexar - 25-08-2020, 07:09 AM
RE: Dress does not fall linearly - by josemendez - 25-08-2020, 07:41 AM
RE: Dress does not fall linearly - by nexar - 03-09-2020, 05:32 AM