DEV Community

Cover image for I Built a 3D Plant Anatomy Simulator So You Can Finally See What's Inside a Stem
Julian Neagu
Julian Neagu

Posted on Originally published at visionvix.com

I Built a 3D Plant Anatomy Simulator So You Can Finally See What's Inside a Stem

TL;DR: Flat plant diagrams show you labels on a page. I built a 3D simulator that lets you spin ten real plants, slice them open, and watch water climb through their stems in X-ray mode. No install, no sign-up, works in the browser on any device.

I opened a biology textbook when I was nine and saw a drawing of a flower with arrows pointing to the petals, the stamen, and the pistil. I memorized the names. I passed the test. And I had no idea what any of those parts actually did inside the plant.

That gap stuck with me. So I built a tool to fix it.

A laptop showing the 3D Plant Anatomy simulator with a rose and round close ups of its flower, petals, rose hip, stem and roots, and the list of ten plants on the right

The VisionVix 3D Plant Anatomy simulator is a browser-based tool that lets you rotate, dissect, and X-ray ten different plants. You can turn a sunflower to see its roots, slice a bean pod down the middle to see the beans inside, or watch blue water dots climb from the roots to the petals in real time. It runs on laptops, tablets, and phones. No downloads, no account, just open it and start exploring.

This article walks through what the simulator is, how to use every feature, how I built it with three.js, and what it doesn't do. I made it, so I also know exactly where it falls short.

What the simulator is, and why it exists

The simulator is designed for students, teachers, kids, and anyone who's ever wondered what's happening inside a stem or a seed. It's one of several 3D tools I've built at VisionVix, including interactive chemistry and anatomy simulators. See the full collection at visionvix.world.

The simulator on a phone: a sunflower with its roots on the podium, and the same sunflower in X-ray with blue and green dots flowing up and down its stem

Every plant in the simulator sits on a glowing podium with its roots visible, because the parts under the soil matter just as much as the flower. Each plant has four views you can switch between:

  • Whole plant: the plant as you'd see it in real life, from flower to roots.
  • Parts up close: circular close-ups around the plant, each highlighting one part with a label you can tap.
  • Cross-section: the plant sliced down the middle so you can see inside the stem, fruit, or seed pod.
  • X-ray water flow: blue dots showing water rising through the xylem, green dots showing sugar flowing down through the phloem.

The ten plants included are: Sunflower, Rose, Tulip, Oak Tree, Cactus, Bean Seed, Leaf, Apple, Venus Flytrap, and Mushroom. Each one has a card with facts. For example, the sunflower card mentions that young sunflowers follow the sun during the day and turn back to face east at night.

That's from a 2016 study in Science, which found that an internal circadian clock drives the movement. Grown sunflowers facing east warm up faster in the morning and attract more bees.

Textbook diagram vs real plant vs 3D simulator

There are three common ways to learn plant anatomy. Each has a different job.

You can Textbook diagram Real plant 3D simulator
Look at One static view Touch, smell, cut it Spin, zoom, slice, X-ray
See the roots Drawn on the page Only if you dig it up Always, on the podium
See inside One drawn slice With a knife, once Cross-section with a tap
See water move Arrows No Yes, in X-ray mode
What you need The book The plant and the season A browser with 3D graphics

Nothing beats growing a bean on a windowsill. But the simulator shows you the parts you can't see, like roots under the soil or water climbing up the stem.

How to use the simulator, step by step

1. Open the simulator and pick a plant

The visionvix.world landing page with the 3D Simulation Platform headline, an Open Simulators button and the Choose Your 3D World section below

Go to visionvix.world and press Open Simulators, or scroll down to Choose Your 3D World. Find the 3D Plant Anatomy card and press Enter Simulator. You can also open it directly at visionvix.world/worlds/plant-anatomy.

The Choose Your 3D World page with cards for 3D Human Anatomy, 3D Animal Anatomy, 3D Dinosaur Anatomy and 3D Plant Anatomy, each with an Enter Simulator button

visionvix.world on a phone: the landing page with the Open Simulators button, and the list of simulators with the 3D Plant Anatomy card

2. Pick a plant

The ten plants are listed on the right side of the screen. Tap one and it appears on the podium with a short card of facts. For example, the rose card explains that roses have prickles, not thorns, because prickles are part of the outer skin and can be peeled off, while thorns are modified branches. The oak card says a large oak tree can drink up to 380 liters of water per day.

A sunflower with its roots on a glowing podium in a greenhouse lab, with Quick Explore and Anatomy Layers on the left, the list of ten plants on the right and its fact card below

On the left, Quick Explore filters the plant list into three groups:

  • Flowers and fruit: Sunflower, Rose, Tulip, Apple.
  • Trees, seeds and leaves: Oak Tree, Bean Seed, Leaf.
  • Special: Venus Flytrap, Mushroom.

You can drag to rotate the plant, pinch or scroll to zoom, and press Play Animation to let it turn on its own.

3. Switch to "Parts up close" to see labels

Toggle Parts up close in the Anatomy Layers panel, or press Next layer. Circular close-ups appear around the plant, each zoomed in on a specific part. For the rose, you'll see close-ups of the flower, the petals, the stem and prickles, the rose hip, a leaf, and the roots.

The rose in the Parts up close view, with round close ups of the flower, petals, stem and prickles, rose hip, leaf and roots around it

Tap a label and a note explains what that part does. For example, the petal label says that petals attract pollinators with color and scent. The rose hip label explains that it's the fruit of the rose, full of seeds.

