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

Support KHR_texture_basisu extension when loading glTF scenes #5873

Closed
AllenDang opened this issue Nov 30, 2022 · 3 comments · Fixed by godotengine/godot#76572
Closed

Support KHR_texture_basisu extension when loading glTF scenes #5873

AllenDang opened this issue Nov 30, 2022 · 3 comments · Fixed by godotengine/godot#76572

Comments

@AllenDang
Copy link

Describe the project you are working on

A metaverse which allows users to upload their own model, trade them, place them and construct world together, which means there will be hundreds and thousands model will be placed in one scene, so the file size of each model becomes crucial.

Describe the problem or limitation you are having in your project

Currently godot cannot load glb file which is compressed with KHR_texture_basisu texture, which will increase model download/load time, and also will occupy much more storage space.

Describe the feature / enhancement and how it helps to overcome the problem or limitation

The KHR_texture_basisu extension of GLTF 2.0 could compress all the textures to KTX2, which is GPU compatible with very small size.
Invoke gltfpack -tc -i input.glb -o output.glb will compress the model from 180MB to 28.5MB with nearly no notable difference which is a huge improvement.

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

Compile GLTF model with KHR_texture_basisu enabled and support KTX 2.0 texture format.

If this enhancement will not be used often, can it be worked around with a few lines of script?

No, cannot worked around with script.

Is there a reason why this should be core and not an add-on in the asset library?

GLTF support is i core itself.

@Calinou
Copy link
Member

Calinou commented Nov 30, 2022

Related to #4271.

Godot 4.0.beta features Basis Universal encoding support, but it's only available in the editor. Basis Universal decoding support should be usable from an exported project though.

@Calinou Calinou changed the title Support KHR_texture_basisu extension of GLTF 2.0 Support KHR_texture_basisu extension when loading glTF scenes Nov 30, 2022
@fire
Copy link
Member

fire commented Dec 10, 2022

I wanted this feature too, but looking forward to this.

@fire
Copy link
Member

fire commented May 30, 2023

godotengine/godot#76572 is ready for review

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.

4 participants