Skip to content
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

Open
AlbertoMalavasi opened this issue Nov 27, 2024 · 4 comments
Open

Comments

@AlbertoMalavasi
Copy link

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

@mvaligursky
Copy link
Contributor

related to #5001

@willeastcott
Copy link
Contributor

I've fixed the critical buffer view target overrides issue here:

#7152

image

@willeastcott
Copy link
Contributor

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):

#7153

@AlbertoMalavasi
Copy link
Author

Thank you, @willeastcott, for both. We really appreciate your help.

@willeastcott willeastcott self-assigned this Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants