---
title: "Ring · Labs № 003 — HASIO Studio"
description: "A diamond ring cut and lit live in the browser. Turn it, change the stone and the metal. An original by HASIO."
canonical: "https://hasiostudio.com/labs/ring"
updated: 2026-11-12
---

# Ring

HASIO Studio Labs № 003 · 30 Oct 2026 · WebGL · 3D · Product

> A diamond ring cut and lit live in the browser. Turn it, change the stone and the metal.

**Credit:** An original by HASIO: our own idea, designed and built from scratch.

## Try it

- Full screen: [https://hasiostudio.com/labs/ring/play](https://hasiostudio.com/labs/ring/play)

## What it does

A diamond ring, rendered live: drag to turn it, pinch to zoom in.

Switch between three stones (round, emerald halo and cushion) and the metal they sit in.

Every sparkle is traced through the stone’s facets as it turns.

## How we built it

1. **The stone is a list of planes.** The round brilliant is 57 facet planes, written the way a cutter describes them; the mesh is whatever is left of a block once every plane has cut it. The cushion takes 65.
2. **The same planes trace the light.** Every cut is convex, so a ray inside the stone leaves through the nearest plane it is heading out of. A phone follows 3 bounces and splits each exit into 5 wavelengths; a desktop follows 4 and 7.
3. **Two studios, built in code.** A light box for the stones and a softbox room for the metal, each rendered once into a cube map: 256 px on a phone, 512 on a desktop. Every light in them is placed by hand.
4. **It watches its own frame time.** The median of 45 frames is judged against the screen’s own refresh, so a phone held at 30 Hz by its power saver is not mistaken for a slow one. It gives up resolution first, then bounces, and never drops below DPR 1.5 on a phone.

## Make your own

The prompt:

> Build a photoreal engagement ring viewer that runs in a phone browser with three.js. Model the diamond as a convex polyhedron from a list of cutting planes (a round brilliant with real proportions), and render it with a custom shader that ray-traces refraction and dispersion through those planes. Light the metal and the stone with two procedural studio environments rendered to cube maps. Let the visitor drag to turn, pinch or scroll to zoom, and switch the stone (round, emerald halo, cushion) and the metal (yellow, white, rose gold). Measure frame time and lower the quality automatically on slow devices.

Code: this build will be for sale. The prompt is free.

Made with: three.js, GLSL, Ray tracing, Vanilla JS.

## Want this on your site?

WhatsApp [+91 80075 25253](https://wa.me/918007525253?text=Hi%20HASIO%2C%20I%20saw%20Labs%20%E2%84%96%20003%20%E2%80%9CRing%E2%80%9D%20on%20your%20site.%20I%E2%80%99d%20like%20something%20like%20it%20on%20mine.), or [ask your AI about us](https://hasiostudio.com/brief).
