cocos-engine icon indicating copy to clipboard operation
cocos-engine copied to clipboard

Support basis universal texture compression

Open Yuki001 opened this issue 2 years ago • 3 comments

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

Yuki001 avatar Sep 21 '23 02:09 Yuki001

This feels good.

smallmain avatar Jun 28 '24 06:06 smallmain

Do you use basis universal in WeChat games? @Yuki001

ymciota avatar Apr 08 '25 10:04 ymciota

Do you use basis universal in WeChat games? @Yuki001

Currently i use basis universal on native platform (android, IOS, etc) with some big textures. I've tested it on wechat game, it's a bit slower than ASTC. so I use ASTC6 and ASTC8 on wechat game.

Yuki001 avatar Apr 18 '25 02:04 Yuki001