-
-
Notifications
You must be signed in to change notification settings - Fork 35.6k
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
WEBGPURender: GLTF mesh is destroyed #30599
Comments
I wasn't able to download the GLB from your provided link (timeout). Do you mind sharing the source + asset as a GitHub repo? |
I don't usually use github, so I don't know how to use it, but can I check the files with this? |
I can confirm the bug. The WebGL backend is fine though so only WebGPU is affected. |
Maybe this issue is related to your skeleton which has 562 bones. Putting this number of @niuin Can you try to lower the number of bones until the skinned mesh works? It would be interesting to know the exact threshold. |
Thanks for checking. You are correct, there are 562 bones in this armature. I checked the thresholds and it seems that the results are different depending on the bones to be removed. I got two results with 485 bones as one borderline. Bone A (no mesh collapse, one parent removed) Bone B (with mesh failure, one parent added) In this image, the results changed depending on the presence or absence of the parent in the red circle. I have uploaded the two GLBs and the .blend additionally. |
After some further checking, it seemed that in some cases, no matter how many bones were removed, there was no improvement. This is a setting on the Blender side, but for some reason, when I enabled the Add LeafBones option, a perfect mesh was displayed. Live Sample Maybe this has something to do with it? |
Description
Loading a GLTF model using WebGPURenderer may result in mesh corruption.
The test GLTF was created in Blender.
Only eyes, eyelashes and eyebrows are animated in this GLTF.
( Minimal drawing to find the cause )
https://niuind.com/t/output.glb
https://niuind.com/t/20250224bugreport.blend
GLTF Viewer and other software shows it correctly.
https://gltf-viewer.donmccurdy.com/
Reproduction steps
(For some reason, it seems to be displayed correctly on cell phone browsers.)
Code
Live example
WebGPURenderer
https://niuind.com/t/gltftest_webgpu.html
WebGLRenderer
https://niuind.com/t/gltftest_webgl.html
Screenshots
Version
r173
Device
Desktop
Browser
Chrome
OS
Windows
The text was updated successfully, but these errors were encountered: