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

Handle glTFs with EXT_meshopt_compression #593

Merged
merged 6 commits into from
Jul 24, 2021
Merged

Handle glTFs with EXT_meshopt_compression #593

merged 6 commits into from
Jul 24, 2021

Conversation

lilleyse
Copy link
Contributor

glTFs with EXT_meshopt_compression are now handled correctly when going through gltf-pipeline. The main fix was to support buffers that don't have a uri.

This PR also fixes a bug where a malformed glb would be created when using draco compression with the uncompressed fallback with embedded resources. forceMergeBuffers forces glb's to merge all buffers into one. The same problem showed up for meshopt models with the fallback: true option.

There was also a minor issue where the name of the merged buffer was the name of the last buffer in gltf.buffers rather than the first. The first buffer usually has the main contents, especially when loaded from a glb.

@lilleyse lilleyse requested a review from IanLilleyT June 21, 2021 01:56
@lilleyse lilleyse force-pushed the meshopt-support branch 2 times, most recently from 2b698b7 to ccede74 Compare June 22, 2021 00:45
@IanLilleyT
Copy link
Contributor

We reviewed offline and added changes in e37f1ba and 212ef55

@IanLilleyT IanLilleyT merged commit 6c03453 into main Jul 24, 2021
@IanLilleyT IanLilleyT deleted the meshopt-support branch July 24, 2021 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants