Skip to content
New issue

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

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

Already on GitHub? # to your account

All LOD's have the same triangle count #37

Open
sweco-sekrsv opened this issue Feb 11, 2025 · 3 comments
Open

All LOD's have the same triangle count #37

sweco-sekrsv opened this issue Feb 11, 2025 · 3 comments

Comments

@sweco-sekrsv
Copy link

Hi!

When running this command I get the LOD's as expected but they have not been reduced in triangles:

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

[INFO][08:34:53][process.TilingPipeline(executePreProcesses:109)]::[Pre] Total Node Count 2
[INFO][08:34:53][process.TilingPipeline(executePreProcesses:110)]::[Pre] End the pre-processing.
[INFO][08:34:53][process.TilingPipeline(executeTilingProcess:114)]::[Tile] Start the tiling process.
[INFO][08:34:53][process.TilingPipeline(executeTilingProcess:116)]::[Tile] Writing tileset file.
[DEBUG][08:34:53][tile.Batched3DModelTiler(createNode:92)]::[TriangleCount] Total : 2940
[DEBUG][08:34:53][tile.Batched3DModelTiler(createNode:93)]::[Tile][ContentNode][OBJECT] : 2
[INFO][08:34:53][tile.Batched3DModelTiler(createContentNode:201)]::[Tile][ContentNode][RC0][LOD3][OBJECT1]
[DEBUG][08:34:53][tile.Batched3DModelTiler(createNode:92)]::[TriangleCount] Total : 1038
[DEBUG][08:34:53][tile.Batched3DModelTiler(createNode:93)]::[Tile][ContentNode][OBJECT] : 1
[INFO][08:34:53][tile.Batched3DModelTiler(createContentNode:201)]::[Tile][ContentNode][RC00][LOD2][OBJECT1]
[DEBUG][08:34:53][tile.Batched3DModelTiler(createNode:92)]::[TriangleCount] Total : 1038
[DEBUG][08:34:53][tile.Batched3DModelTiler(createNode:93)]::[Tile][ContentNode][OBJECT] : 1
[INFO][08:34:53][tile.Batched3DModelTiler(createContentNode:201)]::[Tile][ContentNode][RC000][LOD1][OBJECT1]
[DEBUG][08:34:53][tile.Batched3DModelTiler(createNode:92)]::[TriangleCount] Total : 1038
[DEBUG][08:34:53][tile.Batched3DModelTiler(createNode:93)]::[Tile][ContentNode][OBJECT] : 1
[INFO][08:34:53][tile.Batched3DModelTiler(createContentNode:201)]::[Tile][ContentNode][RC0000][LOD0][OBJECT1]
[DEBUG][08:34:53][tile.Batched3DModelTiler(createNode:92)]::[TriangleCount] Total : 1038
[DEBUG][08:34:53][tile.Batched3DModelTiler(createNode:93)]::[Tile][ContentNode][OBJECT] : 1
[INFO][08:34:53][tile.Batched3DModelTiler(createContentNode:201)]::[Tile][ContentNode][RC3][LOD3][OBJECT1]
[DEBUG][08:34:53][tile.Batched3DModelTiler(createNode:92)]::[TriangleCount] Total : 1902
[DEBUG][08:34:53][tile.Batched3DModelTiler(createNode:93)]::[Tile][ContentNode][OBJECT] : 1
[INFO][08:34:53][tile.Batched3DModelTiler(createContentNode:201)]::[Tile][ContentNode][RC30][LOD2][OBJECT1]
[DEBUG][08:34:53][tile.Batched3DModelTiler(createNode:92)]::[TriangleCount] Total : 1902
[DEBUG][08:34:53][tile.Batched3DModelTiler(createNode:93)]::[Tile][ContentNode][OBJECT] : 1
[INFO][08:34:53][tile.Batched3DModelTiler(createContentNode:201)]::[Tile][ContentNode][RC300][LOD1][OBJECT1]
[DEBUG][08:34:53][tile.Batched3DModelTiler(createNode:92)]::[TriangleCount] Total : 1902
[DEBUG][08:34:53][tile.Batched3DModelTiler(createNode:93)]::[Tile][ContentNode][OBJECT] : 1
[INFO][08:34:53][tile.Batched3DModelTiler(createContentNode:201)]::[Tile][ContentNode][RC3000][LOD0][OBJECT1]
[DEBUG][08:34:53][tile.Batched3DModelTiler(createNode:92)]::[TriangleCount] Total : 1902
[DEBUG][08:34:53][tile.Batched3DModelTiler(createNode:93)]::[Tile][ContentNode][OBJECT] : 1
[INFO][08:34:54][tile.Batched3DModelTiler(writeTileset:76)]::[Tile][Tileset] write 'tileset.json' file.

I have attached two sample files to help you with debugging.

test3_debug.zip

@znkim
Copy link
Contributor

znkim commented Feb 12, 2025

Hi, @sweco-sekrsv

Unfortunately, we do not currently do triangle reduction when generating generic b3dm.

We have seen many similar cases, and we are considering adding the feature to decimate(Triangle Reduction) on non-textured model like the data you provided.

Thank you.

@sweco-sekrsv
Copy link
Author

Ok, thanks! Since there were several files in the output data folder I expected them to be LOD's. A follow up question is then why there are multiple copies of the same mesh in the data-folder?

@znkim
Copy link
Contributor

znkim commented Feb 13, 2025

This is because of the default tiling conversion policy.
The default option is to generate LOD0 through LOD3 when tiling.

Currently, tiling a single file appears to be a copy of the same file.
but there will be differences when tiling multiple files.

You can try adding the --refineAdd or --maxLod 0 option to prevent non-textured files from being loaded twice.

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

No branches or pull requests

2 participants