MIERUNE / plateau-gis-converter

A proof of concept GUI and CLI tool for converting PLATEAU's 3D city models (CityGML) of Japan into various geospatial formats, including 3D Tiles, MVT, and GeoPackage.
https://mierune.github.io/plateau-gis-converter/
MIT License
51 stars 10 forks source link

Implicit Geometry (繰り返しオブジェクト, Instancing) に対応する #501

Open ciscorn opened 6 months ago

ciscorn commented 6 months ago

地下埋設物モデルは CityGML の Implicit Geometry(同一の3Dオブジェクトを複数の地物から参照する仕組みで)で表現されうる。また、3D Tiles ではそれを活かす GPU Instancing ができる。

(要するに、同じマンホールとかの3Dモデルを、データ側でも描画側でも効率的に使いまわす仕組みがある)

2つの側面での対応が必要:

https://www.mlit.go.jp/plateaudocument/#toc9_06_05

繰り返しオブジェクト(ImplicitGeometry)は、地物毎に幾何オブジェクトを作成する代替として、一つのプロトタイプモデルを作成し、そのプロトタイプモデルを複数の地物が参照する仕組みである。CityGMLでは、都市設備、単独木など、特定の地物型のみこの仕組みを使用できる。 地物毎に、どのプロトタイプモデルを使用するのか、どこに配置するのか、また、プロトタイプモデルをどう変形するのかを情報としてもつことができる。 標準製品仕様書では、埋設物モデル(LOD2)、埋設物モデル(LOD3)、埋設物モデル(LOD4)のみ繰り返しオブジェクトを使用することを可とする。

nokonoko1203 commented 4 weeks ago
nokonoko1203 commented 4 weeks ago

関連 https://github.com/MIERUNE/plateau-gis-converter/issues/500

TadaTeruki commented 2 weeks ago

3D TilesのGPU instancingについて

仕様 (Specificationより)

3D Tiles 1.1以降はglTFの拡張EXT_mesh_gpu_instancingを利用する形でinstancingを実現することとなる https://docs.ogc.org/cs/22-025r4/22-025r4.html#tileformats-gltf-instanced-3d-model-i3dm

Examples

https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Vendor/EXT_mesh_gpu_instancing

https://github.com/bertt/cesium_3dtiles_samples/tree/master/samples/1.1/instancing

TadaTeruki commented 2 weeks ago

課題

PLATEAUの現状のデータの中で、埋設物モデル(LOD2以降)を持つデータが限られている https://www.geospatial.jp/ckan/dataset/plateau