首页 > 其他分享 >Texure——如何导出 ASTC 压缩纹理格式

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

时间:2023-02-14 15:55:59浏览次数:35  
标签:Texure -- res ASTC 纹理 command proj test outpu

 

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                                               原始纹理文件或文件夹






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

  

 

标签:Texure,--,res,ASTC,纹理,command,proj,test,outpu
From: https://www.cnblogs.com/xingchong/p/17119854.html

相关文章

  • x86 常见调用约定(cdecl,fastcall,stdcall) & x86和ARM调用约定的栈帧分析 & ARM ATPC
    PS:要转载请注明出处,本人版权所有。PS:这个只是基于《我自己》的理解,如果和你的原则及想法相冲突,请谅解,勿喷。前置说明  本文作为本人csdnblog的主站的备份。(BlogID......
  • 纹理贴图
    什么是纹理?​ wikipedia上做了如下解释"Thespatialarrangementofcolororintensitiesinanimage.Thetexturemeanssmoothness,roughness,orbumpinessofthe......
  • three.js教程5-几何体顶点UV坐标、纹理贴图
    1、纹理贴图纹理贴图,是给MeshLambertMaterial等材质一些纹理图片,以达到更好的视觉效果。使用方法:通过纹理贴图加载器TextureLoader的load()方法加载一张图片可以返回一个......
  • FastCgi与PHP-fpm之间是个什么样的关系
    首先,CGI是干嘛的?CGI是为了保证webserver传递过来的数据是标准格式的,方便CGI程序的编写者。webserver(比如说nginx)只是内容的分发者。比如,如果请求/index.html,那么webserve......
  • 初级入门 --- 纹理贴图:为形体穿上外衣
    之前章节我们学习了绘制单一和渐变颜色的三角形,但是在实际的建模中(游戏居多),模型表面往往都是丰富生动的图片。这就需要有一种机制,能够让我们把图片素材渲染到模型的一个或......
  • vue学习之-----移动端插件FastClick
    1、为什么要使用fastclick(1)移动端的浏览器,默认会在用户点击屏幕300ms延迟之后,才会触发点击事件【为了检查用户是否在做双击】,为了能立即响应用户的点击事件,所以有了fastcl......
  • UE5-Brushify 虚拟纹理的使用
    打开项目后。首先设置项目 虚拟纹理(virtual)为打开状态,然后需要重启引擎......
  • Unity URP Shader之如何获取屏幕纹理
    UnityURP获取屏幕纹理方法不同于传统管线,GrabPass已经失效,而是已经提供了这张纹理,如下图: 这张纹理是在渲染完所有Opaque物体之后提供了,所以shader中要获取这张纹......
  • POI 中 getPhysicalNumberOfCells 与 getLastCellNum 有什么区别
    POI是Apache的开源Java库,它用于读写MicrosoftOffice文件格式。它包含一个类叫做Sheet,用于表示Excel工作表中的数据。getPhysicalNumberOfCells方法返回工作表中......
  • Unity 模型合并时纹理有缝隙的问题
    解决方式一:加载模型时,将纹理贴图的WrapMode设置为Clamp,FilterMode设置为Point解决方案二:模型合并时将UV往里缩几个像素,产生缝隙的原因是,纹理贴图做了线性插值这是Filter......