The Labels button in the bottom bar hides all labels when you just want to look at the plant without text.

On a phone, the four views sit as tabs at the top: Whole, Parts, Slice, X-ray. The plant list opens from the bottom bar.

Two views on a phone: a tulip with close ups of the flower, leaf, bulb, stem and roots, and a bean plant cut down the middle with its pod open

4. Slice the plant open with "Cross-section"

Switch to Cross-section and the plant is cut down the middle. On the apple tree, you can see inside the trunk and roots, with apples and flowers sliced in half on the branches. On the bean plant, the pod is open so you can see the beans lined up inside.

This view shows that every part of a plant is built from the inside out. You can see the layers in the stem, the chambers in the fruit, and the structure of the seed.

An apple tree cut down the middle, showing inside the trunk and roots, with halved apples and flowers on its branches

5. Watch water flow in "X-ray water flow"

Switch to X-ray water flow and the plant fades to a ghost. Blue dots rise from the roots to the leaves and flower, carrying water. Green dots flow back down, carrying sugar made in the leaves. Those are the two kinds of tubes every plant has: the xylem (water up) and the phloem (sugar down).

If you want more detail on the difference, I covered it in depth on the xylem vs phloem page.

A sunflower in the X-ray water flow view, with blue dots of water rising through the stem and green dots of sugar flowing down, and its info card below

6. Meet the special ones

Press Special in Quick Explore to see the two odd plants.

The Venus Flytrap catches insects. It snaps shut when its trigger hairs are touched twice within 20 seconds. The trap has tiny teeth along the edges that lock together, and the plant digests the insect over about ten days.

The Mushroom is not a plant at all. It's a fungus. It can't make food from sunlight. What you see above the ground is just the fruiting body. Below the soil is a web of threads called mycelium, which absorbs nutrients from dead plants.

The Special filter showing only the Venus Flytrap and the Mushroom, with the flytrap on the podium and its fact card

7. Choose dark or white mode, HD or Lite

The button at the top switches between a dark green look and a bright white look that works better on projectors and in classrooms.

Next to it, HD and Lite set the level of detail. HD models have more geometry and look sharper on strong computers. Lite models are lighter and load faster on older devices or phones. The simulator picks the right one automatically based on your device, but you can switch manually if you want.

A tulip split down the middle: the left half in the dark green mode, the right half in the bright white mode

How I built it, in plain words

Everything is drawn live with three.js, a widely used JavaScript library for WebGL. The lights, the podium, and the plants are real 3D objects rendered in the browser. That's what lets you rotate them and zoom in without pixelation.

The model pipeline

I modeled each plant in Blender. Each plant has three models:

  1. A whole plant model showing the plant as it grows.
  2. A parts model with circular close-ups around the plant, one for each labeled part.
  3. A cross-section model with the plant sliced down the middle.

All three models are scaled and aligned so switching views keeps the plant in the same place. That took a lot of trial and adjustment, especially for the oak tree, where the trunk diameter had to match across all three models.

For the X-ray view, I wrote a shader that fades the plant to a semi-transparent ghost and runs a particle system on top. Blue particles rise along paths that follow the xylem tubes. Green particles flow down along the phloem. The paths are hand-drawn Bézier curves in Blender, exported as JSON, and loaded into three.js at runtime.

Two sizes for every model

The hard part was keeping ten detailed plants, each with three models, smooth on a phone. I solved it by creating two sizes of every model: HD models for strong computers and lighter Lite copies for older devices. The Lite models have fewer polygons and smaller textures, but they're aligned to the HD versions so the switch is invisible.

The simulator detects your device's GPU tier on load and picks the right model set. You can override it in settings.

What I reused from earlier tools

I didn't start from zero. The lighting rig, the podium system, and the camera controls are adapted from my 3D chemistry lab simulator, which I built earlier this year. The particle flow system is new, but the shader pipeline is the same one I used for electron clouds in the chemistry tool.

If you want to see the full build process, I post time-lapse videos of every project on my YouTube channel.

What the simulator does not do

Here's what it doesn't do, and why.

It does not show every plant part

I focused on the parts that matter for understanding how a plant works: roots, stem, leaves, flower, fruit, seeds. I skipped parts like stipules, bracts, and specialized root hairs. The goal is clarity, not botanical completeness.

It does not simulate growth over time

The plants are static models. They don't grow, bloom, or die. Adding growth animation would have tripled the model count and made the file size too large for smooth mobile loading.

It does not include soil or weather

The roots are visible on the podium, but there's no soil texture, no water droplets on leaves, no wind. Those are visual details that would add weight without adding understanding.

It does not replace a real plant

You can't smell a rose in the simulator. You can't feel the texture of a leaf or watch a seed sprout over days. The simulator is for the parts you can't see in real life: the inside of a stem, the flow of water, the structure of roots under the ground.

Why I built this tool, and what I'm building next

I built this because I wanted to see plants the way they actually work, not the way they're drawn in textbooks. I wanted to turn them, take them apart, and watch what moves inside them. And I wanted to do it in a browser, with no install and no barrier between curiosity and answers.

The 3D Plant Anatomy simulator is live now at visionvix.world. It's free, no sign-up required, and it works on any device with 3D graphics support.

Next, I'm building a 3D Earth Science simulator. Same idea: turn the planet, slice it open, watch tectonic plates move in real time. If you want to follow the build, subscribe on YouTube or check back at visionvix.world.

If you've used the simulator, or if you have a plant you think should be added, I'd like to hear about it. You can leave a comment below or find me through the links on the site.

Top comments (0)