OmarShehata / google-earth-as-gltf

MIT License
342 stars 14 forks source link

Normalize glTF's without ThreeJS #2

Open OmarShehata opened 11 months ago

OmarShehata commented 11 months ago

The simple NodeJS example fetches glTF tiles but does not normalize them:

https://github.com/OmarShehata/google-earth-as-gltf/blob/3ca254839345b83b0a707e01275b3d20490ea046/simple-node-example/fetch-tiles.js#L60

currently, the Viewer.js normalizes the geometry with ThreeJS (by adding a container on top and re-exporting the scene as a glTF). See: https://github.com/OmarShehata/google-earth-as-gltf/blob/3ca254839345b83b0a707e01275b3d20490ea046/src/Viewer.js#L73

It would be nice to support a pure JS way of normalizing & re-orienting so it can be easily ported to other engines as example code for anyone who is trying to use the API in their own engine/framework