|On this page|
There are several ways to fracture geometry using various shelf tools. For example, you can cut up geometry by using the Shatter tool tool on the Model tab of the shelf, or fracture a dynamic object by using the RBD Fractured Object tool on the Rigid Bodies tab of the shelf. You can also dynamically smash an object by using the Make Breakable tool on the Rigid Bodies tab of the shelf.
The following is a detailed example of how to auto fracture geometry without using the tools on the shelf.
Load geometry into the Houdini environment. Make sure all file operations use
$HIPas you will need to reference the file if using a render farm for the final simulation.
Analyze the geometry prior to fracturing, make sure all points on the geometry are fused and the object is correctly transformed in correspondence with the XYZ axis to get clean & precise collision geometry.
Boolean and apply Voronoi SOP
To constrain the fracture to a specific area use a Cookie SOP in conjunction with the Voronoi Fracture SOP. This will divide the geometry into individual pieces, creating interesting fractures with cracks generated over a period of time rather than the entire geometry breaking upon impact.
The Voronoi Fracture SOP creates clean fractured geometry and works well in conjunction with fracture DOP.
Using this tool will increase simulation time as it effectively calculating multiple fractures for each new piece of geometry.
There is also an OTL called Exploded View which transforms each piece of geometry by a set amount from the centroid of the object, allowing you to view the interior faces of the shattered geometry.
Check the names of groups
When an impact is detected using the Voronoi Fracture Configure Object DOP the algorithm creates vast quantities of new geometry, which are allocated a group and labeled to correspond with the initial geometry.
As large amounts of data are generated upon impact, consider a clear and understandable naming convention so the groups can be easily deciphered later in the process.
Import to DOPs
Load the geometry into DOPs. If you are using a single piece of geometry, use an RBD object. If the geometry has been pre-fractured, use an RBD glue object.
Check Collision Geometry
Make sure you check that the collision geometry is precise, since this tool is using rigid body dynamics and is developed to shatter geometry when a force is applied.
Keep the resolution of this collision geometry to a controlled number of divisions, as it will affect the simulation time of the scene.
Setup Impact Geometry
One of the first things that you must do after importing the geometry into DOPs is to setup and align the object that is going to collide with fractured geometry.
Altering density, friction, and bounce settings make a considerable difference to the simulation. For example, the Density field can be used to control factors such as how far the impact geometry will penetrate.
Constraints are very important since this tool is based around forces and impacts. For example, when working with a scene which incorporates a building or any object where a solid base will be retained, constraints will be required. However, it is not possible to assign a pin constraint directly to a individual piece of geometry for the entire sequence, since the group names change every time a fracture occurs.
This issue can be solved by grouping the dynamic objects and referencing this dynamic object group in the constraint.
Apply & Configure Autofracture
Once the previous steps have been implemented, assign the Voronoi Fracture Configure Object DOP to the specific pieces of geometry and customize accordingly.
There are a number of features within the Voronoi Fracture Configure Object DOP tool which can be used to solve certain problems or achieve certain effects.
If an impact or force causes a large section of geometry to fracture from the opposite side of the model to the point of impact, on the Points tab of the Voronoi Fracture Configure Object DOP, increase the Point Density and set the Scatter Location to either Both or Exterior Volume. This should solve any unwanted fractures occurring.
To gain the effect of geometry exploding from the surface or being forced out of its location the Normal Impulse Scale and Radial Impulse Scale parameters on the Velocity Transfer tab will help achieve this look. The Impulse Distance parameter also has to adapted to depending on the size of the scene.
Interior Detail and Cluster
The pieces of geometry generated by the fracture tool are clean and good to work with but can appear uniformed. There are a couple of different ways to resolve this matter.
On the Fracture tab, there are two subtabs: Interior Detail and Cluster. Interior Detail divides the geometry and applies a noise value to deform the surface, which is useful for generating additional information but can affect the way the fractured pieces react to each other and cause them to stick together. The Cluster tab controls how the pieces connect together and their release can be controlled by the seed value. This again is good for adding detail but they often look like large uniformed pieces rather than different geometry.
When using boolean geometry, to help increase the physically accurate properties of the simulation, apply an additional Voronoi Fracture Configure Object DOP to the neighboring geometry so that upon impact any sections that are in contact with the fractured geometry will crumble and remove any uniformed edges.
Setup Post-Fracture Constraints
If you have setup the initial constraints using an expression to group the base geometry, the following step is not required unless you wish to constrain any additional geometry.
When a fracture being initialized, the geometry is renamed and put into a new group. This means that a single constraint cannot hold a fractured object through an entire sequence. You will have to find the names as the simulation is calculated and create secondary constraints.
To enhance the accuracy and detail of the simulation, increase the substeps at the Object level. This will resolve any problems where the geometry fractures a frame before impact, and will help reduce any unwanted penetrations.
Simulation and Export
Once the simulation is setup for the required effect, it can be simulated locally or through a Render Farm.