Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Reduce particles after blueprint created
#2
Hi,

If you wish to delete particles after the blueprint has been generated, you also need to delete all references to those particles: constraints referencing them, entries in the skinmap, . Otherwise you'll get OutOfRangeExceptions when these constraints attempt to access particles that no longer exist.

See ObiSurfaceSoftbodyBlueprint.cs. Make sure the batches in shapeMatchingConstraintsData contain no particle indices of particles you deleted. Also, the m_Skinmap object that holds influences of particles over mesh vertices should be recreated anew by calling its MapParticlesToVertices(); once you've deleted the particles.

kind regards,
Reply


Messages In This Thread
RE: Reduce particles after blueprint created - by josemendez - 25-03-2025, 08:11 AM