Note: new account registrations are currently disabled due to spambots. If you want an account, please leave a message on User talk:Dinoguy1000 with your desired username and an email address you can be contacted at.

Glacier TEX Editor

From XentaxWiki
Jump to: navigation, search

This program is Freeware/Open source. Last know version is 3.9 Beta 3.

Download from [http://forum.elberethzone.net/viewforum.php?f=8 ]

Description:

This tool can export\import textures from\into Glacier engine games .TEX files.
That means (at least):



TEX Texture TEX Mipmap Import/Export Description
RGBA No TGA Targa 32Bpp with alpha channel
RGBA Yes TGA Targa 32Bpp with alpha channel.
MipMap is generated automatically using Lanczos3 algorithm when importing.
DXT1 No DDS Microsoft DirectDraw Surface DXT1 compressed
(without mipmaps)
DXT1 Yes DDS Microsoft DirectDraw Surface DXT1 compressed
(with same number of mipmaps as in TEX file)
DXT3 No DDS Microsoft DirectDraw Surface DXT3 compressed
(without mipmaps)
DXT3 Yes DDS Microsoft DirectDraw Surface DXT3 compressed
(with same number of mipmaps as in TEX file)
PALN - TGA Targa 32Bpp with alpha channel with same number of unique colors as in TEX file.
I8 No TGA Targa 8Bpp Greyscale without alpha channel.
I8 Yes TGA Targa 8Bpp Greyscale without alpha channel.
MipMap is generated automatically using Lanczos3 algorithm when importing.
U8V8 - TGA 2x Targa 8Bpp Greyscale without alpha channel. Export only.

Does not support import of U8V8 from Blood Money.

It should supports both 'PC and Xbox version of the game.

To enable Xbox support (automatic textures unswizzle/swizzle):

  • click on "Options" button
  • check the "Xbox mode" option
  • click on "OK" button.

Note: Doing that while using PC version of the game will result in scrambled imported RGBA and PALN textures in game.

How to use it:

  • Open the ZIP files found in the Scenes subdirectory of Hitman: Contracts. (you must keep the paths from ZIP files)

Ex:

Scenes\MainMenu.zip
Scenes\C00-1\C00-1_MAIN.zip

The program will unzip the .TEX file and open it automatically. Export any texture you are willing to edit.

  • Modify the TGA\DDS texture.

PhotoShop is highly recommended (it supports perfectly TGA 32bpp with alpha and a DDS plugin is available from nVidia for free).
Get the PhotoShop DDS plugin from:
http://developer.nvidia.com/object/nv_texture_tools.html

You can also use the free tool The Gimp 2.0 which has TGA 32bpp with alpha support too and the nvDXT standalone tool allowing to convert DDS files to TGA (and back to DDS). http://mmmaybe.gimp.org/windows/

  • Using TEXEditor, import the DDS\TGA texture back into the TEX file:
* Select the texture to replace in the list
* The Import button will enable
* Click on import and select your TGA\DDS file



  • When you have finished editing the TEX file, click on Update ZIP!

DO NOT FORGET THIS STEP!!!!

  • Run the game to observe your changes!