Case study 04 / 04
Entangled
A visualization of quantum entanglement across separate browser windows, built with Three.js. Inspired by Bjørn Staal's work of the same name.
Context
Entangled is a browser visualization of particle orbs that behave as if they are linked across separate browser windows. It is a study of Bjørn Staal's generative work "Entangled" on fxhash, rebuilt from scratch as my own interpretation.
The problem
Browser windows don't share anything with each other. I wanted orbs in different windows to react to each other in real time, and to disappear from the network cleanly when a window is minimised or closed.
Approach
- 01
Windows talk to each other through the BroadcastChannel API, so no server is involved. Each window announces itself and every orb connects to the others.
- 02
Each orb is a dense nucleus inside a sparse outer atmosphere, drawn with Three.js. Nucleus particles blend the colours of every connected orb while the surface keeps its own colour, and flowing particle streams link the orbs.
- 03
Overlapping windows reveal each other's orbs as if the glass were transparent, and a window that is minimised or closed disconnects automatically.
Outcome
It runs with 5,000 particles per orb and more than 2,000 stream particles per connection. It is live at thaumation.art and open source on GitHub.