cocos / cocos-engine

Cocos simplifies game creation and distribution with Cocos Creator, a free, open-source, cross-platform game engine. Empowering millions of developers to create high-performance, engaging 2D/3D games and instant web entertainment.
https://www.cocos.com/en/creator
Other
8.27k stars 1.94k forks source link

Support basis universal texture compression #16296

Open Yuki001 opened 1 year ago

Yuki001 commented 1 year ago

Use Case

texture compression

Problem Description

Cocos creator support several texture compression formats,but those formats have big file size. For example : a 1024 * 1024 image use ASTC 4x4 compression,the file size is about 1MB.

Proposed Solution

Basis universal can compress file to smaller size (~100kb) while the quality is nearly the same. And it supports decoding into several formats for various platforms (ETC,PVRTC,ASTC,RGBA32). Godot has already support Basis universal. Could cocos creator support it?

I've modified custom cocos engine for basisu to replace ASTC 4X4 compression. But it's better if cocos engine support it offical.

How it works

No response

Alternatives Considered

None

Additional Information

No response

smallmain commented 4 months ago

This feels good.