For the physics simulation itself, see here!

Drawing with Physics


Physical laws may cause objects to interact in visually interesting ways. By combining these interactions with a more conventional digital paintbrush style approach, one can create interesting art.

An artist typically needs some control over their work, and if objects in the picture are capable of freely interacting in any physically correct way at any time, they can take over the drawing. Below are some parameters inroduces in physics-tank to provide control.

We can now go over some of the interesting visual effects we can produce with physics.

Tubes


[Preset #2]

When one shape is drawn on top of another in two-dimensions, the viewer may infer that the former is closer to them than the latter. When a shape is drawn on top of a shape drawn on top of a shape, it appears closer stil, conveying depth.

By letting a traveling shape leave a trail in the form of afterimages of itself at previous locations, one can create the impression of three-dimensional tubes.

Tubes

This occurs when the border of the shape can be visually distinguished from its interior. If the shape is moving too slowly or the contrast between the border and interior are too low, the trajectory of the shape will appear as a solid line.

In physics-tank, such behavior occurs as long as discs are moving and leaving trails.

Cascades


[Preset #3]

When shapes move, their after-images are drawn at a constant rate. This means that they appear to be getting closer at a constant rate. However, the shapes themselves may move up, down, left, and right at all sorts of speeds.

When a shape moves down quickly, its trajectory has the appearance of a tube with a steep downward incline. By drawing the trajectories of many shapes traveling downward (e.g. due to downward gravity) from similar starting points, one can create the impression of hills and cliffs.

Cascades

When the trajectories of shapes are drawn on top of the trajectories of other shapes, the structures conveyed by the former are implied to be in front of the structures conveyed by the latter.

In physics-tank, such behavior occurs when downforce is reasonably high.

Vortices


[Preset #4]

If a shape is orbiting around a moving target, its trajectory will appear as a helix. If many shapes are orbiting around each other while drifting in a shared direction, their trajectories will together form a multi-helix.

Vortex

When a shape escapes orbit around another, it will spiral outward. When many shapes spiral outward, their trajectories will appear as vortices viewed from above.

In physics-tank, such behavior occurs when gravity is fairly high and coefficient of restitution is relatively low. When these properties are set, discs will appear to become trapped in each others' orbits after losing energy to collisions. However, errors due to positional corrections etc. will introduce speed in the direction of orbit which a low coefficient of restitution will not reduce. As a result, discs stuck to each other by gravity will accumulate tangential speed and eventually resume orbits or spiralling escape trajectories.

If friction is also high, discs will become trapped together by gravity and may even form "planets" composed of multiple discs.