Building a Browser-Based 3D Tooth Simulator
A walkthrough of the VisionVix World 3D Tooth Simulator: the architecture, design decisions, and why I built decay progression into a real-time browser tool

Key Highlights: The free 3D Tooth Simulator turns abstract dental advice into concrete visual experience. Watch a cavity eat through enamel in seconds, see why a toothache throbs, and understand what a root canal actually does. No app download, no login, runs in your browser on any device. Built for students, teachers, parents, and anyone who has ever wondered what sugar really does to teeth.
Most people know sugar damages teeth. Almost nobody has watched it happen. That gap is what drove me to build the 3D Tooth Simulator: a browser-based tool where you cut a tooth open, drag decay from a surface cavity all the way to an abscess, then treat it with a filling or root canal. It runs for free at VisionVix World, no sign-up required.
This article walks through what the simulator is, how to use every part of it, the technical details behind it, and what it deliberately leaves out. I built this tool, so this is written by the person who made it. That is also why I say plainly where it simplifies reality.
What the 3D Tooth Simulator Is
The VisionVix World 3D Tooth Simulator is a free interactive model I built as part of the 3D Cell Lab, a collection of nine biology simulators that includes DNA, viruses, blood clotting, skin, bone, nerves, fertilisation and white blood cells.
The tooth simulator sits alongside the 3D Bone Simulator, where you can explore fracture healing and osteoporosis.
The core idea: show why a small hole in a tooth matters before it becomes a dental emergency. Enamel is the hardest material in the human body, but it has no living cells. Once decay punches through it, the enamel cannot grow back, and the softer dentine underneath deteriorates much faster.
Tooth decay affects about 2 billion people in their permanent teeth, according to the World Health Organization's fact sheet on sugars and dental caries.
Traditional Diagram vs Interactive 3D Model
| Element | Static Diagram | 3D Simulator |
|---|---|---|
| Anatomy | Labels on a flat drawing | Enamel, dentine, pulp, nerve, gum and bone you can rotate and isolate |
| Decay progression | One snapshot of a hole | Five stages on one slider: healthy, enamel cavity, into the dentine, toothache, abscess |
| Treatment | A paragraph of explanation | A filling and a root canal applied to the same tooth in real time |
| Daily habits | Not shown | Sugar every day vs brushing with fluoride, animated over three simulated years |
| Pain mechanism | Not shown | Why cold hurts and why a toothache throbs, explained with animation |
How to Use the 3D Tooth Simulator: 10-Step Walkthrough
1. Open the VisionVix World Platform and Choose Your Simulator
Go to visionvix.world and press Open Simulators, or scroll down to Choose Your 3D World. That page lists every simulator that is ready, each with an Enter Simulator button. The platform hosts nine biology simulators, and the tooth is one of the most requested since launch.
2. Enter the 3D Cell Lab and Select Tooth
The Cell Lab page shows all nine simulators. Press Open simulator on Open the tooth simulator. Once inside, the bar at the top lets you jump to any other Cell Lab simulator without going back to the homepage. This matters if you are teaching a lesson that spans multiple systems, like tooth decay and then bone healing.
3. Explore a Healthy Tooth
You start with a tooth cut open in the jaw. The white enamel caps the crown. The yellow dentine makes up the bulk of the structure. The soft pink pulp in the middle holds the nerve and blood vessels. Around the root sit the gum, the periodontal ligament and the jaw bone.
Under Find a Part, tap a name to highlight it in the 3D model. Under Show, toggle the enamel, gum or bone on and off to see the layers underneath. Drag anywhere to rotate the view. Scroll or pinch to zoom in and out.
4. Slide the Decay Through the Enamel and Into the Dentine
Drag the Decay slider or tap a stage under How Decay Grows. In Enamel cavity, bacteria turn sugar into acid that dissolves the enamel: no pain yet, and an easy filling. In Into the dentine, the softer layer lets decay spread faster, and hot, cold and sweet start to hurt.
5. Watch the Decay Reach the Nerve and Form an Abscess
At the Toothache stage, bacteria reach the pulp. The pulp swells from infection, but it sits inside a hard shell of dentine and enamel with nowhere to expand. That pressure makes the nerve fire constantly, which is why a toothache is a steady, throbbing pain rather than a sharp jab.
A toothache is caused by pulp swelling inside a rigid tooth structure with no room to expand, forcing the nerve to fire continuously.
Move the slider to Abscess, and the pulp has died. The infection pushes out through the root tip into the jaw bone, forming a pocket of pus. The tooth is now a source of infection, and without treatment the abscess can spread to surrounding tissues.
6. Apply the Treatment That Matches the Stage
Under Decay and Treatment, the blue button changes label depending on the stage. For a cavity in the enamel or dentine, it says Fill the cavity. Click it, and the simulator shows the decay being drilled out and the hole filled with a white composite material. The tooth stays alive.
Once the pulp is infected, the button says Do a root canal. The simulator removes the pulp, cleans the canal, seals it and places a crown. The tooth survives without its nerve. It can still crack, so it needs careful monitoring, but it stays in the jaw and functions normally.
7. Try Sugar Every Day and Brushing With Fluoride
Open More to Try (on a phone, tap More in the bottom bar). Sugar every day plays three years in a few seconds: plaque builds up, its acid eats the tooth and the decay grows from week 1 to year 3. Brush with fluoride shows plaque building up and a brush clearing it before it can make a hole. Get a filling plays a small cavity being filled.
8. Feel the Cold and See Gum Disease
Sensitive to cold shows why an ice-cold drink hurts a worn tooth. The enamel has thinned or the gum has receded, exposing dentine. Cold travels down the fluid-filled tubes in the dentine to the nerve, which registers it as sharp pain. This is different from cavity pain, which aches rather than stabs.
Gum disease shows plaque sitting at the gum line. The gum turns red and swollen. The ligament starts to detach from the tooth. If left untreated, the bone recedes and the tooth loosens. This is periodontitis, the leading cause of adult tooth loss.
9. Take the Guided Tour and the Quiz
- Guided Tour: Automatically shows the full process, from a healthy tooth to an abscess and treatment, pausing at each stage with short explanations. It's ideal for classroom presentations and beginners.
- Quiz Me: Tests your knowledge with three questions about tooth anatomy, toothaches, and root canals. After each answer, it highlights the relevant part and explains the correct answer.
10. Switch Between Dark and White Display Modes
The button at the top right switches between a dark background and a bright white one. The dark mode suits individual study and reduces eye strain during long sessions. The white mode suits classrooms with projectors, where a bright background improves visibility from the back of the room.
Who the 3D Tooth Simulator Is For
- Students: Review tooth anatomy and test their knowledge before exams.
- Teachers: Demonstrate how sugar causes decay and why brushing matters.
- Parents: Help children understand dental procedures and feel less nervous.
- Patients: Learn how fillings and root canals work.
- Curious learners: Explore how sugar damages enamel and causes tooth decay.
The simulator is an educational tool, not a replacement for dental advice. It helps people understand tooth problems through interactive 3D visuals rather than text alone.
How the Simulator Is Built
Technical Stack and 3D Rendering
The simulator uses Three.js and WebGL to display 3D models in a browser. Models were created in Blender, while JavaScript controls animations and interactions.
Why a Browser-Based Simulator?
It works without an app download and can be updated quickly. It is also designed to run smoothly on older phones.
Simplifications and Limitations
The simulator uses a simplified single-rooted tooth to make learning easier. It shows common decay stages but excludes complex cases like cracked teeth, secondary decay, and gum-line cavities.
The tooth is approximately 21 mm long with enamel up to 2.5 mm thick, shown in the readouts at the bottom of the screen.
Try the Simulator Now
The 3D Tooth Simulator is available at visionvix.world. You can explore it on your phone, tablet, or computer by rotating the tooth, testing decay stages, and watching filling, root canal, and brushing animations.
It is useful for students, teachers, and anyone curious about dental health. You can also explore eight other simulators in the 3D Cell Lab, covering DNA, viruses, blood clotting, skin, bones, nerves, fertilisation, and white blood cells.
The simulator is educational, not medical advice, and does not replace a dentist visit. Its goal is to help you understand what happens inside the body through interactive 3D models.
If you want to show it on my YouTube channel, I post walkthroughs and updates there, so subscribe if you are interested in how I built it and what comes next.
About the author
- Solo founder shipping AI tools at visionvix.com. I write about deterministic agent patterns, Next.js deployment, and how to ship 200 products in 4 months without burning out.
Comments
Join the discussionNo comments yet. Be the first to comment.





