Inspiration

Throwing clay on a spinning pottery wheel at 60–120 RPM requires both wet, slip-coated hands continuously supporting the vessel wall. Touching a phone or tablet screen with wet silica mud ruins electronics and breaks centering rhythm, while stopping to wash and dry hands causes the clay to dry out unevenly.

On top of that, potters constantly have to mentally calculate 10%–14% kiln firing shrinkage so a finished mug or vase ends up the right size after firing—often relying on 2D sketches and manual metal calipers.

ClayView was built for Snap Spectacles (SPECS) because AR glasses are the only form factor that leaves a potter's hands completely free while projecting a 1:1 millimeter-accurate, kiln-shrinkage-compensated 3D guide directly over the spinning wheel.

What it does

ClayView guides potters through a structured 3-step spatial studio workflow:

  1. Step 1 — Detect Table (DETECT_TABLE): Displays a glowing concentric table reticle (WorldQueryModule surface hit-testing on SPECS, with a calibrated table stand-in in Interactive Preview) so the potter can lock the virtual wheel anchor onto their physical studio table.
  2. Step 2 — Select Clay & Target (SELECT_CLAY): Choose the clay weight (450g Small, 900g Medium, or 1.5kg Large), kiln shrinkage preset (0% Stoneware, 10% Low-Fire, 12% Stoneware, or 14% Porcelain), and target ceramic vessel (Cylinder Vase, Tea Bowl, Amphora, or Studio Mug). ClayView automatically computes exact wet throwing dimensions using: $$d_{\text{wet}} = \frac{d_{\text{fired}}}{1 - r}$$ For example, a 16.0 cm fired vase automatically expands to 18.18 cm at 12% stoneware shrinkage or 18.60 cm at 14% porcelain shrinkage.
  3. Step 3 — Throw from a Raw Globe Piece (THROWING): Every vessel starts as a raw, centered rounded Globe Piece clay mound scaled to the chosen weight (6.5 cm, 10.4 cm, or 14.5 cm tall) with a realistic physical max-height volume cap. Potters shape it up and outward into the 1:1 holographic wireframe:
    • Viscoelastic, Volume-Conserving Clay Physics: Squeezing walls inward forces clay upward (raising height); flaring walls outward settles height lower; pulling height upward narrows walls, while adjacent wall zones flow organically together.
    • Inside & Outside Hand Sculpting: Supports real dual-hand tracking (HandInputData) on SPECS and a 3D draggable PotterHandTool in Interactive Preview—reach in from the top opening to push walls outward from inside, or cup from the outside to collar and lift the clay taller, alongside 5 radial zone handles and a top height handle.
    • Live 5-Zone Millimeter Tolerance Feedback: Evaluates Base, LowerBelly, Belly, Shoulder, and Rim continuously—glowing Teal ($\le 2\text{ mm}$), Amber ($2\text{–}4\text{ mm}$), or Coral ($> 4\text{ mm}$), and playing a soft spatial audio chime once all zones stabilize in Teal for 2 seconds.
    • 360° Camera-Following Orbital UI: As you walk around the pottery wheel, the Studio Card, holographic Caliper Gauge (18.18 cm), sculpting handles, and PotterHandTool smoothly orbit to face you cleanly inside the SPECS FOV—while keeping head-turn off-screen gaze navigation (EdgeOfScreenArrow) intact when you look $> 16^\circ$ away.
    • Hands-Free Voice Commands: Built-in AsrModule support ("lock table", "start throwing", "set porcelain", "next shape", "reset globe", "toggle wireframe") paired 1:1 with spatial UI buttons.

How we built it

  • Pure TypeScript Core / Thin Adapter Architecture: All ceramic math, viscoelastic clay physics, Catmull-Rom procedural lathe mesh generation (GhostProfileMesh, CaliperGaugeLine, SpinningClayMesh, PotteryWheelBat, TableReticleRing), 3-step studio flow, 360° orbital math, and FOV gaze calculations live in pure, engine-independent TypeScript modules under Assets/Scripts/Core/.
  • Lens Studio 5.24.1 & Spectacles SDK: TerraFormController.ts and ClayViewStudioUI.ts act as thin Lens Studio adapters wiring the Core engine to Spectacles Interaction Kit (SIK), Spectacles UI Kit, MeshBuilder (MeshTopology.Lines & MeshTopology.Triangles), HandInputData, WorldQueryModule, AsrModule, and synthesized low-latency spatial WAV audio feedback.
  • Automated Testing (Unit + LEAF Integration): Verified with 19 Node.js unit tests covering every Core module and 5 automated LEAF integration scenarios running directly inside Lens Studio Preview (01_project_initialization, 02_shrinkage_cycle, 03_shape_deformation_coral, 04_production_series_counter, 05_offscreen_navigation_arrow).

Challenges we ran into

  • Additive LCOS Display Contrast & Strict FOV: On Snap Spectacles' additive waveguides, pure black renders transparent, and the 37° × 32° FOV leaves little room for oversized HUDs. We calibrated every text color (Ivory, Cyan, Teal, Amber, Coral) for additive legibility and tuned the Studio Card (8.4 cm wide) and orbital offsets so nothing clips when walking 360° around the table.
  • 360° Orbital UI vs. Off-Screen Gaze Navigation: Rotating the UI with head orientation would break the off-screen gaze indicator. Computing the orbital basis strictly from the user's horizontal world position relative to WheelCenterAnchor solved both: walking around the wheel orbits the UI smoothly, while standing still and turning your head $> 16^\circ$ cleanly triggers EdgeOfScreenArrow.
  • Natural Pottery Wheel Physics: Simple per-zone scaling felt robotic. Implementing neighbor coupling (28% / 8%), cross-sectional volume conservation ($V \propto H \sum r_i^2$), and 3D cylindrical inside/outside hand contact made shaping from a raw Globe Piece feel genuinely organic.

Accomplishments that we're proud of

  • Built a complete, end-to-end Snap Spectacles AR pottery companion with real kiln-shrinkage math, viscoelastic volume-conserving clay sculpting, and a guided 3-step studio flow starting from a raw Globe Piece.
  • Achieved 100% automated test pass rate: 19/19 pure TypeScript unit tests and 5/5 Lens Studio LEAF integration scenarios passing with zero runtime errors.
  • Designed a zero-clipping 360° orbital spatial UI that works seamlessly from any angle around the pottery wheel.

What we learned

  • Designing for AR smart glasses is fundamentally different from mobile AR: downward ergonomics (-25.3° pitch), additive optical color palettes, strict FOV budgeting, and hands-free voice/pinch parity are essential from day one.
  • Separating domain logic into a Pure TypeScript Core makes Lens Studio development dramatically faster to iterate and verify with deterministic unit tests alongside LEAF integration tests.

What's next for ClayView

  • Live Computer-Vision Clay Tracking: Integrate SnapML / Spectacles camera silhouette edge segmentation to measure physical stoneware and porcelain spinning on a real pottery wheel in real time.
  • Custom Vessel Import: Let ceramicists import custom .obj or 2D profile curves directly into ClayView with automatic kiln-shrinkage compensation.
  • Studio Firing Profiles: Support custom clay-body shrinkage presets and kiln firing notes saved per studio project.

Built With

Share this project:

Updates

Submission history