DispGen: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Linkification)
mNo edit summary
Line 1: Line 1:
This program will create a Half-Life 2 [[displacement]] map from a height map image. It can read common image formats along with 16-bit grayscale TIFF and PGM images.  
This program will create a Half-Life 2 [[displacement]] map from a height map image. It can read common image formats along with 16-bit grayscale [http://www.cartesianinc.com/Products/View/TIFF/ TIFF] and PGM images.  


It uses a bicubic interpolation scaling algorithm. This generates a better image if the size of terrain is significantly different from the size of the texture image.
It uses a bicubic interpolation scaling algorithm. This generates a better image if the size of terrain is significantly different from the size of the texture image.

Revision as of 08:44, 20 March 2006

This program will create a Half-Life 2 displacement map from a height map image. It can read common image formats along with 16-bit grayscale TIFF and PGM images.

It uses a bicubic interpolation scaling algorithm. This generates a better image if the size of terrain is significantly different from the size of the texture image.

Alpha maps can be generated using images, based on the height of the texture or based on the slope (0-90 degrees)

DispGen includes an algorithm (jokingly described as 'pat. pending') for fixing texture stretching on the vertical parts of the terrain.


See Also