找回密码
 点一下
查看: 2642|回复: 0

BLPlaletter 1.5 by PitzerMike

[复制链接]
发表于 2008-2-29 18:57:35 | 显示全部楼层 |阅读模式
  一个可以把BMP,TGA和JPP格式的图片转换为BLP格式的命令行工具(有兴趣你也可以自己给他做个GUI),和飞雪大人的BLPCONV类似的工具
   最后一个附件是某人为它做的GUI版本
   第2个附件是C++源代码

原文
BLPaletter converts BMP, TGA and JPG images to paletted BLP images.
These often compress better than usual JPG compressed BLPs.
For example it compresses a 256x256 texture to 33kb in a map of mine.
Note that paletted blps work better with MPQ archive compression than ordinary jpg blps, so that you can only accurately compare file size after importing them into a map.
Since version 1.3 it can also create JPG compressed BLPs.
Fixed Mipmapping issues in version 1.4.
Fixed an alpha channel issue in version 1.5b.

USAGE

BLPaletter <input.tga|input.bmp|input.jpg> [<output.blp>] [<number of colors / quality>] [-j | -p] [-mipN]
Replace the N of the -mip parameter with a number between 1 and 16.
This will limit the number of generated mipmaps to a max of N.

For icons and interface textures always use -mip1 because they do not use mipmapping . Or -mip2 if you support people with really old computers who have the texture quality setting at low.

For model textures simply leave out the -mip parameter.


EXAMPLES

Code:
  BLPaletter D:\icons\BTNSomeIcon.tga -mip1
    -> Will create D:\icons\BTNSomeIcon.blp with 256 colors and 1 mipmap

  BLPaletter D:\icons\BTNBlah.bmp 128
    -> Will create D:\icons\BTNBlah.blp with 128 colors

  BLPaletter D:\icons\a.tga D:\icons\b.blp 64
    -> Will create D:\icons\b.blp with 64 colors

  BLPaletter "C:\Program Files\Something\SomeTexture.tga" Target.blp
    -> Will create Target.blp with 256 colors in the current directory (watch out: you need " when a path contains a space)

  BLPaletter C:\x.bmp C:\y.blp 85 -j
    -> Will create C:\y.blp with JPG compression and a quality of 85%

  BLPaletter ..\Textures\MountainKing.bmp -p -mip8
    -> Will create ..\Textures\MountainKing.blp with 256 colors (paletted) and 8 mipmaps at max

BLPaletter15b.rar

167 KB, 下载次数: 42

BLPaletter15b_src.rar

88 KB, 下载次数: 38

BLPPaletterGUI.zip

461 KB, 下载次数: 55

您需要登录后才可以回帖 登录 | 点一下

本版积分规则

Archiver|移动端|小黑屋|地精研究院

GMT+8, 2024-11-22 01:33 , Processed in 0.118492 second(s), 22 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表