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

Some glb's will not output anything into the data folder #38

Open
sweco-sekrsv opened this issue Feb 12, 2025 · 1 comment
Open

Some glb's will not output anything into the data folder #38

sweco-sekrsv opened this issue Feb 12, 2025 · 1 comment

Comments

@sweco-sekrsv
Copy link

I have a problem with some glb files not being used in the tiler. I have attached and example zip.

Command used:

java -jar mago-3d-tiler-1.10.6-release-natives-windows.jar -input C:\work\3D_tiles\bug_mago -inputType glb -output C:\work\3D_tiles\mago_test6 --crs 3011 --xOffset 151400 --yOffset 6577000

The first glb file is exported from FME (_fme.glb), this works ok and will generate a data folder and a working tileset.
The other one (_gltfpack.glb) have been reduced in triangles, 10% kept using gltfpack (https://github.com/zeux/meshoptimizer). When running this through the tiler no data folder are being created.

Both glb files are loading fine in Blender, Babylon.js Three.js etc.

glb_problems.zip

@znkim
Copy link
Contributor

znkim commented Feb 26, 2025

Hi, @sweco-sekrsv

I've checked both types of data.

I found a problem with the data generated by gltfpack.
The size of the color buffer is not proportional to the number of vertices in that data.
I don't think that's a normal case, but I will add exception handling for such cases in the next patch.

Thank you for your feedback.

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

2 participants