177 points · by OmarShehata · 2y ago · 30 comments
I wanted to simplify this so all you need to do is get an API key, select a map region and a zoom level, and get one combined glTF file that you can throw into any engine. Especially if you're just prototyping and want to see how this data looks in your engine before investing in figuring out all the nuances of the API & coordinate system.
(Note that the API prohibits offline use, as in you can't distribute a processed glTF file like this. But you can do this preprocessing in memory whenever you're fetching tiles).
0: https://opentopography.org/start 1: https://giferrari.net/blog/2023/1/2023-1-13-printing-lidar-t...
I have been following your tutorial for the past couple of days. I run into a major nightmare with GDAL not being seen in python. Its installed in pip list - I have OSgeoNW, GRASS GIS etc - and no matter what I do, I cant get GDAL to work, thus the phstl conveter for mesh cant be run and I get stuck.
I was inspired by that exact same user when that was posted to /r some time ago - and I went down this path then - and got just as frustrated.
This is a nice tool, along with its desktop friend:
As an aside, has anybody in the UK used a 3D printing service that they would recommend?
Would be cool to have a framed wall hanging of a bas relief portrait of your hometown. Maybe then print a satellite image onto a hydrographic film and apply it? (or just paint it to match?)
If you're doing visualizations or interactive stuff, it's also FAR better than just importing DEMs and displacing a subsurf plane, for the precisely same reason you can't have a perfectly accurate map on a 2d plane. The BlenderGIS stuff, meanwhile, will always be correcting for those sphere hijinks, so when fresh data comes in it isn't progressively more and more off. Which is precisely what happened to me when I tried to re-create FDR (flight data) on terrain generated from DEMs. The track kept deviating more . . and more . . and more . . even though the latlons were correct. BlenderGIS set me straight, and looked better.
Dang, I'd give my left nipple to do this stuff professionally full time, but whatcha gonna do.
not sure that's the image you had in mind.
On the website, I put in the coords (44.3386,-68.2733) and hit Fetch Tiles and get
Fetching tiles at (44.3209 -68.2635, 9, sse: 7)
Failed to fetch 3D Tiles!
Failed to load resource: the server responded with a status of 403 () index.f704be55.js:3623
Error: Failed to fetch resource https://tile.googleapis.com/v1/3dti...
at CS (index.f704be55.js:3605:16501)
at async Tb (index.f704be55.js:3605:33883) ==== No tiles found for screen space error 8. Getting tiles
that are within 2x of 64 ===
Fetching glTF 0/2
Fetching glTF 1/2
Normalizing & stitching together 2 glTF's
for these coordinates. Make sure you have enabled retrieving these 3D tiles in Google's console.D'oh, thank you.
When I go into the project it tried to get me to sign up for a monthly service which was unclear what it does and was not 'escapable' (I had to leave the page or choose a paid plan).
I really don't want to hit 'accept' on something and find out a month later I have a bill from google. Is there something simple I am missing?
> Is there something simple I am missing?
Yes. Last year's Google Maps API. We all miss it.Australia has ELVIS which makes it fantastically easy for the whole country
Every other country seems to have a very fragmented approach to elevation data though
I’m aware of OpenTopography but they are extremely coarse compared to the precision of point cloud LIDAR
This site provides access to lidar point clouds (and DEMs, etc) collected by many agencies.
Additional lidar data is often available from individual state agencies, which is sometimes not aggregated into the national-scale services. A good search term is "[state abbreviation] gis" for the state of interest.
AFAIK, OpenTopography merely aggregates the data available at the above sources and similar. Unfortunately, OpenTopography has relatively restrictive access terms (e.g., free access only for those with .edu addresses), even though the same data accessed directly from USGS or other federal agencies has no such restrictions.
In chrome instead, nothing gets downloaded at all, it hangs at
> Fetching glTF 0/10
In the console, one can find
Uncaught (in promise) TypeError: Failed to fetch
at ha.load (index.f704be55.js:3581:132050)
at index.f704be55.js:3581:208771
at new Promise (<anonymous>)
at ev._loadLibrary (index.f704be55.js:3581:208749)
at ev._initDecoder (index.f704be55.js:3581:209106)
at ev.preload (index.f704be55.js:3581:208814)
at new Hx (index.f704be55.js:3581:181131)
at Tx.parse (index.f704be55.js:3581:165923)
at Object.onLoad (index.f704be55.js:3581:164332)
at index.f704be55.js:3581:133292