Giter Site home page Giter Site logo

undeadinu / origamisimulator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from amandaghassaei/origamisimulator

0.0 0.0 0.0 11.51 MB

Realtime WebGL origami simulator

Home Page: http://apps.amandaghassaei.com/OrigamiSimulator/

License: MIT License

Processing 3.00% CSS 4.44% HTML 35.07% JavaScript 57.49%

origamisimulator's Introduction

OrigamiSimulator

Live demo at apps.amandaghassaei.com/OrigamiSimulator

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. This 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

All simulation methods were written from scratch and are executed in parallel in several GPU fragment shaders for fast performance.


Instructions:


  • 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.

External Libraries:


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!

More documentation coming soon - I'm preparing a paper about the simulation methods used here, I will post it once its ready. For now, find some additional info here.

origamisimulator's People

Contributors

amandaghassaei avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.