Live demo at origamisimulator.org
This app allows you to simulate how any origami crease pattern will fold. It may look a little different from what you typically think of as "origami" - rather than folding paper in a set of sequential steps, this simulation attempts to fold every crease simultaneously. It does this by iteratively solving for small displacements in the geometry of an initially flat sheet due to forces exerted by creases. You can read more about it in our paper:
- Fast, Interactive Origami Simulation using GPU Computation by Amanda Ghassaei, Erik Demaine, and Neil Gershenfeld (7OSME)
All simulation methods were written from scratch and are executed in parallel in several GPU fragment shaders for fast performance. The solver extends work from the following sources:
- Origami Folding: A Structural Engineering Approach by Mark Schenk and Simon D. Guest
- Freeform Variations of Origami by Tomohiro Tachi
- Slide the Fold Percent slider to control the degree of folding of the pattern (100% is fully folded, 0% is unfolded, and -100% is fully folded with the opposite mountain/valley assignments).
- Drag to rotate the model, scroll to zoom.
- Import other patterns under the Examples menu.
- Upload your own crease patterns in SVG or FOLD formats, following the instructions under File > File Import Tips.
- Export FOLD files or 3D models ( STL or OBJ ) of the folded state of your design ( File > Save Simulation as... ).
- Visualize the internal strain of the origami as it folds using the Strain Visualization in the left menu.
- If you are working from a computer connected to a Vive, follow the instructions near the VR menu to use this app in an interactive virtual reality mode.
- All rendering and 3D interaction done with three.js
- path-data-polyfill helps with SVG path parsing
- FOLD is used as the internal data structure, methods from the FOLD API used for SVG parsing
- Arbitrary polygonal faces of imported geometry are triangulated using the Earcut Library
- GIF and WebM video export uses CCapture
- Portability to multiple VR controllers by THREE.VRController.js
- VR GUI by dat.guiVR
- numeric.js for linear algebra operations
- FileSaver for client-side file saving
- jQuery, Bootstrap, and the Flat UI theme used to build the GUI
Built by Amanda Ghassaei as a final project for Geometric Folding Algorithms. Code available on Github. If you have interesting crease patterns that would make good demo files, please send them to me (Amanda) so I can add them to the Examples menu. My email address is on my website. Thanks!
You can find additional information in our 7OSME paper and this website.