Earthatile is an engine-agnostic runtime for loading and navigating 3D Tiles geospatial datasets. Use it to create immersive 3D map experiences with Photorealistic 3D Tiles such as flight simulators, explainers, games and more.
Earthatile depends upon Google's Photorealistic 3D Tiles API. To access it, you need an API key. You can obtain a key by setting up a Google Cloud project with a billing account. You then need to enable the Map Tiles API. To learn more, see Setup in Cloud Console. Once you have your API key, you can:
If you want to run Earthatile in Node, you simply need to add it as a dependency in your package.json
:
npm install earthatile
Earthatile is supplied with an integration for PlayCanvas.
- Ensure you have the Draco WASM module in your project (set
Settings
>Asset Tasks
>Mesh Compression
toDraco
and import the module). - Copy
dist/earthatile.js
to the Asset Panel in the Editor. - Copy
integrations/playcanvas/*.js
to the Asset Panel in the Editor. - Create an Entity and add a Script Component.
- Assign
tileRenderer
andgeolocation
scripts to the Script Component. - Add a Script Component to your Camera entity.
- Assign the
flyCamera
script to the Script Component. - Launch the scene. 🚀
Alternatively, fork this project.