# The Bubble Figure: Integrating Tensorflow.js With Three.js and Cannon-es to Create Interactive Art

**URL:** <https://discourse.threejs.org/t/the-bubble-figure-integrating-tensorflow-js-with-three-js-and-cannon-es-to-create-interactive-art/51217>\
**Category:** Showcase\
**Tags:** cannon, physics, cannonjs\
**Created:** [May 5, 2023, 8:36am UTC](https://discourse.threejs.org/t/the-bubble-figure-integrating-tensorflow-js-with-three-js-and-cannon-es-to-create-interactive-art/51217 "2023-05-05T08:36:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ido\_Schacham](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/ido_schacham/32/35985_2.png) [@Ido\_Schacham](https://discourse.threejs.org/u/Ido_Schacham)\
**Post date:** [May 5, 2023, 8:36am UTC](https://discourse.threejs.org/t/the-bubble-figure-integrating-tensorflow-js-with-three-js-and-cannon-es-to-create-interactive-art/51217/1 "2023-05-05T08:36:05Z")

</div>

I would like to share with you a super fun project that I did for my employer [Wunderdog](https://www.wunderdog.fi). It’s called The Bubble Figure, an interactive experience that runs in the browser.

We combined pose detection from TensorFlow.js to generate a figure via Three.js with added physics by Cannon-es.

The entire projects has also been released as [open source on GitHub](https://github.com/wunderdogsw/go-23-app). I also wrote a [post on dev.to about the project](https://dev.to/idosius/the-bubble-figure-integrating-tensorflowjs-with-threejs-and-cannon-es-to-create-interactive-art-b8e).

---

<div class="post-metadata">

**Author:** ![PavelBoytchev](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/pavelboytchev/32/38639_2.png) [@PavelBoytchev](https://discourse.threejs.org/u/PavelBoytchev)\
**Post date:** [May 6, 2023, 5:23pm UTC](https://discourse.threejs.org/t/the-bubble-figure-integrating-tensorflow-js-with-three-js-and-cannon-es-to-create-interactive-art/51217/2 "2023-05-06T17:23:05Z")

</div>

Excellent idea.

Is there a video from the event. I’m curious about the lag (if any) between person motion and the motion of the bubble twin.

---

<div class="post-metadata">

**Author:** ![idosius](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/idosius/32/76409_2.png) [@idosius](https://discourse.threejs.org/u/idosius)\
**Post date:** [November 27, 2026, 9:53am UTC](https://discourse.threejs.org/t/the-bubble-figure-integrating-tensorflow-js-with-three-js-and-cannon-es-to-create-interactive-art/51217/3 "2026-11-27T09:53:25Z")

</div>

Sorry for the super late reply, but I only see it now. There were some videos, but I can’t find them anymore. Nonetheless, performance was pretty good, not that much lag. The lag only became noticeable when there were too many shapes around on the screen, so we simply found decent numbers to use. You can also clone the project locally and run it to see for yourself.
