cesium icon indicating copy to clipboard operation
cesium copied to clipboard

An error occurs in ModelOutlineLoader.js, about triangleIndices in gltf of b3dm

Open Fivedogs opened this issue 2 years ago • 4 comments

image An error just occured here: image This is why it come in to the error point,when the count of triangleIndices and the max value of triangleIndices are both lower than 65534 (MAX_GLTF_UINT16_INDEX) image image I just want to know what is the function(matchAndStoreCoordinates) doing?And why tranverse loadResources.indexBuffersToCreate._array ,when transform the original triangleIndices to Uint32Array from Uint16Array? image As far as i am concerned, this array was just erased by gltf loading code before,maybe it is a mistake?Because i tried to delete this part, and it is running well.

Fivedogs avatar Apr 08 '22 07:04 Fivedogs

@ptrgags or @lilleyse Any insight here?

ggetz avatar Apr 08 '22 13:04 ggetz

This code is my fault, so let me know if you need me to take a look. @Fivedogs it might be helpful if you could provide us with the model you're using, since the problem is probably triggered by something semi-unusual about the particular model.

kring avatar Apr 08 '22 13:04 kring

Thanks for your reply,this is the model which triggered the problem. If you solve this problem or find the semi-unusual thing in this model,please tell me. Have a nice day! 3dtileAndGltf.zip

Fivedogs avatar Apr 11 '22 01:04 Fivedogs

Hi @Fivedogs,

I downloaded your data and tried the tileset with enableModelExperimental: true, and it seems to load now. Can you verify that it works for you?

j9liu avatar Jul 22 '22 14:07 j9liu

@Fivedogs I'm closing this issue, since I believe it has been solved with the latest Model changes. Feel free to reopen if you're still experiencing issues.

j9liu avatar Aug 19 '22 14:08 j9liu