THM Editor


About

Utility for editing .thm files without the need to use the SDK

thm-editor centered

Features

  • Changing any available information stored in a .thm file
  • Ability to fix incorrectly displayed textures when transferring .thm files from CS/COP
  • Ability to create a file from scratch (without loading another .thm file)

Functionality

Buttons

Open thm

Opens a .thm file

Save

Save file

Save As

Save as

Import DDS

Imports .dds texture

Edit flags

CheckboxDescription
Generate Mip MapsEnables MIP-map generation
Has Alpha
Binary Alpha
Alpha Border
Color Border
Fade To Color
Fade To Alpha
Dither Color
Dither Each MIP Level
Diffuse Detail
Implicit Lighted
Detail Bump
Grey Scale (S.T.A.L.K.E.R. builds)

Texture type

FieldDescription
Image2D texture
Cube MapIs a method of environment mapping that uses the six faces of a cube as the map shape
Bump MapBump Map
Normal MapNormal Map
TerrainTerrain Map?

Texture format

FieldDescription
DXT1Compression without alpha channel support
ADXT1Compression with alpha channel support
DXT5Compression with alpha channel support
4444RGBA4444?
1555RGBA1555?
565Uncompressed RGB565 or RGB16?
RGBCompression without alpha channel support
RGBACompression with alpha channel support
NVHSNVidia Texture Format (GEForce 3)
NVHUNVidia Texture Format?
A88-bit alpha only DirectX Format
L88-bit luminance only DirectX Format
A8L816-bit using 8 bits each for alpha and luminance DirectX Format

Bump Mode

FieldDescription
Autogen (S.T.A.L.K.E.R. Builds)
NoneNone
UseUse Bump mapping method
Use ParallaxUse Parallax mapping method

MIP Filter

Different algorithms of MIP-map generation

FieldDescription
BoxThe simplest MIP-map generation algorithm. However, the box filter has a number of limitations that can be quite noticeable with certain textures. For example, if a texture contains very narrow features (e.g., lines), then aliasing artifacts may be very pronounced
CubicGeneration with weighted sum of eight pixels. The advantage of the cubic filter over the box is that it can have negative side lobes (weights) which help maintain sharpness while reducing the image. This can help reduce some of the blurring effect of filtering with mipmaps
Point
Triangle
Quadratic
Advanced
Catrom
Mitchell
Gaussian
Sinc
Bessel
Hanning
Hamming
Blackman
KaiserIncrease readability of textures by increasing sharpness and contrast

Material

Different shading algorithms

FieldDescription
OrenNayar BlinOren-Nayar-Blinn shader is a variant of the Blinn shader. This shader is good for matte surfaces such as fabric, terra cotta, and so on
Blin Phong
Phong Metal
Metal OrenNayar

Tools

ButtonDescription
Generate thms by .dds
Fix invalid chunks in thms
Validate thms with dds
Convert thms format (SOC/COP)

Chechboxes

SOC format

SoC format of .thm

Border Color

?

Fade Color

?

Fade Amout

?

Material Weight

Shading model weight

Values0 - OrenNayar - Blin
1 - Blin - Phong
2 - Phong - Metal
3 - Metal - OrenNayar

Detail Scale

Detail Map Scale

Texture Width

Texture Width

Texture Height

Texture Height

Fade Delay

?

Bump Height

Bump Map Height

Detail name

Path to Detail Map

Bump name

Path to Bump Map

Normal Map name

Path to Normal Map


Sources

Source Code