10-22-2022, 06:57 AM (This post was last modified: 10-22-2022, 06:59 AM by JuhaHo.)
I wonder if it's possible to mark particles in cache file to be deleted after simulation. Sometimes it's quite tricky to tune up the system without some particles getting extreme velocity. Those particles will fly though the walls and cause other unwanted things in system. I'm looking for a way to get rid off those particles so they never existed.
When working with PFlow, I exported simulation into individual mesh objects and deleted the bad particle objects. I also randomized their material too. That way I could get both: randomizing the particles shapes and their material; 10 x shapes and 10 x materials. Then I used the Supermesher plug-in from Boomerlabs at rendertime.
tyCache objects have a Culling rollout which contains many ways to remove particles from the cache. In your case you could use the volume mode, and just place a box in the scene around the area where you want particles removed...add the box as a volume culling object to the tyCache and they'll be removed.
I was hoping to be able to remove failed particles from cache directly - like they never existed. At the moment I'm tuning the system itself to avoid extreme particle speeds after collisions. I find that difficult.
I haven't been using caches in a while, but I think another method you can solve this is using a birth flow and flow update with your cache.
Then you can have property test (velocity) that you will connect with event that have delete operator.
Or you can use surface test (volume in/out) and also send particles to be deleted... or both...
(answers to question on your first post)
If you disable shape in your birth flow and flow update, you should be able to replace particles with new objects, using shape operator.
For randomized material you can use multi-sub object mat, and use Material ID operator with random parameter.
Here's screenshot made with my old workflow, but using tyFlow instead of PFlow. I limited particle amount to 10 000 (of 45 000 total). I selected and isolated the meshed particles. Then I selected the particles, to be deleted (127 of 10 000). I wish I could delete them visually within cache file.
In my old workflow after deletion, it would be the time to randomize the material. I have now 8 particles with different shape and material. After material randomization (of 8 materials) I would have 64 different particles. Then it would be time to use the Boomer supermesher as transfer format to render scene.