Skip to content
LidarKit

How to walk through a drone 3D model in your browser

From a WebODM or OpenDroneMap project to running around it as a person at true size, in about two minutes.

Published

A textured 3D model from a drone survey is impressive from above and oddly hard to read. Seen from 200 metres up, you can't tell whether a path is one metre wide or three, or whether a shed is two metres tall or five. Put a person in the model and that question answers itself: every wall, kerb and tree now has something next to it to be measured against.

That's what walk mode in the GLB viewer does. It puts a 1.75 m figure on the ground and follows them with the camera, like a third-person game, and the figure moves the way a person would: up slopes and kerbs, stopped by walls. It runs in the browser, on the model file you already have, without uploading it anywhere.

Try it first on a sample park: a park in Ohio with paths, a shelter, a car park and a pond, made from 77 drone photos (OpenDroneMap's Aukerman test data, CC0) with exactly the command below.

A small figure in a teal shirt running up a paved path across a park lawn towards a white shelter, trees on both sides, in a browser 3D viewer
Walk mode in the sample park: running up the path to the shelter. Everything around the figure is the drone model itself.

1. Get the textured model as a GLB

GLB is the binary form of glTF, the 3D format browsers and game engines read natively. One file holds the geometry and every texture, which is what makes it easy to open anywhere.

From WebODM

Open the finished task and use its Download Assets menu. Next to the orthophoto and the point cloud there's the textured model as a GLB, named after the task and ending in textured_model.glb. If the task has no textured model at all, it was processed without one; switch the textured model on in the processing options and run the task again.

From OpenDroneMap on the command line

Add --gltf to the run. ODM then writes odm_texturing/odm_textured_model_geo.glb alongside the usual OBJ. The sample on this site was made exactly that way, with ODM 3.6.2:

docker run -ti --rm -v /my/projects:/datasets opendronemap/odm \
  --project-path /datasets aukerman \
  --gltf --skip-report --skip-orthophoto

The last two flags only skip outputs the walk doesn't need. On a 12-core PC the 77 photos took about 80 minutes, most of it building the dense point cloud.

From other software

Any GLB in metres works, whatever made it. glTF is defined in metres, which is what lets the viewer put a person in at the right size.

2. Open it

Drop the .glb on the GLB viewer. A model from WebODM opens textured and level, and the panel under it lists what was in the file:

  • Compression: Draco. WebODM and ODM squeeze the geometry with Google's Draco codec. In the sample, 262,018 triangles take 1.6 MB of the file.
  • Origin (CESIUM_RTC). The vertices are stored relative to a point in the project's projected coordinates, and that point is added back. Sizes and coordinates then match the project's point cloud.
  • Textures. Almost all of the file is photographs: ODM wrote 57 JPEG textures, from 8192 × 8192 down to 256 × 256, 491 megapixels and 45 MB in all. For the sample they were redrawn at about a third of their size, to 64 megapixels and 11.5 MB. Big projects carry hundreds of megapixels of them, more than a browser tab can keep in graphics memory, so the viewer draws them smaller when it has to and says by how much. The file itself isn't changed.

3. Press Walk

The figure is put down on open, level ground near the middle of the view (a square or a road, not a roof or the gap between two buildings) with the camera a few metres behind. Then:

  • W A S D or the arrow keys to run, at 3.6 m/s.
  • Shift to sprint, at 7 m/s.
  • Drag to look around, scroll to bring the camera closer or further.
  • Esc or Stop walking to go back to the overview.
  • On a phone, a joystick: push it to run, all the way to sprint.

To make it feel like walking rather than flying, the figure keeps to a few rules:

  • It follows the ground: up stairs and slopes of up to about 35°, and over kerbs of up to about 45 cm.
  • Anything steeper than a step is a wall. Photogrammetry smears a building's wall into a steep slope, and the figure stops at it instead of creeping up onto the roof. Walk into a wall at an angle and it slides along.
  • It won't jump down more than 1.2 m, and it stops at the edge of the model.
  • When a wall gets between the camera and the figure, the camera moves in so you keep seeing them.

What a drone model can and can't show at eye level

A model made from drone photos is a single surface draped over everything the cameras saw from above. Walking through it shows that honestly:

  • Trees are mostly solid. Most come out as mounds with no trunk and no space under the crown, so the figure goes round them. A few are only the top of a crown with ground underneath, and those you can walk under. Parked cars are blocks.
  • Walls are softer than they look from above. Building faces were photographed at an angle, if at all, so up close they're blurred or bent.
  • Texture detail is set by the flight. A survey flown at 80 m gives ground pixels of a few centimetres, sharp enough to read road markings. A higher flight, or textures drawn smaller to fit in memory, softens that.
The figure running past the park shelter: a pale building with a red roof whose walls look smooth and rounded up close
Beside the shelter, the figure gives the scale. Up close, its walls show how photogrammetry rounds off what the drone only saw at an angle.

None of that makes the model wrong; it's what aerial photogrammetry captures. Walking through it is one of the quickest ways to see where your own survey is solid and where it's thin.

Frequently asked questions

Can I walk through a WebODM 3D model without uploading it?
Yes. Download the textured model from WebODM as a GLB and drop it on the GLB viewer. The file is read and drawn by your own browser, so it never leaves your computer, and there's nothing to install.
Where is the GLB in WebODM?
In the task's Download Assets menu, next to the orthophoto and point cloud downloads. The file is named after the task and ends in textured_model.glb. If there's no textured model at all, the task was processed without one; turn the textured model back on in the processing options and run it again.
Which OpenDroneMap option writes a GLB?
--gltf. With it, ODM writes odm_texturing/odm_textured_model_geo.glb next to the usual OBJ, already Draco-compressed and with its position stored as an offset.
Why does the figure stop in front of a hedge or a tree?
A drone model is a surface draped over everything the cameras saw from above. Most trees and hedges come out as solid mounds with no trunk and no space under the crown, too steep to climb, so the figure goes round them. Where the model only has the top of a crown, with ground under it, the figure can walk underneath. Parked cars are blocks either way.
Why is there no Walk button for my model?
Walk mode is offered for GLB and glTF files at least 20 metres across. glTF is defined in metres, so a person can be put in at true size; an STL or OBJ has no units, and a model smaller than a room has nowhere to walk.
It says there is no ground to stand on. What now?
The figure is put down near the middle of the view, on low, level, open ground. If the view is centred on something with no ground around it, pan to an open spot (shift-drag or right-drag), then press Walk again. A model with its up axis set wrongly also has no level ground; switch Up between Y and Z first.
Does it work on a phone?
Yes. On a touch screen an on-screen joystick appears: push it to run, all the way to sprint, and drag the view to look around. Very large models are limited by the phone's memory more than by its speed.