The Problem: Chaos Fracture tools are great for creating destructible geometry in the editor, but the chaos physics runtime can be too expensive on the CPU to drive a lot of cosmetic destruction of props in your scene.
The Solution: Niagara Destruction Driver turns CHAOS destructibles (Geometry Collection assets) into very performant GPU simulated destructible static meshes driven by Niagara particles.
SETUP + USAGE
getting started info in the github README.
Under the Hood
(can’t add architecture diagram since I’m a new user… but it’s up on github)
Under the hood the plugin uses a niagara system to simulate the physics of the fragments (bones) on the GPU, write their transforms to render targets, and finally a vertex shader to constrain the vertices of a specific fragment to its respective bone using the render targets.
Next Steps
There’s a rough roadmap up on the github README.
Hit me up on here or on twitter (@eanticev) if you’d like to contribute.
There’s some half-finished code in the material for smearing that’s not active ATM. Essentially you have to do double the render targets (keep previous and current positions and use those in the material to clean up motion vectors) … this should prevent smearing. Haven’t finished that work, but in our original version at the studio we did fix AA and motion blur smearing with this technique.
If you open an issue on github I can try to finish this.
Ah, was mostly curious cause I usually “fix” it by passing in motion vectors as a separate target, but noticed you got away with not doing that. So I thought you had a fancy way of fixing it
Do you keep a copy of the rotation target to deal with rotational velocity?