Sign inSign up

cseelye/terrain-model

By cseelye

Updated over 8 years ago

Create a 3D model from GPS coordinates

Image
0

1.6K

cseelye/terrain-model repository overview

3D Terrain Modelling

This tool will create a 3D model in Blender given a set of GPS coordinates. This is still a work in progress, so not all of the steps are automated yet.

I built this primarily to take a GPX route from a hike or four wheeling trip and create a full color, printable 3D model.

Workflow

This is the typical steps that I follow to create a new model. All of these commands are run inside the container, with a host directory mounted at "work" to hold the input/output files

  1. Create the X3D model
./build_model.py --gpx-file work/hitw.gpx \
                 --padding 0.2 \
                 --model-file work/hitw.x3d
  1. Download orthoimages from The National Map
  2. Crop the image(s)
./crop_geophoto.py --gpx-file work/hitw.gpx \
                   --padding 0.2 \
                   --output-file work/cropped.tif \
                   --input-file work/m_3911925_se_11_1_20150616_20150923.jp2 \
                   --input-file work/m_3911933_ne_11_1_20150616_20150923.jp2
  1. Overlay the tracks onto the image
./draw_track.py --gpx-file work/hitw.gpx \
                --track-color red \
                --track-width 10 \
                --input-file work/cropped.tif \
                --output-file work/hitw.png
  1. Import the X3D model into blender, add some thickness to it, UV map the image onto it, export it and upload to shapeways for printing

Tag summary

Content type

Image

Digest

Size

488.1 MB

Last updated

over 8 years ago

docker pull cseelye/terrain-model