# Odonto XR

> Dental anatomy you can hold, in mixed reality

Interactive dental anatomy in mixed reality. Runs in the Meta Quest browser with WebXR, no install needed.

- **Device:** Meta Quest 3 and 3S (Quest Browser)
- **Built for:** A science fair, with the Dentistry class
- **Input:** Just your hands, no controllers
- **Install:** None: it opens from a link
- **Stack:** WebXR, Three.js, Meta Quest
- **Watch demo:** [https://arthurba1.com/projects/odonto-xr/demo-h264.mp4](https://arthurba1.com/projects/odonto-xr/demo-h264.mp4)

[Live site](https://odonto-xr.arthurba1.com)

## Anatomy you understand at first sight

Teeth sit inside bone, with nerves and vessels running between them. On paper or a flat screen that becomes a pile of layers that are hard to picture. Odonto XR puts it all in front of you at full scale, so anyone gets it in seconds, even in a headset for the first time.

It was made for a science fair, together with the Dentistry class, and uses the 3D models and texts from DentNexo, a dental atlas I also built.

## All with your hands

The model floats in front of you, clear of walls and tables. You handle it with your hands alone:

- **Palm menu:** Look at your palm, touch the button.
- **Move and rotate:** Pinch and hold the model.
- **Scale:** Pinch with both hands and spread them.
- **Select:** A quick pinch shows the name.

- **Complete anatomy.** Skull, arteries, veins and nerves with names, even an X-ray view. Anatomy tab: skull, arch, arteries, veins and nerves with names in Portuguese, plus nerves only, skull with bones and muscles, an X-ray view with translucent bones, and the gums. It runs on 3 models (core, context and neurovascular).
- **All 32 teeth.** Each tooth in its place, colored by quadrant, one tap to the next. Arch tab: the 32 teeth in their anatomical positions, one GLB model per tooth, colored by quadrant, with next and previous navigation. Cross-section and X-ray are left out of this view on purpose: teeth without internal anatomy there would only pad the menu.
- **Tooth in layers.** Pinch a tooth and it comes out in your hand: outside, cross-section, translucent or canals only. The tooth comes out in your hand while the rest fades. A real cross-section reveals pulp and canals, and there is an information sheet and a layer legend where touching a layer highlights it on the tooth.
- **Never lose sight of it.** Switching tabs, the tooth travels to its new place instead of vanishing. When you change tab or open a tooth, it stays on screen and travels to its place in the next model while the rest fades, so the eye never loses it.
- **Your hands, in view.** You see your own hands as soft silhouettes, at the right size. The WebXR hand skeleton is read every frame, scaled by 1.15 from the wrist to match the real hand, and drawn as a translucent ghost hand that fades when it is behind a model or the menu.
- **Sound on every gesture.** Every action has its own sound, with an on/off switch. The sounds are synthesized in the browser instead of loaded from files, and the on/off choice is remembered.

## Try the tooth in layers

The same 3D model the app uses, running right in your browser.

- **Enamel:** The hardest, most mineralized tissue in the human body. Covers the crown.
- **Dentin:** Makes up most of the tooth volume, crossed by millions of microscopic tubules.
- **Cementum:** A thin, mineralized layer without blood vessels that covers the roots.
- **Ligament:** Collagen fibers that anchor the root to the bone and cushion the bite.
- **Pulp:** Soft tissue with nerves and vessels inside the chamber. It feeds the tooth and gives it sensation.
- **Canals:** Extensions of the pulp inside the roots, where vessels and nerves enter the tooth.

## Nothing to install

Just open a link in the Quest browser: nothing to download or update. When the app gets better, everyone sees the new version right away. The diagram shows the pieces behind it.

- **Workers** (Cloudflare): Serves the build as static files over HTTPS, which WebXR requires outside localhost. There is no backend and no database.
- **Models and data** (Cloudflare): 3 anatomy models and 32 tooth models as GLB files, plus the tooth sheets as JSON. Models and texts come from DentNexo.
- **WebXR input** (Quest Browser): Reads the hand skeleton every frame, scaled by 1.15 from the wrist, and the head pose. Placement avoids detected walls and tables.
- **three.js scene** (Quest Browser): Renders the anatomy, the arch and the single tooth. When you change view, the tooth stays on screen and travels to its place in the next model.
- **3D panel** (Quest Browser): The menu is built in 3D inside the scene, not in HTML. It opens from the palm and works in immersive mode.
- **Sound** (Quest Browser): Each action has its own sound, synthesized in the browser instead of loaded from files. The on/off choice is remembered.
- **Vite + USB** (Development): The dev server runs on the laptop and the Quest Browser opens it through a USB cable with adb reverse, with hot reload.
- **IWER emulator** (Development): Simulates a Quest 3 with hands, controllers and a room in the desktop browser, so most iterations do not need the headset.
- **Debug script** (Development): Talks to the headset browser over the DevTools protocol to reload the page and inspect its state without opening a new tab.

## Choices that make the difference

- **Open and go.** A link is all it takes: no app to download, sign or update. Web instead of a native app. No APK to build, sign or install, updating is a deploy, and it can be developed entirely on Linux. The cost is living inside the browser limits of the Quest.
- **Menu always at hand.** It opens from your palm, so it never gets left behind when you walk. Palm menu instead of a fixed panel. A menu stuck in space gets lost when visitors walk around; one that opens from the palm is always where the hand is, and needs no controllers.
- **Fits any hand.** No setup: it opens already tuned for most people. A fixed hand scale instead of a calibration step. A calibration flow was considered and rejected: for a demo with many people, a fixed 1.15 factor that works for most hands beats asking each visitor to set it up. A URL parameter allows testing other values.
- **Only what matters.** Each view shows only what makes sense there. Less is more in the arch. Cross-section and X-ray were removed from the arch view: teeth without internal anatomy there would only pad the menu. They live in the single-tooth view, where they show something.
- **Easy to read standing up.** Big labels, and teeth always facing you, never upside down. It is a presentation for visitors, so labels are big, and an upper tooth is never turned upside down: it only rotates around the vertical axis, always showing its outer side to you.
- **Evolves fast.** Almost everything can be tested without putting the headset on. An emulator (IWER) simulates a Quest 3 with hands, controllers and a room in the desktop browser, and a small script talks to the headset browser over the debugging protocol to reload and inspect it, so most iterations do not need putting the headset on.

## Status

It is live and works in the Quest Browser. Next up is the anesthesia mode, with the nerve blocks from DentNexo and a syringe you can grab. It has not been started yet.

---

[Arthur Vinícius](https://arthurba1.com/en/) · [Português](https://arthurba1.com/pt/projects/odonto-xr/index.md) · [English](https://arthurba1.com/en/projects/odonto-xr/index.md) · [Español](https://arthurba1.com/es/projects/odonto-xr/index.md) · [llms.txt](https://arthurba1.com/llms.txt)
