DEV Community

Cover image for I Built a 3D Immune System Simulator Because Biology Isn't Static
Julian Neagu
Julian Neagu

Posted on Originally published at visionvix.com

I Built a 3D Immune System Simulator Because Biology Isn't Static

TL;DR: Most people learn about white blood cells from a static diagram with an arrow pointing at a germ. That doesn't show the hunt. This free 3D immune system simulator lets you watch a white blood cell crawl after bacteria, wrap around them, and swallow them whole. You can add a fever, try antibiotics, or play as the white cell yourself. No install, no sign-up, runs in the browser.

Your body fights infections every minute of every day. Right now, white blood cells are crawling through your tissue, following chemical trails left by bacteria, wrapping around them, and dissolving them in acidic bubbles. Almost nobody has seen that happen. You've read about phagocytosis in a textbook, maybe seen a diagram with an arrow and a caption that says "engulfment," but the actual hunt is something that moves.

That's the gap VisionVix World was built to close. The 3D immune system simulator drops you inside infected tissue and lets you watch the whole process in real time. You release bacteria.

Bacteria begin multiplying as white blood cells detect their chemical signals and move toward them. Once they reach a bacterium, they surround and swallow it whole. Live counters track bacteria alive and eaten, showing the race between bacterial growth and the immune system's defence.

A laptop showing the 3D White Blood Cell Hunt simulator, round white blood cells crawling between red cells after small green bacteria

This article walks through what the simulator is, how to open and use every part of it, who it's for, how it's built, and what it honestly can't show. I built it, so I'm writing this, and that's also why it plainly says what it leaves out.

What the 3D immune system simulator is

The VisionVix World 3D Immune System Simulator is a free browser-based tool. No install, no account, no payment wall. It's one of nine simulators in the 3D Cell Lab, sitting next to DNA replication, virus infection, blood clotting, skin layers, teeth structure, bone growth, nerve signals (covered in depth in my earlier nerve signal post), and fertilization.

Inside the tissue, red blood cells drift past a patrolling neutrophil, identified by its purple, multi-lobed nucleus. The simulator reflects real-life scale, showing a white blood cell at 12 micrometres and a bacterium at 2 micrometres.

The simulator on a phone: a white blood cell on patrol, and the same cell after swallowing bacteria

Press "Release Bacteria" to introduce multiplying bacteria. A white blood cell detects their chemical signals, moves toward them, and engulfs them whole. The eaten counter updates live as the hunt continues, showing whether immune cells can clear the infection before bacteria overwhelm them.

The core idea: an infection is a race

An infection is not a static event. It's a race. Bacteria can multiply every 20 minutes in good conditions. White blood cells have to eat them faster than they divide. Everything in the simulator changes one side of that race.

Add more white blood cells with the slider (1 to 4), and the infection clears faster. Pick "Weak immune system" under "Try It With," and the white cells crawl slowly while bacteria multiply unchecked. The infection spreads.

Pick "Antibiotic," and the medicine stops bacterial division. The white cells catch up. Antibiotics work on bacteria, not viruses, because they target bacterial cell walls or ribosomes, structures viruses don't have.

Pick "Fever," and the white cells speed up while many bacteria slow down. That's one reason your body raises its temperature during an infection. It's not trying to kill the bacteria directly; it's tipping the race in your favor.

Why a 3D simulator beats a diagram

Most biology courses teach the immune response with a diagram. You see a white cell on the left, an arrow, a bacterium in the middle, another arrow, and the bacterium inside the cell on the right. It labels the steps: "recognition," "engulfment," "digestion." That's accurate, but it doesn't show the hunt.

