Skip to content
Projets

À propos

Real-time holographic cloth design tool. Drape posters and graphics on simulated fabric — iridescent foil shader, Verlet cloth physics, macro depth of field, film grain, bump maps, and transparent PNG export. Built with Three.js (WebGL 2), React, and DialKit. Physics and shaders written from scratch.

Design et médias

Comment ces chiffres sont mesurés

Progression mesurée des étoiles

in 24h
0
in 7 days
+1
in 15 days
+7
in 1 month
Historique en cours

Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.

README.md

Original

Holocloth

A little browser tool for playing with holographic fabric.

You get a sheet of simulated cloth floating in space. You can grab it, throw it around, drape your own images over it, and watch them ripple like they're printed on holo foil. When it looks good — export a PNG.

Holocloth

What it does

  • Real cloth physics — grab the sheet and pull. It wrinkles, settles, and floats like fabric in gel. Written from scratch (Verlet integration, no physics library).
  • Holographic material — an iridescent foil shader with rainbow diffraction, sparkle, and bump maps. Also chrome and black cloth presets.
  • Your images — upload any image or SVG and it becomes the cloth, or a sticker on top of it. Everything bends and folds with the fabric.
  • Camera looks — macro depth of field (click to pick a focus point), ambient occlusion in the folds, film grain, bloom.
  • Export — one click PNG, with or without the background.
  • Versions — save looks and switch between them while you work.

Controls

Action How
Grab the cloth Click + drag on it
Orbit the camera Drag empty space
Pan Hold Space + drag, or right-drag
Zoom Scroll
Move a sticker Turn on Edit in the Images panel, then drag it

Run it

One line (needs Node 20+ and git):

git clone https://github.com/dmitrykurash/holocloth.git && cd holocloth && npm install && npm run dev

Then open the local URL Vite prints — usually http://localhost:5199.

Tech

  • Three.js (WebGL 2) — rendering
  • React + TypeScript + Vite
  • Custom GLSL: the holo foil shader, a circle-of-confusion depth of field pass, film grain
  • Custom cloth simulation: Verlet integration with structural, shear, and bend constraints
  • DialKit by Josh Puckett — the control panel UI

Credits

Made by Dmitry Kurash.

UI powered by DialKit — a lovely little library by Josh Puckett for dialing in interface parameters.

Explorer des projets similaires

Chargement…