designcoding
Search
About Table of Contents Keywords Support designcoding!

Firefly and a Webcam

January 29, 2013 | 4,943 views
Physical Prototyping | Tessellations
firefly | grid | parquet deformation | pattern

I finally installed Firefly, it immediately powers Grasshopper up with beautifully smart components, even if you don’t have Arduino it is still very useful. If you want to give it a try, first you have to install a small tool free from www.reactivision.com in order to send data to Firefly. After that, you may download and install firefly from their website, www.fireflyexperiments.com.

It was the real-time inputs, my first interest. I was very excited to get data from my laptop’s tiny webcam and process that data to deform a pattern. It is based on the parquet deformation study yesterday (here) I started to plan for an installation at faculty, using webcams and projectors to manipulate the perception of people, using their movement both as an attractor, and the timed constructor of a pattern. Maybe this could be the most predictable idea after seeing that Firefly makes things that easy but anyway I decided to give it a try. Then, I realized I can skip data projectors as the webcam of my laptop can be rotated to record the backside. Would it be possible to create an interactive screen from a regular one?

The idea was simple. Just connect a screen to a laptop, rotate its webcam, (or put a mirror right in front of it), so Grasshopper will process the vision of itself (or another screen connected to the same computer). Maybe this could create a non-stoppable deformation because of a physical version of an infinite for-next loop. Any manipulation on the screen would trigger more and more… This became a calibration problem for me to tell Grasshopper that it should in fact track my hand, not its own screen. I tested the movement component of Firefly that captures a greyscale image from the webcam, showing the movements as white, and static things in black. The first experiment worked like this (sorry for the sound, just mute it):

This is the Grasshopper definition: [GHX: 0.9.0014] Remember you need to install the Reactivision tool and Firefly for Grasshopper.

2013_01_29-firefly-def
2013_01_29-firefly

An important notice: There is a very small bug in the “Sample” component of Firefly. When you save the Grasshopper definition, the sample component doesn’t save the type of sampling. You have to right-click on it and select “Brightness” in order to use the above definition. Below is the screen capture of that:

2013_01_29-firefly-bug

Right-click on that “Sample” component and select brightness every time you open the document.

  • Search

  • Categories

    • Education
      • Basic Design
      • Design Geometry
      • Design Mathematics
      • Digital Fabrication
      • Parametric Modeling
      • Tutorials
    • Philosophy
      • Analytical Tradition
      • Phenomenology
    • Practice
      • 3D Models
      • Projects
      • Publications
      • Workshops
    • Research
      • 3D Printing
      • Building Facade
      • Calculus
      • Climate Analysis
      • Compass Constructions
      • Computational Geometry
      • Curves
      • Decorative Arts
      • Digital Fabrication
      • Evolutionary Solvers
      • Folding Structures
      • Fractals
      • Graph Theory
      • Interlocking Structures
      • Islamic Patterns
      • Linear Algebra
      • Minimal Surfaces
      • Muqarnas
      • Non-Euclidean Geometry
      • Paneling
      • Parametric Curves
      • Parametric Objects
      • Parametric Surfaces
      • Pattern Deformations
      • Patterns
      • Pavilions
      • Polyhedra
      • Rammed Earth Structures
      • Robotic Fabrication
      • Shape Grammars
      • Simulation
      • Space Syntax
      • Surface Constructions
      • Tessellations
      • Tools
      • Vector Fields
      • Virtual Reality
    • Tools and Languages
      • 3DS Max
      • 3DS Max Script
      • Grasshopper
      • Photoshop
      • Physical Prototyping
      • Revit
      • Rhino
      • Rhino Macro
      • Rhino Python
      • Rhino Script
      • Unity
  • Monthly Archive

    • August 2026 (1)
    • October 2025 (1)
    • June 2025 (2)
    • May 2025 (2)
    • April 2025 (5)
    • December 2024 (40)
    • August 2024 (5)
    • July 2024 (6)
    • April 2024 (4)
    • March 2024 (10)
    • February 2024 (10)
    • January 2024 (8)
    • December 2023 (10)
    • August 2023 (3)
    • July 2023 (3)
    • June 2023 (7)
    • May 2023 (8)
    • April 2023 (7)
    • March 2023 (2)
    • February 2023 (2)
    • January 2023 (3)
    • December 2022 (6)
    • November 2022 (7)
    • January 2022 (1)
    • December 2021 (1)
    • October 2021 (3)
    • September 2021 (4)
    • August 2021 (4)
    • May 2019 (2)
    • April 2019 (1)
    • March 2019 (5)
    • January 2019 (2)
    • December 2018 (1)
    • November 2018 (4)
    • October 2018 (9)
    • July 2018 (1)
    • June 2018 (3)
    • May 2018 (1)
    • April 2018 (4)
    • February 2018 (2)
    • January 2018 (7)
    • August 2017 (9)
    • July 2017 (6)
    • October 2016 (1)
    • May 2015 (5)
    • April 2015 (8)
    • March 2015 (12)
    • February 2015 (4)
    • January 2015 (11)
    • November 2014 (1)
    • August 2014 (1)
    • June 2014 (2)
    • May 2014 (12)
    • April 2014 (5)
    • March 2014 (3)
    • February 2014 (6)
    • January 2014 (4)
    • December 2013 (5)
    • November 2013 (11)
    • October 2013 (2)
    • September 2013 (9)
    • August 2013 (4)
    • July 2013 (2)
    • June 2013 (14)
    • May 2013 (4)
    • April 2013 (10)
    • March 2013 (11)
    • February 2013 (11)
    • January 2013 (10)
    • December 2012 (10)
    • November 2012 (6)
    • October 2012 (13)
    • September 2012 (2)
    • August 2012 (5)
    • July 2012 (14)
    • June 2012 (6)
    • May 2012 (17)
    • April 2012 (15)
    • March 2012 (9)
    • February 2012 (16)
    • January 2012 (18)
    • December 2011 (20)
    • November 2011 (2)
  • Support designcoding!

    Enjoying designcoding? Support its future with a small donation on Patreon. Thank you!

    Patreon


    copyright 2026 designcoding.net | about | table of contents | keywords | privacy policy | end user license agreement