CesiumGS / cesium

An open-source JavaScript library for world-class 3D globes and maps :earth_americas:
https://cesium.com/cesiumjs/
Apache License 2.0
12.79k stars 3.46k forks source link

gltf model load uncompleted in latest version #10999

Open moxuanzhu opened 1 year ago

moxuanzhu commented 1 year ago

I have a gltf load uncompleted in latest verison, thr url cesium demo, but in blender or gltf viewer can show completely, this is my file eve.zip

ggetz commented 1 year ago

@lilleyse or @ptrgags would you please take a look at this model and see what about it leads it to partially load?

lilleyse commented 1 year ago

@ptrgags I can take a first pass here

ptrgags commented 1 year ago

@lilleyse ah okay, thanks!

I did pass the model through the validator, there were a number of warnings including one about the skinned mesh

image

moxuanzhu commented 1 year ago

@ptrgags thanks, but why in other webgl engine,the gltf can show correctly, in gltf viewer, it show exmple

moxuanzhu commented 1 year ago

@ggetz Do you know the reason for this issue? thanks!

javagl commented 9 months ago

Some triaging, with some wild guesses:

Manually fixing the glTF is possible. The following is the glTF file (and only that), with the skinned node being a root node...

eveFixed.zip

This can be displayed in CesiumJS...

Cesium glTF issue 10999

... but of course, this is only a workaround, and might not help in the long term: Iff the Blender exporter exports a valid model, then CesiumJS should be able to render it, so the actual reason for the avatar not being displayed still has to be investigated.