All projects

3D graphics & geometry

Oripo

Halfway through a paper fold, the flap you need can disappear behind another layer. Oripo lets a learner pause there, turn the sheet over and trace the crease before finishing the move.

Four violet butterfly wings in Oripo’s light studio above the completed timeline and camera controls.
Product screenshot The Monarch butterfly at the end of its 18-fold lesson. The timeline remains available to revisit any crease. View full size
My role
Project creator & software engineer
Project context
Open-source personal project · MIT-licensed software
Tools
TypeScript · Three.js · React Three Fiber · React Router

Learning the move between two diagrams

A finished butterfly tells you little about which pocket to open on the way there. I wanted someone learning from a screen to be able to inspect the moment a fold changes direction. Each lesson pairs written instructions with a model you can play, pause, step through or scrub in either direction. You can orbit and zoom for a closer look, then reset the camera to the teaching angle. A reader working with paper can also follow the written lesson on its own.

Engineering decisions

Describe one connected sheet

A lesson package names the faces, their shared edges, the actions that move them and the manuscript that explains each action. Validation checks the sheet and the motion before a model joins the gallery. In the Dart’s first fold, eight faces rotate together about the spine. A box corner needs a different rule. As two walls rise, the corner between them must keep meeting both walls along one diagonal. The package can reuse a supported operation. A new kind of fold can require a new solver and its own test fixture.

Give every point on the timeline a pose

A learner can drag straight to the middle of a fold without playing its first half. The TypeScript compiler prepares each action from the previous endpoint and caches those endpoints. Given an action and a fraction, it evaluates the material vertices at that instant. Stepping backward or arriving from the start therefore uses the same geometry. Keeping the compiler independent of the browser also lets a test inspect a shared seam directly, even when the camera cannot see it.

Show which layer to lift

Two plies can occupy the same ideal surface at the end of a flat fold. The drawing code carries a small offset for each ply so Three.js can show their order while the compiler keeps the shared vertices joined. Camera cues run on the playback clock. For the dinosaur’s leading leg, the sheet holds still while the camera turns underneath. A dashed crease appears on the exposed layer before it moves. At completion the teaching palette gives way to the model’s finished colors.

Let the written lesson travel on its own

React Router prerenders the localized instructions as static HTML. Persian and Arabic use right-to-left layouts. The gallery gets a small image of each finished model, drawn at build time from the same compiled sheet. Only a visitor opening the interactive studio needs the scene code and the chosen model. That split gives a reader access to the manuscript with JavaScript turned off and keeps a gallery visit from loading nine interactive models.

Test what a plausible picture can hide

A convincing silhouette can conceal a torn seam. The geometry suite checks shared vertices, edge lengths, independent landmarks, sampled collisions and the order of approaching layers. Browser checks inspect the actual scene during playback and reversal. Sampling gives evidence at specific poses. Physical paper trials and checks between those samples remain separate work.

From authored crease to teaching view
  1. Validate the lesson package
  2. Compile the material pose
  3. Render layers and camera cues

Nine lessons, one playback model

The public studio offers nine lessons in three editorial tiers, with 138 fold actions and 90 manuscripts across ten languages. The authoring guide explains how contributors document constructions, references and rights. Independent difficulty ratings, human translation review, physical trials, real-device checks and spoken screen-reader review remain open.

I chose the product direction, references and scope. Codex assisted with the folding algorithms, model data, draft manuscripts and local verification. AI-assisted development record