Gaia3D / mago-3d-tiler

This is the official repository of mago-3d-tiler.
https://seoul.gaia3d.com:10903/
Mozilla Public License 2.0
105 stars 9 forks source link

Facing issue in generating 3D tiles generation (i3dm) #11

Open yash-154 opened 3 months ago

yash-154 commented 3 months ago

I was just going through the documentation and found out that we can change the output type format by using --outputType
and using the formula below i generated the 3D tiles but it was generated in .b3dm format only. below is the code which was used in terminal for generating output.

java -jar mago-3d-tiler-1.4.4-natives-windows.jar --input "C:\Users\GIS\Desktop\mago 3d\data\Pcmc building\pcmc_building_32643.shp" --inputType shp --outputType .obj --output "C:\Users\GIS\Desktop\mago 3d\3D tiles\pcpc_i3dm format"

mittermichal commented 3 months ago

you want to create i3dm from building footprints? i3dm is for instancing same model with different transformation. e.g. trees, street lamps, ... https://github.com/CesiumGS/3d-tiles/tree/main/specification/TileFormats/Instanced3DModel

https://github.com/Geodan/i3dm.export this too can create 3D Tiles instanced 3D models

znkim commented 3 months ago

When executing outputType as i3dm, you can use the option --outputType i3dm. In this case, the supported input file formats are KML and SHP(supported only point geometry).

In order to convert shape data to i3dm, you also need to specify the path of the 3D file to be used as an instance as a command option. That option only works in version 1.5.0 or later, so you'll need to update your version.

So, you can use the command like below.

java -jar mago-3d-tiler-1.4.4-natives-windows.jar --input "C:\Users\GIS\Desktop\mago 3d\data\Pcmc building\pcmc_building_32643. shp" --inputType shp --outputType i3dm --output "C:\Users\GIS\Desktop\mago 3d\3D tiles\pcpc_i3dm format" --instance {obj_file_path}