Geodan / mapbox-3dtiles

3D Tiles implementation using Mapbox GL JS custom layers
BSD 3-Clause "New" or "Revised" License
297 stars 62 forks source link

Support RTC_CENTER in i3dm #32

Closed bertt closed 3 years ago

bertt commented 3 years ago

For high precision instance positions in i3dm there should be support for RTC_CENTER in the featuretable.

Sample featuretable: {\"INSTANCES_LENGTH\":25,\"RTC_CENTER\":[1215013.8340490046,-4736316.75897742,4081608.4380407534],\"EAST_NORTH_UP\":true,\"POSITION\":{\"byteOffset\":0}}

Spec: https://github.com/CesiumGS/3d-tiles/tree/master/specification/TileFormats/Instanced3DModel#rtc_center

Should be similar to the RTC_CENTER functionality in pnts tiles.

anneb commented 3 years ago

Support added, to be tested with a i3dm that includes RTC_CENTER

bertt commented 3 years ago

fixed