uScatter
Fill a Jar
Fill a closed Cylinder with sweets and dice in the Volume Type, with a per-volume count, a margin, tumbling, a half-full pile and a stacked grid.
The following workflow shows how to fill a glass jar with sweets and dice. It uses the Volume Type, which fills closed objects in true 3D: the mode for piles, bowls of fruit, debris in a crater or a swarm in a box. It assumes you can create a field, as in Creating Your First Scatter.

The Scene
Start with a jar and the two things to fill it with:
Jar– a capped Cylinder at the origin, radius60and height120. A volume must be closed, with a well-defined inside, and the caps close it. Make it see-through so you can watch it fill.Sweet, a sphere of radius4, andDie, an8 × 8 × 8box, both off to the side.
Fill the Jar
- Create a uScatter object named
Contents. - In General, set Type to Volume. Volumes appears, Surfaces disappears, Areas is retitled Areas (plan), and the stack entry reads uScatter Volume.
- Add
Jarto the Volumes list, andSweetandDieto Objects. SetSweet's probability to3. - In Display, set Draw as to Mesh and Style to Full.
100 instances fill the jar from bottom to top. In this Type, Mode in the General Rollout has its own items, Count, Per volume and Grid, and starts at Count.

Count by Volume
- Set Mode to Per volume and Per volume to
100000. The hidden Count of100now applies per100,000cubic units: the jar holds about 1.36 million, so about1,350instances appear. - Set
Jar's Height to60. Half the volume holds half the instances, at the same density. Set it back to120.
Per volume is in cubic units: a 10-unit cube is 1000.

Keep Them Inside and Tumble Them
- Instances poke through the glass, because a placement can sit right at the shell. In Volumes, set Margin to
4, about half a die's width, to keep them 4 units inside. - The dice still turn only about Z. In the Rotation group of Transform, set Max X and Y to
360, so every instance tumbles in all three axes.
There is no Normal influence in this Type: inside a volume there is no surface to align to, so up is world Z.

Fill Only the Bottom
- In Volumes, tick Limit altitude and set Max height to
50and Falloff to15. The jar is full to a height of 50, and the pile thins out over the next 15 units instead of ending in a flat layer.
The band is measured in world Z. There is no Measure row, because a volume has no distribution surface to measure from.

Stack the Dice on a Grid
- In Objects, select the
Sweetrow and set State to Off. The sweets disappear and their share goes to the remaining row; the row keeps its probability and settings. - In General, set Mode to Grid and Distance to
10. The dice sit on a regular 3D lattice, 10 units apart, anchored to the world origin. - In Transform, untick Rotation, so the dice line up square.