Ein Tutorial von Mihai Panait
Tutorial Length 10:00 min.
To create this thinking particle system we need one particle group witch will contain all the falling geometry. In this group we will define the Shape Collision Dynamics for these particles – deformation and other parameters.
We also need three Master Dynamic Groups.
The first one will be named „create“, and will contain the „Object To Particle“ Operator. This will add the objects created in the scene to the objects particle group.
The second will be named „forces“ and will add a force to the object particles group to make them fall.
The third will be named „dynamics“ and will contain the Shape Collision Operator and a node for the floor plane. This will handle the collision between the objects and the floor.
Go to the Create Tab.
Click on the Geometry button.
Click on the Box button. In the Perspective view click and drag to create the floor.
Increase the length and width segments to 20.
Create another Box and a sphere in the perspective view and move them above the floor plane.
Click Control C to create a camera from the perspective view.
Rename Box 1 object to floor.
Also rename the other two objects in the scene.
Now let’s add The Thinking Particles Object.
Click on the create Tab.
From the dropdown list choose Particle Systems.
Click on the Thinking Button.
In the Perspective view click to create the particle system.
click on Properties Button to open the Thinking particles user Interface.
Click Edit On the Fly Button to disable it. This will make the changes visible in the viewports.
In the master System group create a group and rename it to Objects.
In the Master Dynamic Create a Dynamic set and name it creation.
In the create rollout click on the Operators Button. from The dropdown list choose Generator.
Select Object to Particle Operator and add it to the Creation Dynamic Set.
Click pick Object Button and add the two objects from one of the views.
Select both from the list and add them to the Objects Group.
Enable Instance Shape to view the particles as geometry. Hide the Objects. Click on Master Dynamic and enable show mesh.
Now you can see the particles shape in the views.
Click on Master Dynamic.
Create a new Dynamic Set and name it Forces.
From The operators Dropdown list choose Dynamics. Add the Force operator to the Dynamic Set.
From the Dropdown list choose Initiator. Add the P Pass Operator to the set. From the group rollout choose Objects.
Click on The Helpers Tab. Add a Point 3 helper to the set. Connect the vector Output to the Direction Input of the force Operator.
Set the z value of the point 3 helper to minus 1.
Select the force operator. Increase the strenght value to 100.
Drag the timeslider to see how the particles are affected.
As you see the objects pass through the floor.
Select the Master Dynamic. Create one more Dynamic set and name it Dynamics.
From the Operators dropdown list choose Dynamics.
Add a Shape Collision Operator to the Dynamics Set.
Select the Helpers Tab.
Add the node helper to the set.
Connect the Node output of the helper, to the Floor Node input of the Shape Collision operator.
Select the Node Helper. Click Pick node Button and select the Floor object from one of the views.
Select the Shape Collision Operator. From the Group dropdown list choose Objects.
Drag the time slider to view the changes.
As you see the objects interact with the floor but they don’t deform.
In the Thinking Particles User Interface Select the Objects Group.
In the Shape collision Operator Group set Deformation Max Depth to 20.
Radius to 20.
Impulse Threshold to 75.
Drag the time slider to see the changes.
As you see the box object passes through the floor.
The Sphere hits the floor and deforms.
To solve this problem wee have to increase the number of segments for the floor plane.
Select the floor and set the length and width segments to 80.
Check to see the changes.
Both objects hit the floor but when they colide the box still passes through the floor.
Increase the Floor segments even more. Set the length and width segments to 100.
This solves the problem in this case. If you have smaller objects hitting the floor you may have to increase the segments number even more.
Another possible solution is to increase the voxel grid value for the particles group and for the floor.
If you think the particles deform to much you can decrease the Deformation Max depth and the radius for the objects particle group. If Deformation max depth value is too big the object may pass through the floor.
Now you can create more objects and add them to the Objects Group.
Feel free to change other parameters in the Shape Collision Operator to obtain the look you want.
Change Elasticity spinner to control the bounce strength between inter-particle collisions.
Change Dynamic Friction spinner to set the friction between particles when they collide with each other. Be aware that this power loss happens only on impact.
Change Static Friction spinner to set the friction between particles when they are in contact with one another. Higher Static Friction values will make the particles slide less.
Das Videotutorial und die Szenenfiles gibts hier.
Danke an Mihai Panait für dieses Thinking Particles Tutorial.