actnwit / RhodoniteTS

Rhodonite Web3D(WebGL2&WebGPU) Library in TypeScript
MIT License
123 stars 5 forks source link

Failed to load a model (Invalied glTF VertexAttributeEnum at Object.toVertexAttributeSemanticJoinedStringAsGltfStyle) #1177

Open KaYaF opened 1 year ago

KaYaF commented 1 year ago

This is a bug report.

https://sketchfab.com/3d-models/gachapon-fbd5596018124802863a7c7bb9408c2a I tried to load this gltf model (not glb), but I got failed and the following error.

image

emadurandal commented 1 year ago

@KaYaF Thanks for the bug report. I'll fix it.

emadurandal commented 1 year ago

@KaYaF

The cause of the error is that this model uses vertex attributes Rhodonite doesn't support, I guess. image

But Babylon.js can show it properly, So I should fix Rhodonite to support this model.

emadurandal commented 1 year ago

I was able to view the glTF model after making a modification to remove attributes above TEXCOORD_2. The yellow sticker on the front is probably the texture specified by TEXCOORD_2 or higher. Since Babylon displays it and others well, it seems to be compatible with many TEXCOORDs.

image