Pricing

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.

Finished jar - dice stacked on a 10-unit lattice in the bottom of the jar
Finished jar

The Scene

Start with a jar and the two things to fill it with:

  • Jar – a capped Cylinder at the origin, radius 60 and height 120. 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 radius 4, and Die, an 8 × 8 × 8 box, both off to the side.

Fill the Jar

  1. Create a uScatter object named Contents.
  2. In General, set Type to Volume. Volumes appears, Surfaces disappears, Areas is retitled Areas (plan), and the stack entry reads uScatter Volume.
  3. Add Jar to the Volumes list, and Sweet and Die to Objects. Set Sweet's probability to 3.
  4. 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.

Mode Count - 100 sweets and dice through the whole jar
Mode Count

Count by Volume

  1. Set Mode to Per volume and Per volume to 100000. The hidden Count of 100 now applies per 100,000 cubic units: the jar holds about 1.36 million, so about 1,350 instances appear.
  2. Set Jar's Height to 60. Half the volume holds half the instances, at the same density. Set it back to 120.

Per volume is in cubic units: a 10-unit cube is 1000.

Per volume 100000 - about 1,350 instances filling the jar
Per volume 100000

Keep Them Inside and Tumble Them

  1. 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.
  2. 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.

Margin 4 - the contents held inside the glass, tumbled at every angle
Margin 4

Fill Only the Bottom

  1. In Volumes, tick Limit altitude and set Max height to 50 and Falloff to 15. 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.

Limit altitude, Max height 50 - the jar half full, the top of the pile ragged
Limit altitude, Max height 50

Stack the Dice on a Grid

  1. In Objects, select the Sweet row and set State to Off. The sweets disappear and their share goes to the remaining row; the row keeps its probability and settings.
  2. 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.
  3. In Transform, untick Rotation, so the dice line up square.