mfbonfigli / gocesiumtiler

A Cesium.js point cloud 3D tiles generator from LAS files written in Golang
GNU Lesser General Public License v3.0
185 stars 39 forks source link

Add support for 3D Tiles 1.1 #46

Closed mfbonfigli closed 4 months ago

mfbonfigli commented 4 months ago

This PR:

  1. Adds experimental support for 3D tiles 1.1 https://github.com/CesiumGS/3d-tiles. By default the tool still creates tileset v1.0 but an optional flag -v can be passed with value 1.1 to generate GLTF tiles.
  2. Improves the README.md also providing a link to a live example of tiler output
  3. Bumps the version number to 2.0.0-beta

Support of 3D Tiles 1.1 is added by refactoring the writer implementation. Now a tile writer requires a geometry encoder instance. This can either be a PntsEncoder that writes pnts (3D Tiles 1.0) or a GltfEncoder that writes glb (gltf), the format used by 3D Tiles 1.1.

The GLTF encoder relies on https://github.com/qmuntal/gltf

mfbonfigli commented 4 months ago

The first failing build is an artifact result of a misconfiguration in the build automation that is using v1 logic on v2 code. This should now be fixed from next PR. Merging.