[置顶] TextureUnpacker 分割 Texturepacker 产生的图片 支持windows 和 mac

1.TextureUnpacker介绍


[置顶] TextureUnpacker 分割 Texturepacker 产生的图片 支持windows 和 mac_第1张图片


2个主要功能:

1.分割TexturePacker生成的图片。

2.复制单个png图片名字。

3. 把大的png图分割成小的png图

[置顶] TextureUnpacker 分割 Texturepacker 产生的图片 支持windows 和 mac_第2张图片


我一般用TexturePacker打包生成sprite sheet图片。但是有时候得到别人已经拼成一张图时,我又想分割成小图,或者我只是想得到其中的几张小图。这个时候就可以用TextureUnpacker拉!这个是我用Qt写的,因为有跨平台的需求。这样就同时支持Windows和Mac了。因为时间比较紧,暂时只支持Cocos2d-x使用的png和plist文件。可以关注此文章,关注TextureUnpacker后续更新。


2014  11 27 更新增加一个不错的功能,可以把普通的大的png图分割成小图,不需要plist文件。类似下面的这张图,可以分解成一张张小的鱼图片,只需要输入横向和纵向图片数量即可。或者输入小图的宽度和高度。

[置顶] TextureUnpacker 分割 Texturepacker 产生的图片 支持windows 和 mac_第3张图片

2.TextureUnpacker购买


http://item.taobao.com/item.htm?id=41762349907


3.TextureUnpacker 支持


2014-01-25  更新,修改了几个bug 更新到 1.0.1

2014-05-08 更新,修改图片名字带”/”无法保存的bug,mac下未发布…

2014-08-07更新,修改了一个重要bug,就是TexturePacker下勾选Trim的,话,解析出来的图片不是原尺寸,现在导出的是原尺寸,就是没有Trim过的图片。还有增加了显示宽度,高度和总图片数量信息。

2014-11-27 更新 ,可以把普通的大的png图分割成小的png图。

2015-5-13 更新,增加支持下面这种XML格式:

<?xml version="1.0" encoding="UTF-8"?>
<TextureAtlas imagePath="groundTextures.png">
    <SubTexture name="bradGhost" x="194" y="1622" width="56" height="116" frameX="0" frameY="0" frameWidth="53" frameHeight="113"/>
    <SubTexture name="bradGhostCrack" x="602" y="4" width="12" height="48" frameX="0" frameY="0" frameWidth="10" frameHeight="45"/>
    <SubTexture name="cliffs" x="194" y="1468" width="420" height="152" frameX="0" frameY="0" frameWidth="417" frameHeight="152"/>
</TextureAtlas>

2015-12-6 更新,支持白鹭引擎 TextureMerger 生成的png分割。Json格式:

{"file":"book.png","frames":{
"v1":{"x":1,"y":91,"w":68,"h":87,"offX":0,"offY":0,"sourceW":68,"sourceH":87},
"v2":{"x":1,"y":1,"w":68,"h":88,"offX":0,"offY":0,"sourceW":68,"sourceH":88},
"v3":{"x":209,"y":1,"w":66,"h":87,"offX":0,"offY":0,"sourceW":66,"sourceH":87},
"v4":{"x":71,"y":1,"w":67,"h":88,"offX":0,"offY":0,"sourceW":67,"sourceH":88},
"v5":{"x":71,"y":91,"w":67,"h":88,"offX":0,"offY":0,"sourceW":67,"sourceH":88},
"v6":{"x":140,"y":1,"w":67,"h":87,"offX":0,"offY":0,"sourceW":67,"sourceH":87},
"v7":{"x":140,"y":90,"w":67,"h":87,"offX":0,"offY":0,"sourceW":67,"sourceH":87}}}


欢迎大家提软件修改建议和软件Bug


你可能感兴趣的:(qt,cocos2d-x)