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 3Dtiles (b3dm) from shapefile with height column #9

Closed arjan-odedra closed 3 months ago

arjan-odedra commented 3 months ago

Bug Description: When generating 3D tiles (b3dm) using the following command:

java -jar mago-3d-tiler-1.4.4-natives-linux.jar --input /home/santosh/Downloads/pcmc_ward13/pcmc_ward13_4326.shp --inputType shp -c 4326 -aa -ac B_Height_m --output /home/santosh/Downloads/pcmc_ward13/tiles/

The 3D tiles are successfully generated; however, upon closer inspection, it appears that out of the six faces, three front faces are missing in most of the features. This issue is affecting the visual representation of the generated 3D tiles.

Steps to Reproduce:

Execute the provided command to generate 3D tiles. Inspect the generated tiles, focusing on the front faces of the features. Expected Result: All six faces of the generated 3D tiles should be present, providing a complete and accurate representation of the features.

Actual Result: In most cases, three front faces are missing, leading to an incomplete rendering of the features.

Additional Information:

mago-3d-tiler version: 1.4.4 Operating System: Ubuntu 20.4

Please find attached images for your reference and zip file containing sample shapefile to be used with above command sample_data.zip Screenshot from 2024-03-12 11-56-49 Screenshot from 2024-03-12 11-56-13 Screenshot from 2024-03-12 11-56-02

znkim commented 3 months ago

Hello, @arjan-odedra

Looking at the picture, it looks like the triangles are reversed in orientation. The "--altitude column" specifies the absolute height of the building floor, and the "--height column" specifies the absolute height of the building ceiling. This is probably why the building-extrusion is upside down.

You can get closer to the desired result by using the -hc (--height column) option instead of the -ac (--altitude column) option.

java -jar mago-3d-tiler-1.4.4-natives-linux.jar --input /home/santosh/Downloads/pcmc_ward13/pcmc_ward13_4326.shp --inputType shp -c 4326 -aa -hc B_Height_m --output /home/santosh/Downloads/pcmc_ward13/tiles/

image

arjan-odedra commented 3 months ago

Thanks @znkim for quick help it is working fine after regenerated tile using above command java -jar /home/arjan/Downloads/mago-3d-tiler-1.4.1-natives-linux.jar --input /home/arjan/Downloads/pcmc_b_ht_4326.shp --inputType shp -c 4326 -aa -hc B_Height_m --output ./

Screenshot from 2024-03-12 16-00-51 Screenshot from 2024-03-12 16-00-34