Built for Snap Spectacles (SPECS) — Learn AR with SPECS Round 2 Hackathon on Devpost ($2,500 Prize Pool).
Planned with the official challengepost/learn-specs skill pack (plan-lens) and built for CLAD + Lens Studio MCP.
Potters working on a wheel have their hands coated in wet clay slip. Touching phones, tablets, or handling metal calipers breaks rhythm and risks damaging electronic hardware.
ClayView projects a 1:1 holographic lathe wireframe (GhostProfileMesh) directly over the spinning clay at (0, -26, -55) cm (-25.30° pitch). It automates real-time Kiln Shrinkage Compensation (0% to 14% porcelain shrinkage), tracks 5 height zones with millimeter-accurate color-coded tolerance feedback (MATCH_TEAL ≤ 2 mm, WARN_AMBER 2–4 mm, OVER_CORAL / UNDER_CORAL > 4 mm), emits a 2.0-second stability spatial audio chime, and responds to hands-free voice commands ("next piece", "toggle wireframe", "set porcelain") paired 1:1 with SIK spatial buttons for deterministic Preview and LEAF testing.
-
devpost/design-brief.md: Officialplan-lensdesign brief (status: approved) following thechallengepost/learn-specstemplate. -
.design/brand/CHARTER.md: Optical LCOS additive waveguide palette (#000000= transparent), frustum geometry (37° × 32°), and spatial typography charter. -
ClayView.esproj: Lens Studio project configured fortargetPlatform: Spectacles. -
Layer 1 — Pure TypeScript Domain (
Assets/Scripts/Core/):-
KilnShrinkageEngine.ts— Kiln firing shrinkage math ($wet = \frac{fired}{1 - rate}$ ) & clay presets (0%,10%,12%,14%). -
ProfileDeltaEvaluator.ts— 5-zone wall radius tolerance evaluator & aggregate match scoring. -
SeriesConsistencyTracker.ts— 6-piece production series logger & running match average. -
LatheMeshGenerator.ts— Procedural 16-rib × 6-ring rotational lathe wireframe generator (MeshTopology.Lines). -
FovNavigationMath.ts—> 16.0°off-screen gaze angle evaluator forEdgeOfScreenArrow.
-
-
Layer 2 & 3 — Lens Studio Runtime Adapter & Spatial Audio:
-
TerraFormController.ts— Thin runtime controller wiringMeshBuilder, SIKInteractable/InteractableManipulation,LensStudio:AsrModule, and spatial audio. -
Assets/GeneratedSFX/— License-clean synthesized WAV assets (stability_chime.wav,ui_click.wav) generated via/build-sfx.
-
-
Layer 4 — Automated Tests (Node.js + LEAF Scenarios):
-
clayview_core.test.ts— 10 Pure TypeScript unit tests (100% pass). -
LeafIndex.ts&Test01–Test05— 5 automated LEAF scenarios covering Done CriteriaDC-1throughDC-5.
-
npx tsx --test tests/clayview_core.test.tsExpected result: 11 pass, 0 fail (100% green).
- Open
ClayView.esprojin Lens Studio (recommended: Lens Studio 5.23.2 if sign-in is blocked on 5.24, or 5.24+ / 5.25+ with Developer Sign-In active). - Ensure the Preview Panel is set to SPECS (Stereo) / Interactive Preview mode.
- Attach
Assets/Scripts/TerraFormController.tsto a root SceneObject (or run the CLAD scene bootstrap once Lens Studio MCP is connected on port50040). - Install
Leaf.lspkgfrom the Lens Studio Asset Library (or via/specs-leaf-install-packages), attachAssets/Tests/LeafScenarios/LeafIndex.ts, and run the 5 LEAF scenarios (DC-1toDC-5).