Here's what the simulator shows that a diagram can't:

  • The hunt itself. The white cell doesn't teleport to the bacterium. It crawls. It follows a chemical gradient, moving faster when the signal is stronger, turning toward higher concentrations.
  • The wrapping motion. The cell doesn't swallow the bacterium in one gulp. The membrane flows around it, slow and deliberate, until the edges meet and fuse.
  • The race in real time. You see bacteria splitting while the white cell is hunting another one. You watch the counters: 3 bacteria alive, then 5, then 7, then 6 as one is eaten, then 11 as more divide. The infection spreads or clears based on which side is faster.
  • What changes the outcome. You don't just read that a fever helps. You watch the white cell move faster and the bacteria slow down, and you see the eaten counter climb.

Static diagrams show the steps. A 3D simulator shows the race.

A diagram tells you what happens. The simulator lets you watch it happen and then change the variables to see what breaks.

How to use the simulator: step-by-step walkthrough

Step 1: Open VisionVix World and choose the Cell Lab

The visionvix.world landing page with the Free 3D Science Simulators headline and the Open Simulators button

Go to the VisionVix World simulator hub and press "Open Simulators," or scroll down to "Choose Your 3D World." That page lists every ready simulator. Each one has an "Enter Simulator" button.

The Choose Your 3D World page with the 3D Cell Lab card and its Enter Simulator button

visionvix.world on a phone: the landing page, and the list of simulators with the 3D Cell Lab card

2. Open the 3D Cell Lab and pick White Blood Cell Hunt

The Cell Lab contains nine simulators. Press "Open simulator" on the "3D White Blood Cell Hunt" card. Once inside, the bar at the top lets you jump to any other Cell Lab simulator without backing out.

The 3D Cell Lab page with the nine cell simulators

Step 3: Watch the white cell on patrol

You start inside tissue. Red cells drift past. A white blood cell patrols, its lobed purple nucleus visible through the semi-transparent membrane. Drag to rotate the view. Scroll or pinch to zoom. The cell crawls slowly, scanning for signals.

This is what happens in your body right now. White blood cells don't sit still. They patrol tissue, squeezing between cells, moving along chemical gradients even when there's no infection, just in case.

A white blood cell with a purple lobed nucleus drifting among red cells, with the message On patrol

Step 4: Release bacteria and watch the hunt begin

Press "Release bacteria." Small green bacteria appear near the edge of the tissue. They start dividing. Each bacterium gives off chemical markers. The white cell detects the gradient and starts moving toward the highest concentration.

When the white cell reaches a bacterium, the membrane wraps around it. The bacterium is sealed inside a vesicle called a phagosome. Enzymes flood the vesicle and dissolve the bacterium. The message "Swallowed whole" appears. The "Bacteria eaten" counter increases by 1. The "Bacteria alive" counter drops by 1.

Bacteria released into the tissue, then the white cell swallowing them, with the message Swallowed whole

If you let the simulation run, bacteria keep dividing. The white cell hunts down each new one. The race continues.

Every bacterium eaten, with the message Infection cleared and the counters at the bottom

Step 5: Add more white blood cells

Drag the "White blood cells" slider from 1 to 4. More hunters appear. They all crawl toward bacteria independently. The infection clears faster. This is what your body does when it detects an infection: it sends more white blood cells to the site. That's why a wound swells and reddens - more blood flow means more defenders arriving.

A healthy person has 4,500 to 11,000 white blood cells in every microlitre of blood, and the body can triple that count during an infection.

Four white blood cells hunting at once

Step 6: Try a weak immune system

Under Try It With, pick Weak immune system: the white cells crawl slowly, the bacteria multiply faster than they are eaten, and the infection spreads.

Pick Antibiotic: the medicine stops the bacteria from dividing, so the white cells catch up. Antibiotics work on bacteria, not on viruses.

A weak immune system, where the bacteria get ahead, and an antibiotic, where they stop multiplying

Step 7: Try a fever

Pick "Fever." The white cells speed up. Many bacteria slow down. The infection clears faster. That's one reason your body raises its temperature when fighting an infection. A fever isn't your body trying to kill the pathogen directly. It's your body shifting the race in your favor.

