A fitting room that
runs in your browser.
The Cloth Room is a small, independent project by MHZALY. It exists for one reason: fabric is expensive to sample and slow to photograph. We wanted to see the drape before a single stitch was sewn — without a studio, a photographer or an account.
Two engines, one room
A real 3D avatar you can rotate, and a reference-guided AI renderer for photoreal frames.
Colour measured, not guessed
The studio samples the centre of your photo and locks the dominant colour into the prompt.
No account, no card
Open the page, upload, render, download. Nothing is stored on a server.
What it actually does
There are two separate tools, and it helps to know which one you are using.
- The 3D room builds a real, rotatable avatar in WebGL, maps your fabric onto a chosen cut, and composites it into a scene. Nothing leaves your device.
- The AI studio takes a photo (or a written brief) and generates a new photoreal image of that item in a new scene. The render is produced by an AI model, not by a camera.
In Best AI mode the model receives your photo as a visual reference, so the design, print and colour stay anchored. In Fast AI mode it works from text only — quicker, but the design can drift. In Same photo mode the studio keeps your exact pixels and only replaces the background.
How a render is made
- Read. A vision model describes the item — silhouette, material, hardware, pattern. Colour words are stripped out on purpose, because models are unreliable at naming colour.
- Measure. The centre 66% of your photo is sampled and neutral backdrop pixels are ignored, giving a real palette with hex values.
- Compose. A prompt is assembled from your own words (used verbatim), the item description, the measured palette and a lighting/composition brief.
- Render. FLUX.2 klein generates the frame at 1024×1536. If the AI quota is spent, the studio falls back to a free renderer or to a pixel-locked studio cut-out.
Technology
The 3D room is three.js running locally — glTF avatars, procedural fabric materials and real-time shadows. The AI studio is a small Cloudflare Worker that talks to Workers AI (FLUX.2 klein) and, as a fallback, to a free keyless image service. No API keys are shipped to your browser and none are required from you.
Honest limits
Free AI compute is finite. The Worker has a daily neuron allowance, which works out to roughly 40–60 high-quality renders per day across everyone using the site. When it runs out, quality drops to the free fallback renderer until the allowance resets.
- Generated images can still get small details wrong — a buckle, a stitch line, a logo.
- Very dark or very reflective photos give a weaker colour reading.
- The AI renderer is not a colourimeter. For exact brand colour matching, use Same photo.
Your images
In the 3D room, images never leave the browser. In the AI studio, the photo is sent to the Worker for the duration of the request and is not written to storage. Recent renders are kept in your own browser's local storage so you can re-download them; clearing site data removes them. See the privacy policy for the full detail.
Questions about the project, a bug, or a use case that does not fit? The FAQ covers the common ones, and the studio is the fastest way to see what it can do.
Two minutes, one photo.
No sign-up, no card, no install. Open the studio and render your first frame.