PrincessGod / objTo3d-tiles

Convert obj model file to 3d tiles
https://princessgod.github.io/objTo3d-tiles
Apache License 2.0
777 stars 232 forks source link

同一模型,不同坐标,不同参数,如何处理? #48

Closed fish-uncle closed 1 year ago

fish-uncle commented 2 years ago

你好,我现在有这样的应用场景 模型(下面叫x模型)是一样,可能自定义参数不一致,坐标不一致 这样我需要怎么做,比较优雅?

我现在的做法是,复制了同样的x模型(因为这里输出是按模型名输出的,我就复制了x-1,x-2) 每个生成一块独立的瓦片

再将n个瓦片,合并一个tileset.json

|--input |-----customBatchtable-1.json |-----customBatchtable-2.json |-----customTilesetOptions-1.json |-----customTilesetOptions-2.json |--output |-----Batchedx-1 |---------x-1.b3dm |---------tileset.json |-----Batchedx-2 |---------x-2.b3dm |---------tileset.json |-----tileset.json |--x-1.obj |--x-2.obj