Warcraft 3 documentation
vJASS & Zinc Documentation
For the latest documentation about how it works vJASS and Zinc language layers for Warcraft III, please follow these links:
Jasshelper documentation - Zinc documentation - WC3 Optimizer documentation

BLPaletter No New Posts WC3 Editing Tools

Started by
moyack

0 Members and 1 Guest are viewing this topic.

Rating

Average Score - 5 / 5

« Created: July 06, 2019, 05:03:32 PM by moyack »

BLPaletter
on: November 24, 2010, 04:32:11 PM
Version: 1.5c
Keywords: BLP, Paletter, compression
Operating System (OS):
  • Windows XP
  • Windows Vista
  • Windows 7
  • Windows 8
  • Windows 10
Tool Category: 2D Art (skinning)
Rating: 5
Warcraft III Tool resource
« Created: July 06, 2019, 05:07:58 PM by moyack »
« Last Edit: July 07, 2019, 07:23:26 AM by moyack »

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.

Get the latest version (check link above)
The C++ source code is also available here
Botanic made a GUI for it, you can get it here

An older GUI made by Acaykath is also available, but I think it doesn't support the latest features that I've added. It's available here

USAGE

Code: [Select]
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: [Select]
  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

CHANGES IN 1.5

Fixed a bug that corrupted the alpha channel on images smaller than 128 x 128

CHANGES IN 1.4

Now auto-generates mipmaps so it works properly with textures when looking from far away
Added -mipN parameter (replace N with the number of mipmaps you wanna have, eg. -mip1 for icons)
Fixed a visual problem related to wrong mipmap offsets
Cleaned up the source code

CHANGES IN 1.3.2

It can now read jpg files too.

CHANGES IN 1.3

Added option to use jpg compression (-j vs. -p switch, -p is assumed by default)
With the -j switch on, the number of color parameter controls the quality of the output blp (values between 1 and 99 please)

CHANGES IN 1.2

Removed the 'Press any button to continue' message.

CHANGES IN 1.1

Added optional parameter to specify the number of colors (16 - 256).
Added Floyd-Steinberg-Dithering for much better looking results.

Thanks to TheProphet for a few utility functions, BlackDick and Magos
for their blp format specifications, PipeDream, the IJG for their free
Jpeg Library, Litany for providing test files.
« Last Edit: July 07, 2019, 07:23:26 AM by moyack »



 

* Random Tools

Warcraft 3 Launcher

Views: 7164
Replies: 2
Posted by moyack
March 06, 2019, 08:05:53 PM

Gmax 1.2

Views: 16519
Replies: 6
Posted by WC3Mod
April 27, 2012, 07:49:05 AM

The Jass NewGen Pack (JNGP) 2.0

Views: 313642
Replies: 225
Posted by moyack
February 19, 2011, 10:16:14 PM

vJASS Syntax Highlighter for notepad++

Views: 5984
Replies: 2
Posted by moyack
April 05, 2011, 03:43:08 PM

wc3Borderizer

Views: 4479
Replies: 1
Posted by cohadar
November 23, 2010, 07:54:25 PM

Started by Deaod

Replies: 1
Views: 1716
WC3 Editing Tools
Vivir aprendiendo.co - A place for learning stuff, in Spanish   Chaos Realm - The world of Game modders and wc3 addicts   Diplo, a gaming community   Power of Corruption, an altered melee featuring Naga and Demon. Play it now!!!   WC3JASS.com - The JASS Vault + vJASS and Zinc   Jetcraft - A Starcraft II mod   WormTastic Clan (wTc)   Warcraft RESOURCES Reforged: Modelos, mapas, proyectos y mas...