Texure——如何导出 ASTC 压缩纹理格式

 

TexturePacker-6.0.0及以上版本,支持导出 ASTC 压缩纹理格式。

win10下命令行

 

TexturePacker.exe ^

--sheet D:\res\tps_test\proj\bg\output\outpu_by_command\goim_ASTC_4x4.astc ^            导出纹理文件

--data D:\res\tps_test\proj\bg\output\outpu_by_command\goim_ASTC_4x4.plist ^              导出数据文件

--format cocos2d ^                                                                                                                 数据文件格式 cocos2d对应plist

--opt ASTC_4x4 ^                                                                                                                  astc参数

--alpha-handling KeepTransparentPixels ^                                                                           透明像素处理

--trim-mode None ^                                                                                                               裁剪方式

--trim-sprite-names ^                                                                                                             精灵名字去掉原始后缀

--shape-padding 0 ^

--border-padding 0 ^

--padding 0 ^

D:\res\tps_test\proj\bg\output\outpu_by_command\goim.png                                               原始纹理文件或文件夹

1
<br><br><br>
1
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
rem downlad address
rem https://www.codeandweb.com/texturepacker/download
 
rem d:
rem cd D:\Program Files\CodeAndWeb\TexturePacker-4.8.0-x64\bin
 
rem version >= 6.0.0 support astc
 
d:
cd D:\Program Files\CodeAndWeb\TexturePacker-6.0.0\bin
 
TexturePacker.exe ^
--sheet D:\res\tps_test\proj\bg\output\outpu_by_command\goim_ASTC_4x4.astc ^
--data D:\res\tps_test\proj\bg\output\outpu_by_command\goim_ASTC_4x4.plist  ^
--format cocos2d ^
--opt ASTC_4x4 ^
--alpha-handling KeepTransparentPixels ^
--trim-mode None ^
--trim-sprite-names ^
--shape-padding 0 ^
--border-padding 0 ^
--padding 0  ^
D:\res\tps_test\proj\bg\output\outpu_by_command\goim.png
 
 
TexturePacker.exe ^
--sheet D:\res\tps_test\proj\bg\output\outpu_by_command\goim_ASTC_6x6.astc ^
--data D:\res\tps_test\proj\bg\output\outpu_by_command\goim_ASTC_6x6.plist  ^
--format cocos2d ^
--opt ASTC_6x6 ^
--alpha-handling KeepTransparentPixels ^
--trim-mode None ^
--trim-sprite-names ^
D:\res\tps_test\proj\bg\output\outpu_by_command\goim.png
 
 
 
TexturePacker.exe ^
--sheet D:\res\tps_test\proj\bg\output\outpu_by_command\goim_RGBA8888.png ^
--data D:\res\tps_test\proj\bg\output\outpu_by_command\goim_RGBA8888.plist  ^
--format cocos2d ^
--opt RGBA8888 ^
--alpha-handling KeepTransparentPixels ^
--trim-mode None ^
--trim-sprite-names ^
D:\res\tps_test\proj\bg\output\outpu_by_command\goim.png
 
 
 
TexturePacker.exe ^
--sheet D:\res\tps_test\proj\bg\output\outpu_by_command\goim_RGBA4444.png ^
--data D:\res\tps_test\proj\bg\output\outpu_by_command\goim_RGBA4444.plist  ^
--format cocos2d ^
--opt RGBA4444 ^
--alpha-handling KeepTransparentPixels ^
--trim-mode None ^
--trim-sprite-names ^
D:\res\tps_test\proj\bg\output\outpu_by_command\goim.png
 
 
pause

  

 

posted @   会飞的斧头  阅读(559)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律
点击右上角即可分享
微信分享提示