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

GLTFLoader: Add an example for EXT_meshopt_compression #21111

Closed
donmccurdy opened this issue Jan 19, 2021 · 3 comments · Fixed by #21114
Closed

GLTFLoader: Add an example for EXT_meshopt_compression #21111

donmccurdy opened this issue Jan 19, 2021 · 3 comments · Fixed by #21114

Comments

@donmccurdy
Copy link
Collaborator

donmccurdy commented Jan 19, 2021

Since #20508 by @zeux, we've had support for using the EXT_meshopt_compression extension in GLTFLoader. We don't yet have any examples of how to use that, and I think it would be helpful to show (context thread on twitter).

@zeux
Copy link
Contributor

zeux commented Jan 19, 2021

I can contribute an example, I had a tweaked version of the original GLTF loader example when I was testing the PR.

@donmccurdy
Copy link
Collaborator Author

That'd be great, thank you! I think my suggestion would be to make a separate standalone example rather than rolling it into loader / gltf / extensions. That example is probably already doing too much.

Perhaps name it loader / gltf / compression for now, and we can extend it later to also include .ktx2 Basis compressed textures.

@donmccurdy donmccurdy changed the title GLTFLoader: Add an example for KHR_meshopt_compression GLTFLoader: Add an example for EXT_meshopt_compression Jan 20, 2021
@wallabyway
Copy link

Here's an example of MeshOpt working with the USDz exporter for Quicklook:
https://github.com/wallabyway/quicklook-example

The coffeeCart example looks good with it's metallic reflections, which work well with QuickLook's real-time IBL approximation.
I used glTFPack which merged and compressed the meshes, bringing down the draw calls to just 2. So the performance under quicklook is very smooth.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants