In this tutorial we relate how to fill a recipient and then pouring its content into the test-bowl.
FILLING A RECIPIENT WITH Glu3D PARTICLES
To fill objects with particles we have two ways that are detailed in Filling Objects with glu3D particles tutorial. Lets use the automatic mode to fill our glass with particles.
For this example-tutorial we use Y axis Up. So vertices coordinates are refered to that coordinate system. Playback range is set from 0 to 200.
CREATING THE GLASS RECIPIENT
- Create a polygonal cylinder: Create / Polygon Primitives / Cylinder. Use the following parameter table for the cylinder:
- Radius: 2.0
- Height 3.0
- Subdivisions Around Axis: 15
- Subdivisions Along Height: 1
- Subdivisions on Caps: 1
- Select the top faces of the polygonal cylinder and delete them.
- Place the glass in space position: (0.0, 1.743, 4,153)
FILLING GLASS WITH glu3D PARTICLES
- Push glu3D shelf button in the Shelf. glu3D Control Panel will appear. A bowl is created by default. A glu3D source is placed in Maya scene with a LOD of 50.
- Select test-bowl that glu3D creates automatically and hide it ( ctrl+h). This is to avoid it filling automatically with glu3D particles. By default hidden objects are excluded from any calculation. You can modify this behavior in Advanced section in Attribute Editor.
- Select gluEmitter and make Attribute Editor appear. Select Go to Fill Objects section and select Fill Objects check-box. The Filling Percentage check-box will be activated with an initial default percentage (60%). glu3D ask you to discard previous dynamic calculations. Answer YES. Give a while to glu3D to fill the object with particles.
- PLAY scene to make particles reach a stable configuration and to adapt to the object geometry. After aproximately 150 frames, glu3D particles are more or less stable. Go to Advanced section in Attribute Editor ( for gluEmitter) and press Make Now First Frame button ( the long one). This deletes previous calculations and set this stable situation the first frame of the animation.
ANIMATING GLASS
- Select the filled glass.
- Move time slider to frame 10 and press s key to set a keyframe at that time.
- Move time slider to frame 60
- Select rotation tool and rotate the glass 90 degrees.
- Press s key to set a keyframe at this time.
- Un-hide test-bowl by pressing ctrl+shift+H.
- PLAY scene to let glu3D calculate dynamics.
- If you like animation result, start from filling again with a more detalied liquid, for example LOD 1000 (High).
- Once you have dynamics calculated, go to Surface section in Attribute Editor for gluEmitter and select Show Mesh Surface. Adjust Mesh Accuracy control to get correct polygon density.
- REPLAY animation to let glu3D to calculate polysurface envelope for glu3D particles.
Click on image to play movie