Skip to content
This repository has been archived by the owner on Aug 14, 2022. It is now read-only.

Latest commit

 

History

History

exporter

Model exporter

We can dump a textured 3D model (*.obj with *.bmp and *.jpg) using the following scripts. They require Node.js v8 and npm:

# Install dependencies (tested with node@8.15.0, npm@6.4.1)
npm install

# Find octant of latitude and longitude
node lat_long_to_octant.js 37.420806884765625 -122.08419799804688

# Dump octant with max-level 20
node dump_obj.js 20527061605273514 20

Exported files will be in ./downloaded_files/obj. They can be opened in Blender like this.

Notes

Alternative methods for finding octants:

You can use this to dump json and raw data instead of obj:

node dump_obj.js 20527061605273514 20 --dump-json --dump-raw