Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yash-154 opened this issue Mar 15, 2024 · 2 comments
Open

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

yash-154 opened this issue Mar 15, 2024 · 2 comments

Comments

@yash-154
Copy link

yash-154 commented Mar 15, 2024

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
Copy link

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
Copy link
Contributor

znkim commented Apr 1, 2024

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}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants