-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
GltfExporter - GLB Files Compliance with glTF 2.0 Specifications #7144
Comments
related to #5001 |
I've fixed the critical buffer view target overrides issue here: |
I've also submitted a PR that optionally strips unused vertex attributes but it defaults to false (since we can't make assumptions about what you plan to do with vertex attributes at runtime - say with a custom shader): |
Thank you, @willeastcott, for both. We really appreciate your help. |
@AlbertoMalavasi I just submitted a further PR to correctly export skinning data as well so those warnings should disappear with the next minor release of the engine too. |
Description
GLB files exported seems not to comply with glTF 2.0 specifications, leading to potential rendering issues. The validator identifies multiple errors related to inconsistent bufferView target assignments and missing skin definitions for skinned meshes. These issues result in an invalid file that may not render correctly or work as intended in standard glTF viewers.
Export Tool: PlayCanvas GltfExporter
File/Example: Link
Validator Tool: KhronosGroup glTF Validator (Version 2.0.0-dev.3.9)
Issue Summary:
Critical Errors: Buffer view target overrides (e.g., IndexBuffer overwritten as Image or VertexBuffer overwritten as IndexBuffer).
Warnings: Missing skin definitions for nodes with skinned meshes.
Info: Unused attributes (TEXCOORD_1) and empty nodes.
Impact: The GLB file seems not to comply with glTF 2.0 specifications, leading to potential rendering issues.
ValidationReport.pdf
The text was updated successfully, but these errors were encountered: