On this page |
There are several MPM Configure examples available through the tab menu. These are similar to shelf tools that put down networks of nodes for learning purposes. The MPM Configure Softbody example illustrates the use of the “elastic” Rubber material type. It puts down a simple network of nodes to turn the pig head test geometry into a rubbery material.
Important nodes ¶
pig
This is the MPM Source that uses the Jello material preset. Oversampling and Relax Iterations are turned on to pack the points more densely and give them a more even distribution, respectively.
It also has Pin Constraints and Enable Animation turned on, which outputs the source points on each frame such that they can be animated downstream before being passed to the MPM Solver. This means that the MPM Solver will look at whatever is happening upstream at every frame and match the changes in position. Having this checkbox turned on means that the points are able to flow from the MPM Source to the MPM Solver, instead of being deleted.
isolate_inside_sdf
This is a Sub-Network that contains some VDB operations to create an SDF of the inner core of the pig model.
pin_points_to_anim
This Attribute Wrangle takes all of the points inside of the core and pins them in space, allowing the ears and nose to move around freely.
anim
This is the animation of the pig head oscillating on the Y axis.
mpmcontainer
This setup uses a default MPM Container, which defines the resolution of the simulation using the Particle Separation parameter.
mpmsolver
This setup uses a default MPM Solver, which does the work of solving the scene. Since Enable Animation is checked on the
MPM Source, the solver knows that there is only one frame of emission. Only the core is animated and the rest of the points in the pig head are being simulated by the solver.
pig_head_geo
, first_frame
, retarget
, subdivide
These nodes are just doing simple point deform retargeting. It looks at the pig head geometry on the first frame and remeshes the points.
Learning from this example ¶
-
Select the
MPM Solver and angle the camera to look inside the mouth to see the pinned points.