real-time 3D · client work

Sword configurator

Siamese Edge makes Thai swords to order. Their catalogue is now a configurator: ten traditional styles, each built live in the browser from the options on its own product page, with a price estimate in baht.

client
Siamese Edge · Thailand
role
product · design · build
status
live · in revision with the forge · 2026

[live: an Ayutthaya noble sword, built to my taste in the flagship viewer · draw it or sheathe it · drag to turn]

01why it exists

A made-to-order sword is a long list of choices.

Blade, steel finish, temper line, grip, wrap, fittings, scabbard, lacquer, rope. A customer ordering by message has to imagine how those choices look together, and the forge has to describe them back.

The configurator shows the sword those choices make, at true size, under real light, and lets the customer draw it from its scabbard. When they are happy, one link carries the whole build to the forge.

There are two apps. The collection is the forge’s catalogue for its customers. The flagship, above, takes a single Ayutthaya noble sword as far as it will go: every fitting, a simulated rope, no prices.

10
sword styles, from the Burmese dha to a museum-grade silver dhaab
21
of the forge’s paper blade templates, selectable at true size
13
wrap colours, and 15 for the carry rope
2
languages, English and ไทย, with inches or centimetres
1
link holds the whole build, its pose and the view

02from the collection

Three of the ten.

Thai–Lao dhaab · fullered blade · crimson carry rope
Ayuthaya Noble dhaab · cast gold fittings
heritage series · repoussé silver

03what it does

Features.

Configure

  • Ten styles, each offering only the lengths, wraps, fittings and scabbards on its own product page
  • Blade length and handle length to the inch; four fuller patterns
  • Steel finishes: satin, polished, and an acid etch with an irregular temper line on both faces
  • Wraps in cord, silk braid, ray skin, and bronze, copper or silver wire
  • Fittings in silver, nickel, brass or copper, clear or antiqued, chosen separately for handle and scabbard
  • Five scabbard lacquers; the three browns carry a generated wood grain
  • A price estimate in baht that follows the choices

Handle it

  • Draw and sheathe the sword along the blade’s own curve
  • A carry rope with real gravity, inertia and collisions, tied at the shoulder or across the body
  • Compare mode: two swords side by side, mirrored or swapped
  • A life-size silhouette wears or holds the sword, for scale
  • A spotlight you place and drag with the cursor
  • Twist to turn, pinch to zoom, press and hold to pan

Share and keep

  • The whole build, the pose and the camera live in the link
  • Save two 2560 × 1440 pictures, sheathed and drawn; phones get the share sheet
  • The last build returns when the page is reopened
  • An embed mode shows the viewer alone inside another page, as above

Engineering

  • Blades, handles, wraps, scabbards and ropes are generated in code; only cast fittings arrive as meshes
  • Blade outlines rebuilt as smooth curves from the paper templates, checked on every build
  • The blade’s weight is computed live from its geometry
  • First load cut from 77 MB to 32 MB; the embedded copy to 8 MB
  • Phones and small machines get lighter geometry and draw only when something changes

04decisions

Why it is the way it is.

scopeEach style offers only what its product page offers.
A configurator that lets a customer build a sword the forge does not make creates an order nobody can fulfil. Options that are coming soon appear, disabled. The picture is a promise, so it only shows what can be forged.
accuracyFaired curves, not literal tracings.
The blade outlines come from the forge’s paper templates. Traced literally, a half-millimetre pencil wobble showed as rippling reflections on polished steel. The outlines were rebuilt as smooth curves, and a check fails the build if any edge wobbles by more than one degree.
accuracyBlades at true size.
An earlier version scaled blades to fit the collar; the hilts looked thin, and the forge asked for accurate measurements. Every template is now vectorised at 1:1.
the customerOne link holds the build.
An order starts as a conversation. A link that reopens the exact sword, drawn or sheathed, at the same angle, replaces a paragraph of description in that conversation. It is written at most every 400 ms, because Safari caps how often an address can change.
restraintReset changes the view, not the sword.
People press reset when they are lost in the camera, not because they want their choices thrown away. The sword stays as built, drawn or sheathed.
the forge’s wordNo leather wrap on the Burmese dha.
It would have looked right. The forge does not offer it, because leather does not last in humid, rainy weather. Their experience outranks the render.
upkeepTwo apps, one viewer.
The flagship sword and the collection share their gestures, controls, labels and styles, so a fix lands in both.
speedThe page that frames it gets a lighter sword.
The full model is 14 million triangles, made for close-ups. Embedded in another page it is seen whole, about a thousand pixels wide, so that copy is simplified to 2.4 million and its wire work is generated at a third of the detail. It looks the same and loads in a quarter of the bytes.

[client work · the blade designs are the forge’s own · three.js, with geometry generated in code] · the forge also edits its own website by chat: the site editor →

the whole ledger patricktanna.com