It’s Written in the Sand
explores the Type DMT through depth, movement, and interaction. The sandbox becomes a metaphor for searching and losing something. As the sand is moved, the typography transforms in response to the movement of the hand. The typography evolves throughout the process of searching and digging, reflecting how our surroundings and situations continuously change. The act of searching becomes a visual experience in which both the letters and their environment are in constant motion.
Typeface
The DMT typeface was chosen for its flexibility and experimental potential. Its variable properties allow the letterforms to be stretched, rotated, and transformed, creating new shapes and unexpected compositions. By layering, overlapping, and combining letters, typography becomes a visual element that goes further its original function of communicating in a language.
These possibilities make the typeface ideal for exploring movement, depth, and transformation, allowing the letterforms to continuously change in response to the movement of the hand and the changing surface of the sand. The colors aim to create a playful, meditative and fresh look and invite people to interact with it.
A Kinect depth map and the interaction data are processed in TouchDesigner and then transmitted to the code, where they interact with the typography, connecting the physical act of searching in the sand with the digital transformation of the DMT typeface.





The final product works as an endless interaction of never ending searching and digging. We deliberately avoided a beginning and end that’s set in stone, as not to reduce the interaction to a finite duration, creating the parallel to the meditative, confused second nature of the atmosphere we strived to achieve. To convey the importance and relevance of depth in our interaction, as well as the visual expression, we opted to pair the digital, orthographic recording with an analog recording at an angle, as a top down webcam view flattened the view and took away from the authentic experience.
HTML elements were mainly added via javascript for loops as an intuitive way to assign iterative IDs en masse. An example below. The HTML grid with the ID 'gridFingerTrack' gets filled with 100 divs with IDs corresponding to the for loop position (line 4). Simultaneously an array of control classes gets filled and ID, computed x and y coordinates and other variables assigned where needed.
const htmlTargetFingertrack = document.querySelector('#gridFingerTrack')
for (var iter = 0; iter < 100; iter++) { // intiate lettercontrol classes and fill html grid with letter instances
let htmlLetterElmt = `<div class="grid-item-fingerTrack grid-item-fingerTrack-text" id="item_fingerTrack-${iter}">a</div>`;
//coordinate system
x = Math.floor(fract(iter / 10) * 10) //eg 19/10 = 1.9 -> fract(1.9) = .9 -> .9 * 10 = 9 = x
y = Math.floor(iter / 10) //eg 19/10 = 1.9 -> floor(1.9) = 1 = y
letterControls_fingertrack.push(new LetterControls_fingertrack(iter, Math.floor(map_range(Math.random(), 0, 1, 100, 1000)), x, y))
htmlTargetFingertrack.innerHTML += htmlLetterElmt
}The control class mentioned previously varies from visual to visual. As an example, the class for the hand tracking logic is shown below. Each class in the array corresponds to one HTML element by sharing an ID (previously assigned in the for loop). This correspondence allows complete, individual control over every HTML element. This is the main logic of animation in the digital part of our project with an array of classes for each visual.
class LetterControls_fingertrack {
constructor(id, swapSpeed, x, y) {
this.id = id
this.x = x
this.y = y
this.swapSpeed = swapSpeed
this.oncoolDown = false
this.debug = false
this.colBase = [228, 87, 64]
this.colAlt = [234, 193, 44]
this.colDepth = [0, 0, 0]
this.colSC = [12, 15, 10]
this.colWC = [108, 58, 92]
this.typoColor = [12, 15, 10]
this.typoColorCollision = [228, 87, 64]
this.currentCol = [10, 10, 10]
this.depth = 0
this.weight = 300
this.trail = 0
this.globalAngle = 0
this.angle = 0
this.alpha = 0
this.collision = false
this.strongCollision = false
this.weakCollision = false
this.collisionPulse = false
this.collisionPulseReset = true
this.noiseFade = 1
}
run() {
setInterval(() => {
this.swapSpeed = Math.floor(map_range(Math.random(), 0, 1, 100, 1000)) // set new cooldown time
document.getElementById(`item_fingerTrack-${this.id}`).innerHTML = alphabet[Math.floor(Math.random() * alphabet.length)]; // switch letters
}, this.swapSpeed)
setInterval(() => {
if (this.collision == true) {
if (this.alpha < 1) {
this.alpha += .1
}
if (this.weight < weightThreshholdMax) { //grow weight if current weight is below max
if (this.weakCollision) { // weak coll
this.weight += 3
}
if (this.strongCollision) { // strong coll
this.weight += 20
}
}
if (this.weakCollision) {
document.getElementById(`item_fingerTrack-${this.id}`).style.backgroundColor = colorMixer(this.colWC, this.colBase, this.alpha)
this.currentCol = this.colWC
}
if (this.strongCollision) {
document.getElementById(`item_fingerTrack-${this.id}`).style.backgroundColor = colorMixer(this.colSC, this.colBase, this.alpha)
this.currentCol = this.colSC
}
if (this.trail < 100) {
this.trail += 5
}
if (this.collision && this.collisionPulseReset) { //if reset is available ()
this.collisionPulse = true
this.collisionPulseReset = false
}
if (this.collisionPulse) {
this.angle = this.globalAngle
this.collisionPulse = false
}
document.getElementById(`item_fingerTrack-${this.id}`).style.color = `rgba(218, 255, 105, 1)`
}
if (this.collision == false) {
if (this.alpha > 0) {
this.alpha -= .02
}
document.getElementById(`item_fingerTrack-${this.id}`).style.color = `rgba(${this.colSC[0]}, ${this.colSC[1]}, ${this.colSC[2]})`
document.getElementById(`item_fingerTrack-${this.id}`).style.backgroundColor = colorMixer(this.currentCol, this.colDepth, this.alpha)
if (this.weight > weightThreshholdMin) { //shrink weight if current weight is above min
this.weight -= 10
this.collisionPulseReset = true
}
if (this.trail > 0) {
this.trail -= 1
}
}
document.getElementById(`item_fingerTrack-${this.id}`).style.fontVariationSettings = `'SIZE' ${this.trail}, 'wght' ${this.weight}, 'ROTA' ${this.angle}`
document.getElementById(`item_fingerTrack-${this.id}`).style.filter = `opacity(${this.noiseFade})`
}, 1000 / targetFPS)
}
}Due to Kinect cameras being finicky to work with on mac OS, we had to employ the use of Touchdesigner, as the recently released freenect plugin was the only way to get the camera working for our project.
The depthmap obtained from the Kinect gets normalized in Touchdesigner and passed through a gradient map, changing between visuals and ultimately rendered out to the projector which projects it back on the sand, creating the very simple loop of reading depth and writing color.
Since we’ve already had a Touchdesigner network running, we also decided to delegate the handtracking logic to it with the use of Mediapipe. In the end we then send a JSON package via websocket server to our Javascript containing finger coordinates, a boolean to check if any fingers are in frame, the trail left by the fingers while moving, as well as the depth info.
Link to freenect (official touchdesigner website):
https://derivative.ca/community-post/asset/freenecttd-kinect-op-mac/71868
The code to compile and send the data, written in python (Touchdesigners native language).
"op('name')['channel']" is the syntax to reference operators and their content by code in Touchdesigner, in this case the content was numerical.
"float(op('fingerAvailable')['fingerAvailable'])" for instance references the operator containing the hand tracking boolean and reads its value. In this case defined as a float to allow a ramp for smoother transitions in the visual.
This code runs in a "CHOP execute" operator, which runs code when a value changed, as defined by the function in this instance. The value changing in our case is the hand tracking boolean, so the code only runs when a hand is recognised to save resources.
The data gets bundled as JSON and sent via the websocket operator (line 16) to our javascript code.
import json
def onValueChange(channel: Channel, sampleIndex: int, val: float, prev: float):
pixelsFinger = []
pixelsDepthMap = []
fingx = op('fingerPos')['fingx']
fingy = op('fingerPos')['fingy']
fingerAvailable = float(op('fingerAvailable')['fingerAvailable'])
fingerPos = [float(fingx), float(fingy)]
for col in range(op('pixelFingerVals').numCols):
pixelsFinger.append(float(op('pixelFingerVals')[0, int(col)]))
pixelsDepthMap.append(float(op('pixelDepthVals')[0, int(col)]))
wsData = {'pixelsFinger': pixelsFinger, 'pixelsDepth': pixelsDepthMap, 'finger': fingerPos, 'active': fingerAvailable}
op('websocket1').sendText(json.dumps(wsData))
return
Touchdesigner network

The gradient overlay, a noise texture as a placeholder for the Kinect depth map
The audio element was created with the use of u-he’s Diva synthesizer. This particular synth emulates classical analog synthesizers, like a moog, by reconstructing them from the ground up digitally. This results in a warm, broad spectrum of sound being possible. The audio consists of two tracks, one for general ambience and one reactive to the movement of the hand. As the hand interacts with the visual, the synth patch gets modulated live through a vst loaded in Touchdesigner.
The atmosphere of the audio reflect the meditative, confused part of the analog and digital visual language, in the form of warm pads consisting of oscillating detunes and modulated filters among other things.

patch 1 – general ambience

patch 2 – interaction


The color palette used throughout




First tests of projecting on sand

First tests with projection on sand
