1. Project goal
Build an original browser gem-cutting game in which the player is a lapidary at a workbench. A rough stone arrives, the player chooses a cut, grinds the stone stage by stage against a spinning lap, polishes it, sets it into a piece of jewelry, and sends it out for appraisal. The player's one-sentence job: hold a rough crystal against a grinding wheel, rub left and right to remove material, and trade carat weight for a cleaner cut until the appraisal price is as high as you can make it. The whole run must finish in about a minute and then offer a fresh stone of a different species, so the loop is short enough to replay and share a price screenshot.
2. Visual style
Perspective camera, single subject floating centre-frame, no environment geometry. Background is a near-black navy field (roughly #0f1a26 at the edges) with a soft radial glow slightly above centre, so the stone reads as if lit on a jeweller's dark cloth. One bright key light high and to the upper left, a cooler dim fill from the right; no cast shadow on a ground plane except a soft contact shadow where the stone meets the lap.
Rough stones are matte and frosted: flat-shaded facets in the species colour, patches of pale speckled crystal skin, cloudy interior, broad smeared highlights, no refraction. Finished stones are the opposite: mirror-bright facet planes, near-black facets next to blown-out white ones, and saturated dispersion fringes (red, orange, cyan, green, violet) along facet edges. Mid-polish surfaces must show both at once, with a visible boundary between glossy polished zones and granular grey-speckled unpolished zones; that contrast is the main feedback that polishing is working.
UI is flat, dark, and thin-bordered: rounded cards a shade lighter than the background, 1px borders, white bold headings, amber/gold for progress and primary buttons, cyan for measurements and target lines, gold-on-dark for prices. Motion is restrained: the lap spins continuously, the stone shudders slightly while grinding, the finished stone turns slowly on a turntable during appraisal.
3. World and scene
A single workbench void, not a room. Three recurring arrangements:
- Inspection: the rough crystal alone, centred, slowly rotatable by drag.
- Grinding: the stone held point-down or face-down on a dark charcoal grinding lap seen in strong foreshortening as a flat ellipse with a small central spindle dimple; a brass-gold dop arm or vertical dop stick with a dark cement tip enters from the right or top and meets the stone.
- Presentation: the finished stone, then the finished jewellery piece, alone and larger, turning for appraisal.
Scale relationships matter: the lap is wide enough that the stone covers only a small part of it, and the dop arm is clearly a tool larger than the stone.
4. Asset list
Replaceable individual models, each needing its own description:
- rough_stone_<species> for eight species (diamond as a double-pyramid octahedron, plus ruby, emerald, sapphire, amethyst, aquamarine, topaz, citrine or similar). Each is an irregular blocky crystal with species colour, frosted skin patches and a cloudy interior. Used in inspection and grinding; the most visible asset and the highest replacement priority.
- cut_gem_<cut> for seven classic cuts: round brilliant, oval, cushion, pear, marquise, princess, emerald cut. Each needs correct crown facets (table, star, bezel), a banded girdle, and triangular pavilion mains down to a culet or keel. Second replacement priority.
- grinding_lap: a dark matte metal disc with a faint rim sheen and a central spindle hole.
- dop_arm and dop_stick: polished brass-gold cylinders, the stick capped with a dark brown cement tip.
- jewellery_setting_<form> for ring, necklace, brooch and tiara, in bright platinum, 18K gold, rose gold and silver variants: scrolling filigree bands rendered as dense strings of small polished beads with pavé stones, plus a raised centre motif that holds the player's cut gem.
Keep procedural, not as individual models: the background gradient and glow, the lap's spin, grinding sparks or dust, the dispersion shader, UI, and collision proxies.
5. Gameplay and feedback
Input is a left-right rub: pointer drag on desktop, finger swipe on touch. Dragging on the stone outside a grinding stage rotates it for inspection instead.
Loop: a rough stone of a random species arrives with a stated carat weight (for example a 9.02ct rough emerald or a 5.81ct rough diamond). Seven cut options are offered as cards, each showing its predicted finished carat weight and a predicted price, so the player picks a trade-off: an emerald cut may yield 3.17ct at the highest value while a marquise yields 1.98ct at the lowest. Committing the cut starts a numbered stage sequence of roughly six or seven steps: round the girdle, set the pavilion angle, grind the pavilion, cut the table, finish the crown, polish, then fabricate.
On grinding stages a cross-section diagram shows a pale silhouette of the stone, a dashed cyan target line for the plane being cut, and an orange hatched wedge for material still to remove; rubbing shrinks the wedge and the live carat weight ticks down continuously (9.02 → 8.73 → ... → 7.04 and so on). The stage's action button stays disabled with a "rub the stone first" label until enough material is gone, then becomes an active gold "done" button. Angle stages instead offer a shallow-to-deep slider with a gold wireframe diagram and a brilliance meter that fills as the angle approaches ideal.
The core tension: stopping short leaves the shape off and the stone dull, while over-grinding shrinks the carat weight and the final price. Polishing is a progress bar driven by continuous rubbing. Fabrication lets the player choose a form and a metal, shows a fabrication fee, and subtracts it. Appraisal then spins the finished piece and reveals a price that can exceed ten million yen on a good cut. A play-again action loads a different species so no two runs open the same way.
There is no fail state and no timer: the score is the appraisal price, and that number is the shareable result.
6. Technical implementation
three.js with a WebGL2 renderer, a PerspectiveCamera, directional and ambient lights, and a bundler such as Vite producing a static site. Gems use a physical/transmissive material with high index of refraction and a dispersion treatment; rough stones use flat-shaded low-poly geometry with a noise-driven frosted mask.
The grinding stages must actually modify geometry rather than swap between two pre-made meshes: drive a parameterised faceting operation, or blend across a prepared sequence of stage meshes so the carat weight, visible silhouette and cross-section diagram all stay consistent with one another.
Model slots: every rough_stone_<species>, cut_gem_<cut> and jewellery_setting_<form> loads as its own GLB with a documented slot name, Y-up orientation, origin at the stone's centre of mass, and a real-world scale where a 1ct stone is about 6.5mm across. Settings expose a named socket transform where the player's cut gem is parented. Instance the pavé stones rather than authoring them individually. Keep the lap, dop and decorative pavé separate from the interactive workpiece.
Interface language: ship English, Japanese and Korean with a visible language switcher. Responsive from a 360px-wide phone in portrait to a desktop viewport, with the rub gesture working identically under pointer and touch events. Optimise stone complexity against real frame time on a mid-range phone rather than to a fixed polygon budget.
7. Completion criteria
A player must be able to: open the page, drag to inspect a rough stone, read the seven cut options with differing carat and price predictions, commit a cut, grind through every numbered stage with the carat weight falling and the orange wedge shrinking, hit the point where the disabled button turns gold, set an angle on the slider stages, polish until the granular surface becomes glossy, choose a jewellery form and metal, see the fabrication fee, watch the appraisal spin, read a final price, and start a new run with a different species.
Visual checks: the rough stone reads frosted and matte; the finished stone shows crisp facet edges and colour dispersion; a mid-polish frame clearly shows polished and unpolished regions side by side; the lap reads as a spinning metal disc in perspective.
Deliver a runnable static preview plus editable source and a start command. Verify the full loop on both desktop pointer input and a touch viewport.