[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-116495":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":10,"pushedAt":28,"updatedAt":29,"readmeContent":30,"aiSummary":31,"trendingCount":15,"starSnapshotCount":15,"syncStatus":16,"lastSyncTime":32,"discoverSource":33},116495,"mobicats-jewels","shaarmander\u002Fmobicats-jewels","shaarmander","A real-time gemstone and ring viewer for the web.","https:\u002F\u002Fjewels.mobicat.club\u002F",null,"JavaScript",110,36,67,0,2,19,11,60.07,"MIT License",false,"main",true,[25,26,27],"jewelry","threejs","webgl","2026-11-19 00:02:37","2026-11-23 10:34:07","# Mobicat's Jewels\n\nA free, browser-based ring designer and jewelry viewer. Pick a setting, compare cuts at the same carat weight, and rotate the ring under five studio lighting rigs.\n\n**[Open the live viewer](https:\u002F\u002Fjewels.mobicat.club\u002F)**\n\n[![A three-diamond trilogy rotating under the studio softbox](docs\u002Fdiamond-orbit.webp)](https:\u002F\u002Fjewels.mobicat.club\u002F#v=1&setting=trilogy&cut=emerald&center=natural-diamond&accent=natural-diamond&profile=classic&metal=yellow-gold&carats=1.5&rig=softbox&sparkle=0&eye=-16.71818,29.4,38.93665&target=0,2.4,1.5)\n\n[Open the ring from this clip](https:\u002F\u002Fjewels.mobicat.club\u002F#v=1&setting=trilogy&cut=emerald&center=natural-diamond&accent=natural-diamond&profile=classic&metal=yellow-gold&carats=1.5&rig=softbox&sparkle=0&eye=-16.71818,29.4,38.93665&target=0,2.4,1.5)\n\n## Try it\n\n- **Share this ring** copies the design and camera view in one tap. The viewer uploads its preview in the background when you share. The link opens immediately and still restores the design if the preview is unavailable or expires after 90 days. **Camera → Save ring image** downloads the render.\n- The editor and shared cards use the same ring name. A clear stone in yellow gold can become *Sunspire Trinity* in an emerald-cut three-stone setting, or *Sundrop Blossom* in a pear-cut petal setting. Full eternity pavé adds *Eternity* to the name.\n- Open **Ring design** to choose among 18 settings, 18 center cuts, 86 gemstone entries and seven metals. On a phone, tap the sliders icon in the bottom toolbar.\n- Choose **Fine**, **Classic** or **Bold** under Ring design. Classic is the default. On touchscreens, tapping the center stone opens its cut gallery. **Change gemstone** opens the color library. Each side or pavé stone can have its own gem. Tap the setting to change its metal or choose another style.\n- Tap the band or choose **Edit band**. **Shape** changes the cross-section, width and thickness in millimetres. **Shoulders** changes how the band meets the setting. Drag the front and back handles independently, or use the sliders. **Details** controls the finish and edge. Open **Pavé** to set one to three staggered rows, carats per stone for the selected accent material, center-to-center pitch in millimetres and band coverage. **Shoulders** gives you a position count per side, **Three-quarter** leaves the palm side plain, and **Full eternity** spaces each row around the back between the two sides of the center setting. **Graduated** reduces stone size where the band narrows. **Fixed** keeps the chosen size and skips unsupported seats. The panel shows the fitted diameter, stone count and total carat weight, including individually recolored stones. Tap a pavé stone to change its gem or edit the layout. **Reset band** restores the preset. Shared links include the edits.\n- Tap **Try on** to use your camera. Show the back of your hand with your fingers spread, then adjust **Visual fit**. The camera, tracking model, and ring render run locally. Closing try-on or leaving the tab stops the camera. Visual fit is an estimate.\n- Use **Center weight** to explore 0.50–3.00 ct in 0.05 ct steps. Carats measure mass. Dimensions depend on both the stone’s cut and its density.\n- Drag to orbit, scroll or pinch to zoom, and choose **Move ring** to drag it across the floor. The camera panel includes sparkle, depth of field and surface focus. The bottom corner shows the current frame rate during motion.\n\n## Run locally\n\nUse Node.js 22 and npm.\n\n```sh\nnpm ci\nnpm run dev\n```\n\nOpen [the local viewer](http:\u002F\u002F127.0.0.1:4181\u002F). To exercise the share-preview Worker locally, build the site and run Wrangler dev with local KV. All meshes, lighting and texture assets needed to run it are included.\n\n```sh\nnpm run build\nnpm run preview\n```\n\nThe production build is a static site in `dist\u002F` and can be served from any web host at the domain root. The included Wrangler configuration describes the Mobicat deployment.\n\n## Rendering\n\nThe Three.js \u002F WebGL 2 renderer follows refracted and reflected rays through each stone’s facet planes. For complex cuts, a small 3D lookup tells each ray which facet planes it can reach at its next bounce. Pavé stones that share a gem material and shoulder reflection render in one draw call while each stone stays individually selectable. Light absorption depends on distance inside the stone. Shared HDR studio lighting and local reflection probes shade the polished casting. Directional floor caustics are baked for each reference setting and cut, then adjusted for light direction, material and center-stone size at runtime.\n\nDesktop GPUs on the high-detail setting capture 2,048 pixels per face for the metal, 1,536 for the center stone and 768 for each shoulder. Polished highlights sample the packed HDR cube directly. Brushed and hammered metal use a 512-pixel filtered cube source. Orbit and zoom reuse these reflections. Phones use 512-pixel metal and center captures and 256-pixel shoulder captures. [Compare the polished metal at the same zoom](docs\u002Freflection-detail.webp).\n\nBand edits load a detachable setting head for the selected setting and cut. The browser sweeps the edited band, fits the head to the center stone and places the pavé stones and beads on the new surface. Floor caustics use the reference casting’s bake.\n\nThe materials estimate at the top uses the volume of the fitted metal and the individual weight and material of every stone. Open the estimate for the breakdown and [pricing references](docs\u002Fpricing.md).\n\nDuring camera motion, depth of field uses a single shaded view and a depth-aware aperture filter. When the camera rests, devices with floating-point render targets progressively add 24 optical views. A contrast-directed resolve smooths reflections during orbit. At rest the renderer integrates eight subpixel samples with a closed aperture. The refitted ring rests on the floor as the center weight changes. Each casting has an offline fit binding with independent displacements for the three profiles and stone size. A smooth spatial cage constrains prong and gallery cross-sections, anchors the bearing to the gemstone, and holds the lower shoulders fixed during carat changes. Carat adjustments are a visual fitting approximation. The tapered claws meet a recessed gallery beneath the center stone. The rail follows the interior between claws and bows out to clear the pavilion. The polished pavé shoulders retain extra mesh samples along both rounded edges. The offline pipeline fits each claw to the crown of its cut before welding the setting to the band.\n\nThe `tools\u002F` directory contains the optional offline asset pipeline. Regenerating native CAD starts with a Gemmo Studio source tree containing `crates\u002Fgemmo_core`. To rebuild welded settings from a previous raw CAD export, run `python tools\u002Fbuild_jewelry_assets.py PATH_TO_GEMMO_STUDIO --raw PATH_TO_RAW_EXPORT --recast`. The casting export uses Blender 5 and the Python package `meshoptimizer` (tested with `0.2.30a0`). After rebuilding the native assets, run `python tools\u002Fbuild_band_heads.py PATH_TO_RAW_EXPORT PATH_TO_SCRATCH` with NumPy, SciPy and meshoptimizer installed to bind the detachable heads to the rebuilt castings. Running or modifying the web viewer uses the assets in this repository. npm prepares the local tracking runtime before development and production builds. The browser loads the hand model and WebAssembly runtime when someone opens try-on. The try-on uses the visible ring finger to center the band, estimates roll from the palm, and filters position, rotation and diameter separately. A small local image sample refines the fit when both finger edges are distinct.\n\n## Release checks\n\nThe [matched renderer comparison](docs\u002Frenderer-check.md) includes the round solitaire and emerald-cut trilogy at three camera angles.\n\n| Device | Test | Result |\n| --- | --- | --- |\n| Desktop Chrome, RTX 5080 | 1440 × 900, rotating pavé trilogy, 60% depth of field | 172–191 FPS across three eight-second runs on the live diamond design |\n| Physical iPhone, model and browser unconfirmed | 44-second camera try-on recording | Ring tracking observed. A palm-turn orientation error was reproduced and corrected in local replay. On-device retest and sustained orbit FPS are pending. |\n| Physical midrange Android, Chrome | Five-minute orbit and camera try-on | Awaiting device measurement |\n\nTo repeat the phone check, [open the pavé trilogy](https:\u002F\u002Fjewels.mobicat.club\u002F#v=1&setting=cluster&cut=round&center=natural-diamond&accent=natural-diamond&aperture=0.6). Start the turntable with the play button, let it run for five minutes and record the FPS readout in the final 30 seconds. Try three setting changes, start camera try-on and return to the studio. Record the model, browser, time to the first usable ring, sustained FPS range and any problems with tapping or camera recovery. The phone target is 30 FPS or higher during orbit.\n\n## License\n\nThe viewer code and original generated jewelry assets use the [MIT License](LICENSE). Mobicat’s name and logo identify the project. Three.js retains its [own MIT copyright notice](public\u002Fthird-party\u002Fthree-LICENSE.txt).\n\nThe tracking runtime is Google’s MediaPipe Tasks Vision ([Apache 2.0 notice](public\u002Fthird-party\u002Fmediapipe-LICENSE.txt)). The bundled hand model is the Google float16 v1 [Hand Landmarker model](https:\u002F\u002Fstorage.googleapis.com\u002Fmediapipe-models\u002Fhand_landmarker\u002Fhand_landmarker\u002Ffloat16\u002F1\u002Fhand_landmarker.task).\n","这是一个基于Web的实时宝石与戒指三维可视化工具，支持在浏览器中交互式查看和设计戒指。核心功能包括：多款戒托与宝石切工选择、实时360度旋转与多光源环境（如柔光箱）渲染、宝石材质与金属参数自定义、Pavé镶边精细配置、手机端适配及AR试戴功能；技术上基于Three.js与WebGL实现高性能Web 3D渲染。适用于珠宝电商产品展示、定制化设计预览、消费者在线选品及设计师快速原型验证等场景。","2026-11-24 04:53:40","CREATED_QUERY"]