4 ms·
Yes, blender already has glTF support https://docs.blender.org/manual/en/3.5/addons/import_export/scene_gltf2.html https://docs.blender.org/manual/en/3.5/addons
by Maxious 3y ago
Yes, blender already has glTF support https://docs.blender.org/manual/en/3.5/addons/import_export/scene_gltf2.html https://docs.blender.org/manual/en/3.5/addons/import_export/...
- andybak 3y agoIt's slightly more complex than that. This is in 3D Tiles format which uses GLTF but I don't think you can simply grab a GLTF from an API endpoint. It's been sliced into cubes with hierarchical level of detail and other things I barely understand.
- OmarShehata 3y agoYou can simply just grab the glTF! Here's Google's doc page on making requests to the .glb (binary version of glTF) https://developers.google.com/maps/documentation/tile/create-renderer https://developers.google.com/maps/documentation/tile/create...
- andybak 3y agoOh that's interesting. You probably still need to jump through hoops to figure out the right url for the grid square and level of detail you need. And the session parameter - so you still need to make the initial tile request to get the JSON.
- pininja 3y agoThey’ve built a set of framework-agnostic loaders to help sort out which tiles to request for any given viewport https://loaders.gl/docs/modules/tiles https://loaders.gl/docs/modules/tiles All of the data loading and parsing can be done in loaders.gl, check out the repo 3D-tiles examples for a good place to get started.
- andybak 3y agoYou presume I'm doing this in a browser. :-) I'll have to parse the json myself but it looks doable.
- mrguyorama 3y agoDo a little googling and you can probably find code on github to take care of the "get me terrain for these coordinates" part for you. That's how I managed it a few years ago when I was programmatically downloading tiles from google earth without understanding how to convert from coordinates to their url scheme. Might have to wait a week though.