Open hemincan opened 1 year ago
Thanks for the report @hemincan. I can confirm this is a bug after we overhauled glTF loading.
same problem
How to fix this bug? I am in a hurry. @ggetz
I want to fix this bug, could you give me some clues as I cannot locate it? Thank you very much! @ggetz
Hi @jinjun1994, this would likely need further debugging to determine the exact issue. I would begin looking in GltfLoader
which loads the glTF embedded in the tile, and creates the resources needed to render the glTF. Then ModelSceneGraph
prepares the resources for rendering.
@ggetz
The issue may be related to the size of the index buffer? Under the new glTF loader architecture, the glTF file is not displayed. The command is "drawElements: TRIANGLES, 269259, 5125 (UNSIGNED_INT), 0". However, when changed to "UNSIGNED_SHORT", although the object is deformed, it is displayed.
Hi @jinjun1994 ,Have you found a solution yet?Cesium version is 1.102
This issue is related to the index buffer.This could be the reason: GltfLoader Line 1253 : indices.count = accessor.count; this count is not equal to indexBufferLoader.buffer.numberOfIndices;
This issue is related to the index buffer.This could be the reason: GltfLoader Line 1253 : indices.count = accessor.count; this count is not equal to indexBufferLoader.buffer.numberOfIndices;
yes, here is my work around context.js count = defaultValue(count, indexBuffer.numberOfIndices); => count = indexBuffer.numberOfIndices;
I guess there are some errors in model loader or the process of parsing data. It results in numberOfIndices not equal to count
Sandcastle example:this is example
But it is displayed normally in 1.96 and below.