Indomitable Echoes PCD@Coimbra 2026

“Indomitable Echoes” is an interactive installation for PCD@Coimbra 2026 that visualizes the 19th-century poetry of Antero de Quental, Coimbra’s celebrated poet, through real-time generative algorithms. Built with p5.js, the system uses natural language processing to identify positive words, creating dynamic visual connections between them. In exposition mode, computer vision detects viewer movement via webcam, drawing connections only in areas where motion occurs—making the audience an active parameter in revealing the poem’s emotional network. The poet’s silhouette overlays the text through pixel-mapping techniques that modulate opacity based on brightness values. This project embodies “Techfolk” by using computational processes to revive regional literary heritage, transforming ancestral poetic knowledge into an interactive digital ritual where code becomes the medium for cultural transmission, bridging Coimbra’s traditional storytelling with contemporary programming practices.

Click here to test the installation

Please note that the server may be slow and the artwork might not perform as expected online. This installation is designed to run locally (localhost) in exhibition spaces and museums, where it achieves optimal performance and real-time responsiveness. Depending on the mode selected, a webcam may be required for the interactive motion-detection features. The online version is provided for demonstration purposes only.

Abrir Projeto

Mode Selection:

  • Upon launch, users choose between “Exposition Mode” (fullscreen with webcam interaction) or “Poster Mode” (control panel for customization)
  • Each mode optimizes performance and features for different contexts

Text Processing & Visualization:

  • The system loads Antero de Quental’s poetry from a JSON database
  • Natural language processing algorithms scan each poem to identify words with positive emotional connotations
  • Text is rendered dynamically across multiple columns using Perlin noise functions to create organic size variations
  • Positive words are highlighted in orange (#FF9600), negative words in blue-grey, and separator symbols (●) in orange

Spatial Mapping:

  • As text renders, the system tracks and stores the x,y coordinates of every detected positive word
  • Each word’s position, width, and height are recorded in real-time for connection calculations

Connection Algorithm (Poster Mode):

  • The system randomly pairs positive words that haven’t reached their connection limit
  • Lines are drawn between word centers, creating a dynamic network that updates continuously
  • Connection density and line thickness can be adjusted via control panel

Motion Detection (Exposition Mode):

  • Webcam captures live video at reduced resolution (240×180) for optimal performance
  • Computer vision algorithms calculate brightness values for each pixel
  • Frame-by-frame comparison detects motion by measuring brightness differences
  • Motion levels are calculated for each word’s spatial area
  • Connections are drawn only between words in areas where motion exceeds the threshold (0.1)
  • This makes viewer movement an active parameter in revealing poetic connections

Interactive Reading Experience (Exposition Mode):

  • Text size dynamically responds to light levels and movement detected by the webcam
  • Words appear very small or very large depending on spatial brightness and motion
  • Viewers must physically move through the exhibition space to read the poems
  • Movement creates readable text zones, transforming passive reading into active spatial exploration

Silhouette Overlay:

  • The poet’s image (or live webcam feed) is mapped to canvas coordinates
  • Pixel brightness values determine text opacity and size at each position
  • Brighter areas show smaller, more transparent text; darker areas show larger, more visible text
  • Night mode (M key) inverts this relationship for dark exhibition spaces

Interactive Controls:

  • Exposition Mode: M toggles night/day mode, F for fullscreen, webcam-based text size modulation
  • Poster Mode: O toggles control panel, X toggles silhouette, P toggles photo background, N for next poem
  • Real-time adjustments for text size (20-80), density (2-8), columns (1-3), speed (0.01-3), and line thickness (0.001-2)
  • Blend modes: Screen, Multiply, Overlay, Difference
  • Photo filters: Normal, Grayscale, Sepia, Invert, Custom Gradient
  • Space bar pauses/resumes all animations
  • PDF export (B2 format, 300 DPI) and PNG image export

Extended Interactive Version (MongoDB + ImgBB Integration):

  • Users worldwide submit their own poems and photos via web form
  • Photos upload to ImgBB cloud storage, poem data stores in MongoDB database
  • Submissions from anywhere in the world appear randomly in the exhibition
  • Works both online and offline—data is “pulled” from cloud when exhibition starts
  • Creates a global participatory poetic network mixing poems from all locations
  • Recommended to use web server for easier exhibition deployment
  • Localhost version remains independent—data syncs from MongoDB/ImgBB regardless of physical location

Performance Optimization:

  • Fullscreen mode reduces pixel density and increases spacing for smooth rendering
  • Webcam processing occurs every 6 frames in exposition mode
  • General speed multiplier (0.01-3) controls all animation rates simultaneously
  • Column-based text distribution prevents redundant processing
  • Auto-save PDF feature captures frames at 1-second intervals
Back