xuzhusheng / gltf-to-3d-tiles

Convert glTF model to Glb, b3dm and 3D tiles format.
MIT License
123 stars 35 forks source link

Tiles from GLTF missing texture #13

Closed ManosAgelidis closed 1 year ago

ManosAgelidis commented 1 year ago

Original GLTF has a texture assigned and is pre-tiled as you can see in the picture Screenshot 2022-11-08 135501 I am trying to generate a tileset based on the GLTF, after executing the command

python main.py tileset path_to_gltf.gtlf

the tileset.json as well as the .b3dm files corresponding to the tiles are generated successfully. Upon loading the 3D tiles in a 3D viewer the texture is missing from most of the tiles. I also tried loading the tiles in a Cesium-based viewer and the textures are also missing. What would be the solution here? I saw that there are some recent commits addressing texture issues, maybe this problem is related? Let me know if this information is enough, thanks for looking into it.

Screenshot 2022-11-08 143437

xuzhusheng commented 1 year ago

do you mind provide your GLTF for testing?

xuzhusheng commented 1 year ago

fixed a bug intrudced in commit 147d194ce103654edb3d0dd45d9c1bd5bbc412ef . should fix this too.

ManosAgelidis commented 1 year ago

Hi, thanks for looking into it so quickly. I created a minimal example gltf that shows the problem. I will test on my side to verify the problem is gone.

ManosAgelidis commented 1 year ago

Hi, seems the issue is still there with the latest changes. image

I created a minimal gltf which is just a box that has been sliced into 4 sub-boxes that uses the same texture as the original gltf that I used. Since I cannot upload it on github I shared it from my google drive. Link to the model. Hope it helps, thanks for looking into it!

xuzhusheng commented 1 year ago

fixed in commit 02b4478a4b902524057beb4910a905ce4d73a400. screenshot

ManosAgelidis commented 1 year ago

Great, thanks a lot!