-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bear glTF 2.0 model is not displayed in Cesium.js v1.40 or later #6416
Comments
I opened a fix in #6422 |
Although it may be another problem, in Cesium.js v1.42 or later, it seems that animation-enabled models are not animated. BoxAnimated, CesiumMan, Monster, etc.. |
@cx20 There was a change there, add |
@emackey Thank you for telling me that the options have changed. I modified the sample and confirmed that the above model was animated. |
I noticed that the following glTF model can not be displayed. I will report this as a separate Issue. https://cdn.rawgit.com/mrdoob/rome-gltf/784089b4/files/models/life_soup/quadruped_fox.gltf |
This auto-closed because I merged the animation fix. I think I'm still seeing an issue where the bear renders inside-out when viewed from the back. Not sure what that's about... |
Well since @mramato reopened this, I decided to bisect it. This was a slightly more involved bisect than usual since I had to retroactively apply the ConstantSpline patch to each bisection point along the history since 1.44 in order to see this new rendering error, that only presents itself when the bear's animations are enabled. Anyway, Sure enough, this commit was introduced with Log Depth, #5851. That makes sense since 1.44 (plus the ConstantSpline patch applied retroactively) did not have this problem. This is a "new since 1.44" bug. |
Sadly no. I just merged master into that branch, but the artifacts look the same. |
I've run through a bunch of other models, and haven't found any other than the bear that display this particular problem. Also, the problem only appears when animations are enabled. So... some bad interaction between something animated and the diffs in 417c3f9, it would seem. |
It might be #6447. We never figured out why log depth and skinned meshes don't play well together. The current workaround is an improvement but sometimes reveals artifacts like this. |
Yes, that's the issue. If you remove the workaround, this model works fine. I'm looking into it. |
@emackey Did we check to see if this model has the same normalized bone weights problem as Cesium Man? It looks unlikely that we will get to this for the 1.45 release today and just want to make sure the issue is model specific or at least not the sign of a larger problem. |
No, the Bear model has the opposite problem, it is being damaged by a workaround that's in place for the sake of the broken Cesium Man model. Let's not hold the release for this. |
I tried to display the bear glTF model that was in sketchfab with the latest version of Cesium.js.
https://sketchfab.com/models/f2f13a8630004b1c82730d8b9ffa0e1f
However, in Cesium.js v1.40 and later, an error is displayed and it seems that it is not displayed correctly.
Cesium.js v1.39 + Bear glTF model result:
Cesium.js v1.44 + Bear glTF model result:
The text was updated successfully, but these errors were encountered: