Editor’s observe: One other addition to our Three.js celebration marathon, celebrating the primary Three.js convention coming to Paris this September 🎉 This time, Yuri has cooked up a really enjoyable interactive demo the place you possibly can actually catapult your self from the Eiffel Tower all the way in which to Maison de la Chimie, the enduring venue for the convention.
We’d additionally prefer to thank Cesium ion for supporting this experiment and serving to us make it obtainable all through the convention celebration.
The Idea
The thought is easy: bend the Eiffel Tower, goal, and fling your self throughout Paris.
The catapult is constructed as an interactive Three.js scene, with the tower appearing as a springy, deformable launcher. Dragging it adjustments its form and builds up vitality for the launch; launch sends the ball flying within the path you’ve aimed. You may fling your self just about wherever throughout Paris — however the true problem is getting your trajectory good and touchdown on the convention venue. From there, the demo takes care of the trajectory, collisions and touchdown, with the entire thing wrapped up as a playful physics experiment.
However the Eiffel Tower and Maison de la Chimie aren’t simply floating in a hand-built scene. The Paris round them comes from Cesium ion, which offers entry to streamed 3D geospatial content material and Google’s Photorealistic 3D Tiles. That offers the experiment a real-world geographic context whereas nonetheless letting Three.js deal with the interactive expertise, animation and physics on prime.
So beneath the marginally ridiculous premise, there’s a pleasant mixture of interactive deformation, physics, real-world 3D knowledge and web-based rendering, all coming collectively to show a visit throughout Paris right into a reasonably unconventional means of attending to the convention.
🇫🇷 Able to fling your self to Paris? The very first Three.js convention is nearly right here! When you’re nonetheless deciding whether or not to make the journey, contemplate this your launch sign. Use code CODROPS for 15% off your ticket and launch your self to the convention →
The way it works
Physics
When you comply with Three.js information carefully, you’ve in all probability heard of an incredible library referred to as Wiggle made by Xavier. The thought behind it’s that we will add bones to any object. However not simply to bake some boring animations. We will then apply spring physics to make it wiggle, wobble, and bounce in an interactive means. And oh my, how a lot enjoyable is that! Simply have a look at it and go forward and take a look at it your self.
Now, in fact, we will use this method on any object, so I made a decision to strive rigging the Eiffel Tower mannequin. My first try, in my view, exceeded all my expectations, and I nonetheless assume that is the one that ought to have gone into manufacturing. Simply have a look at this cutie!
Jokes apart, you possibly can see the variety of bones and mainly the way it works right here.
Paris
However, the organizer of the upcoming Three.js convention, David Ronai, just lately posted a brand new repo that includes cinematic zoom, primarily based on Garret Johnson’s 3D Tiles and the superb CesiumJS. So I simply couldn’t go up this coincidence. Now the tower ought to bend within the real-world Paris!
It’s truly as straightforward as including a 3D mannequin. I simply wanted to break down the unique scanned model of the 3D tower, and voilà, now we have a spring-based Eiffel Tower proper in the true metropolis. (By the way in which, we will nonetheless see the unique tower collapsed on the bottom.)
The remaining is straightforward. I added a ball to the tip, added a physics engine, and now you possibly can actually throw your self into the convention location! Hope you’ll have enjoyable doing that 😀
And I hope to see you in Paris! <3









