Elements
Turn pictures, text, sound and tracking into points, cells and letters in DASCA's Node mode, move and link them, pick groups in the viewer, draw them, and simulate GPU particles.
These docs cover Dasca 2.3.
Many looks in Node mode are built from elements: dots for a halftone, letters for ASCII art, lines between moving points, boxes around tracked hands. An element is one point, cell or letter. Element sockets have the Elements type.
How elements work
Every element has:
- an ID, a number that identifies it (trackers such as Blob Track keep an element's ID while they follow it),
- a position, a size and a rotation,
- a color and an opacity,
- a value, usually the brightness of the picture under the element,
- an age, the time since it appeared,
- sometimes a label, such as the character of a letter or the name of a tracked point.
Elements can also be linked to each other, for lines between them.
A graph with elements usually has three steps:
- Make elements, from the Elements category or from another source.
- Change them with Behavior nodes: keep some, sort them, move them, link them.
- Draw them with a Draw node, which turns them into an image.
Making elements
| Node | Elements it makes |
|---|---|
| Grid | One cell per grid square over a picture, with Columns and a Square or Hexagonal layout. |
| Points | Count points scattered over a picture, placed by Brightness, Darkness, Edges or Evenly. |
| Contours | Points along lines of equal brightness, joined into lines, like a topographic map. |
| Letters | One element per character of your text, each labeled with its character. |
| Particles | Particles that are born, move and die. They start from wired elements, from the bright parts of a wired picture, or from a point, a line or the whole frame. |
| Blob Track | Bright, dark, moving or colored spots, followed from frame to frame. |
| Hand Track, Face Track, Body Track | Named points on hands, faces and bodies. See Tracking. |
| Spectrum | One cell at the tip of each bar. |
| Shape, Text, SVG Shape, Lottie Shape | Their Outline output: the outline as linked points. |
| 3D Lines | The visible outlines of a 3D scene as linked points. |
Elements that come from a picture take their color and value from it.
Changing elements
| Node | What it does |
|---|---|
| Keep Range | Keeps the elements whose property is between From and To. Keep outside keeps the rest instead. |
| Sort and Limit | Puts the elements in order and keeps a number of them (Keep, Skip). |
| Style by Value | Sets size, color, opacity, rotation or value from a property, between a start and an end value. |
| Jitter | Shakes the elements around their places. |
| Follow | Makes the elements lag behind their places and bounce. |
| Flow | Carries the elements along a field picture, like leaves on a current. Home pull draws them back. |
| Attract | Pulls the elements toward a point, or pushes them away. |
| Trail | Leaves a trail of linked points behind moving elements. |
| Lifetime | Fades elements in and out as they appear and disappear. |
| Connect | Links the elements: to their Nearest neighbors, to All within reach, In order or To the first. |
| Group | Picks some elements to treat differently. See Groups and picking. |
Keep Range, Sort and Limit and Style by Value work with these properties: Value, Size, Brightness, Horizontal position, Vertical position, Age, Order and Random.
Drawing elements
| Node | Draws |
|---|---|
| Dots | A dot per element: Circle, Square, Diamond or Ring, sized by brightness or darkness. |
| Links | The lines between linked elements. |
| Boxes | A frame, corners, a dashed frame, a circle or a target around each element, with a label such as the ID or the position. Also outputs a Mask of the boxes. |
| Glyphs | A character per element, from a brightness ramp, the element's label or a repeated text. |
| Sprite | A small picture on every element. |
| Crop | A zoomed piece of a picture inside each element. |
Every Draw node has a Background: Transparent, Color or Source image, the picture the elements came from. With Transparent, wire the result into a Blend to put it over something else.
Elements also feed other nodes: Path to Sound plays them as sound on an oscilloscope, and Particles and Swarm start particles from them.
Seeing elements in the viewer
- Turn on Elements and IDs in the viewer's More viewer options to draw the elements and their ID numbers over the image.
- Hover an element to read its ID, value, size, age and label in the bar under the image.
- Show full data in the node menu lists the named elements with their positions. Hover a row to highlight that element.
Groups and picking
A Group node picks some of the elements that pass through it. The picked elements are its members; the rest are the others. The Group has three outputs:
| Output | What it carries |
|---|---|
| Elements | All elements, with the Group's settings applied to the members. |
| Members | Only the members. |
| Others | Only the elements that are not members. |
So you can, for example, draw the members as boxes and the others as dots.
An element is a member when you picked it by hand, or when it matches the rules:
- Picked: elements you choose in the viewer. The card shows how many are picked; the × clears them.
- Rules: click Add rule and choose:
| Rule | Members are |
|---|---|
| Property range | Elements whose property (such as Value or Size) is between From and To. |
| Random share | A Percent of the elements, chosen by Seed. |
| ID list | Elements with these IDs, for example 1, 4-9, 12. |
| Inside mask | Elements on the parts of the Group's Mask input that are brighter than Threshold. |
| Name | Elements with these names, for example smile, eye*. The arrow next to the field lists the names in the input. |
With more than one rule, Match chooses All rules or Any rule.
The Group can also recolor its members (Color with Recolor members), change their Size and Opacity, and Hide members from the Elements output.
Picking in the viewer
Show the Group in the viewer (the square icon on its card). The elements, their IDs and the members are drawn, and three tools appear in the viewer toolbar:
| Tool | How it works |
|---|---|
| Pan | Drag to move the image. |
| Pick | Click an element to pick only it. Shift+click adds or removes one element, and Alt+click removes. Drag a lasso around several elements; hold Shift to add them or Alt to remove them. Click empty space to clear. |
| Brush | Paint over elements to add them. Hold Alt to remove. [ and ] change the brush size. |
GPU particles
Swarm simulates up to a million particles on the graphics card, and Draw Swarm turns them into an image. Use them for fire, smoke, dust, sparks and flowing fields. Wire Swarm into Draw Swarm, and Draw Swarm into the chain.
Swarm sets:
- how many particles live at once (Count), how long they live (Life (sec)) and how fast they start (Speed),
- where they are born: Emit from Point, Line, Circle, Area or Whole frame, moved and sized with its handles in the viewer,
- the forces on them: Gravity, Drag, Turbulence with Swirl size and Evolve, and Pull toward a point,
- what happens at the edges: Fly off, Wrap around or Bounce.
Its inputs change the simulation:
| Input | What it does |
|---|---|
| Emit from | Particles are born where this picture is bright, and take its color. |
| Field | A picture that steers the particles. Read field as chooses how: Red and green as directions, Downhill, Uphill, or Around (contours). |
| Color from | Each particle takes the color of this picture where it is born. |
| Elements | Particles are born on these elements. |
Draw Swarm draws each particle as a Glow dot, Disc, Square or Streak. Color by colors them by Birth color, Age, Speed or a Color image, and Blend adds them up (Add) or lays them over each other (Over).
For a seamless loop, set Loop (sec) on the Swarm (see Seamless loops).