Slide 23
Slide 23 text
3D点群アニメーション
点群3Dモデル作成
• PythonでGeotiffから点群glTF
モデルを生成
• glTFモデルを生成
• pygltflib1:PythonでglTFの読み書
きを行うライブラリ
• 対応するピクセルのインデックス
とWGS84の座標値を属性情報とし
て持たせる
gltf = pygltflib.GLTF2(
...
accessors=[
pygltflib.Accessor(
bufferView=0,
componentType=pygltflib.FLOAT,
count=len(points),
type=pygltflib.VEC3,
max=points.max(axis=0).tolist(),
min=points.min(axis=0).tolist(),
),
pygltflib.Accessor(
bufferView=1,
componentType=pygltflib.FLOAT,
count=len(lonlat_list),
type=pygltflib.VEC2,
max=lonlat_list.max(axis=0).tolist(),
min=lonlat_list.min(axis=0).tolist(),
),
pygltflib.Accessor(
bufferView=2,
componentType=pygltflib.UNSIGNED_INT,
count=len(idx_list),
type=pygltflib.VEC2,
max=idx_list.max(axis=0).tolist(),
min=idx_list.min(axis=0).tolist(),
),
],
...
3Dモデルの
頂点の座標値
(ECEF座標)
WGS84の座標値
ピクセルの
インデックス
23
[1] pygltflib https://gitlab.com/dodgyville/pygltflib