COLLADA2GLTF
COLLADA2GLTF copied to clipboard
Textures are not fully matched
Hello, I'm trying to convert this collada model into GLB.
I used the command below to convert it (in Ubuntu):
COLLADA2GLTF-bin -i 4833_9.dae -o 4833_9.glb -b
They were converted without any error, but when I load the output GLB into Cesium.js (version 1.53),
It seems that some area of the model are not matched to the textures and shows in black.
In order to make sure the original collada file is valid, I've also load the model in Google Earth, and it looks normal.
I'm not sure which part in the whole converting process goes wrong.
Thanks in advance!
Re-hosting the relevant model here so that it is directly available: collada-model-20190116T161419Z-001.zip
This may be an issue with your COLLADA model.
Some of your textures are not sized to be powers of two. This isn't critical, but I would consider resizing those textures.
It looks like the output glTF has some invalid normal vectors which would explain the inconsistent lighting in the renders I have included below. I will dig into this more when I have time to make sure that it isn't a conversion issue, but it is possible that something is incorrect in the normal data from the source COLLADA.
Validator
Error | Message | Pointer |
---|---|---|
ACCESSOR_NON_UNIT | 4 accessor elements not of unit length: 0. [AGGREGATED] | /accessors/1 |
ACCESSOR_NON_UNIT | 32 accessor elements not of unit length: 0. [AGGREGATED] | /accessors/5 |
ACCESSOR_NON_UNIT | 31 accessor elements not of unit length: 0. [AGGREGATED] | /accessors/9 |
Info | Message | Pointer |
---|---|---|
IMAGE_NPOT_DIMENSIONS | Image has non-power-of-two dimensions: 85x194. | /images/0 |
IMAGE_NPOT_DIMENSIONS | Image has non-power-of-two dimensions: 106x64. | /images/1 |
IMAGE_NPOT_DIMENSIONS | Image has non-power-of-two dimensions: 132x64. | /images/2 |
ACCESSOR_INDEX_TRIANGLE_DEGENERATE | Indices accessor contains 1 degenerate triangles. | /accessors/0 |
Babylon
Cesium
Three
Thanks for your advice, I will check the normal vector data in my collada files.