Not all bacteria slow down at higher temperatures, but enough do. And white blood cells genuinely move faster. The enzyme activity inside immune cells increases with temperature, up to a point. That's why a fever of 38-39°C (100-102°F) helps, but a fever of 41°C (106°F) is dangerous - the same enzymes start to denature.

Fever: the white cells hunt faster and the bacteria multiply more slowly

Step 8: Play as the white cell

Open "More to Try" (on mobile, tap "More" in the bottom bar). Select "Play: you are the white cell." Now you control one of the white cells. Use arrow keys or swipe to steer. Move toward bacteria and swallow them before they multiply. If bacteria overwhelm the tissue, you lose.

This mode makes the race visceral. You feel the pressure when bacteria divide faster than you can reach them. You understand why the body sends more white cells. You see that infection control is about speed and numbers, not just presence.

Play mode: steering the white cell yourself

Step 9: Take the guided tour and quiz

Press "Guided tour." The simulator plays the whole story with short captions for each stage: patrol, bacteria released, the hunt, weak immune system, antibiotic, fever, play mode. It's a 90-second walkthrough of the entire immune response.

Press "Quiz me." Three questions appear, each with multiple-choice answers. After you pick an answer, the simulator explains why it's right or wrong. The questions cover the basics: what white blood cells do, how antibiotics work, why a fever helps.

The guided tour bubble at the top of the simulator, and the first quiz question

Step 10: Switch between dark and white themes

The button at the top right switches between a dark background and a bright white one. The white theme works better on projectors and in bright classrooms. The dark theme is easier on the eyes during long sessions.

The same hunt split down the middle: dark mode on the left, white mode on the right

Who the simulator is for

Students

Watch white blood cells hunt and engulf bacteria to better understand phagocytosis and antibiotics. Quiz mode helps test your knowledge.

Teachers

Share direct links to different simulation modes, use the guided tour for quick lessons, and quiz mode for student assessments.

Families and Curious Adults

Show children how the body fights germs through a simple, interactive 3D experience.

Biology and Medical Students

Explore the innate immune response visually and make concepts like phagocytosis easier to understand and remember.

How the simulator is built

The simulator uses Three.js and WebGL to create its 3D environment. White blood cells follow chemical signals to locate bacteria, using animated movements that mimic real cell crawling.

Bacteria multiply at adjustable rates depending on the selected scenario, such as fever, antibiotics, or a weakened immune system. Phagocytosis is shown through an animation in which the white blood cell surrounds and swallows a bacterium.

Users can also control a white blood cell using keyboard or touch input, while antibody mode shows how antibodies help immune cells detect bacteria.

Everything runs directly in the browser, with no data uploads or server calls. Once loaded, the simulator can also work offline.

What the simulator leaves out

  • Other white blood cell types. Macrophages, dendritic cells, lymphocytes, eosinophils, basophils. Each has a different role.
  • The adaptive immune response. T cells and B cells, which take days to activate but provide long-term immunity.
  • Tissue damage. Real infections damage tissue. White blood cells release enzymes that kill bacteria but also harm surrounding cells. The simulator shows the hunt, not the collateral damage.
  • Sepsis. What happens when the infection spreads faster than the immune system can clear it and the body's response becomes harmful.
  • Viral infections. Viruses work differently. They hide inside cells. White blood cells can't just swallow them. The body uses different mechanisms: killer T cells, interferons, antibodies.

The guided tour inside the simulator serves that purpose. For a deeper dive into how the entire VisionVix World project came together, check out my YouTube channel, where I break down the design and build process.

Try it now

Open the 3D White Blood Cell Hunt simulator, press "Release bacteria," and watch the hunt happen. Then try a fever. Then play as the white cell yourself. If you're teaching immunology, send the link to your students.

If you're revising for an exam, run through the quiz mode. If you're just curious how your body fights off the bacteria you encounter every time you touch a door handle, open the simulator and watch.

The immune system is not a static diagram. It's a race happening inside you right now. The simulator lets you see it.

Top comments (0)