-
Notifications
You must be signed in to change notification settings - Fork 47
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
GLTF Importer does NOT work for JointIndices and JointWeight #20
Comments
Here is the Pull Request! |
Here is the glTF Validator output of my glTF asset (NO ERROR! NO WARNING!): {
"uri": "/sparkle.gltf",
"mimeType": "model/gltf+json",
"validatorVersion": "2.0.0-dev.3.10",
"validatedAt": "2024-11-04T21:46:11.944Z",
"issues": {
"numErrors": 0,
"numWarnings": 0,
"numInfos": 0,
"numHints": 0,
"messages": [],
"truncated": false
},
"info": {
"version": "2.0",
"generator": "Khronos glTF Blender I/O v4.2.70",
"resources": [
{
"pointer": "/buffers/0",
"mimeType": "application/gltf-buffer",
"storage": "external",
"uri": "sparkle.bin",
"byteLength": 3393892
},
{
"pointer": "/images/0",
"mimeType": "image/png",
"storage": "external",
"uri": "clothing.png",
"image": {
"width": 2048,
"height": 1024,
"format": "rgb",
"primaries": "srgb",
"transfer": "srgb",
"bits": 8
}
},
{
"pointer": "/images/1",
"mimeType": "image/png",
"storage": "external",
"uri": "hair.png",
"image": {
"width": 1024,
"height": 1024,
"format": "rgb",
"primaries": "srgb",
"transfer": "srgb",
"bits": 8
}
},
{
"pointer": "/images/2",
"mimeType": "image/png",
"storage": "external",
"uri": "face.png",
"image": {
"width": 512,
"height": 512,
"format": "rgb",
"primaries": "srgb",
"transfer": "srgb",
"bits": 8
}
},
{
"pointer": "/images/3",
"mimeType": "image/png",
"storage": "external",
"uri": "eye.png",
"image": {
"width": 256,
"height": 256,
"format": "rgba",
"primaries": "srgb",
"transfer": "srgb",
"bits": 8
}
},
{
"pointer": "/images/4",
"mimeType": "image/png",
"storage": "external",
"uri": "expression.png",
"image": {
"width": 1024,
"height": 1024,
"format": "rgba",
"primaries": "srgb",
"transfer": "srgb",
"bits": 8
}
}
],
"animationCount": 1,
"materialCount": 5,
"hasMorphTargets": false,
"hasSkins": true,
"hasTextures": true,
"hasDefaultScene": true,
"drawCallCount": 5,
"totalVertexCount": 23551,
"totalTriangleCount": 30122,
"maxUVs": 1,
"maxInfluences": 4,
"maxAttributes": 5
}
} But donut does not work properly on my asset due to the incorrect jointStirde and weightStride. |
Pull request merged, closing the issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I load one GLTF asset, the jointStride and weightStride can be zero!
We should change the stride manually, just like how we calcualte the indexStride when importing the IndexBuffer.
The text was updated successfully, but these errors were encountered: