DispGen: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
Line 11: Line 11:
* [http://www.chaosincarnate.net/cannonfodder/cftools.php?program=dispgen DispGen homepage]
* [http://www.chaosincarnate.net/cannonfodder/cftools.php?program=dispgen DispGen homepage]
* [[Digital Elevation Models]] - tutorial on converting publicly available terrain heightmaps of the {{wiki|United States}} into [[Source]] displacement maps.
* [[Digital Elevation Models]] - tutorial on converting publicly available terrain heightmaps of the {{wiki|United States}} into [[Source]] displacement maps.
NOTE: This user found an issue using a .vmf generated by Dispgen. The map would not save user visgroups (when re-opened all user visgroups would be erased; any content inside user visgroups that was saved while the visgroup was unchecked was automatically placed in an "_orphaned hidden" user visgroup by Hammer. The solution was to copy the displacement brushes out of the .vmf file and paste them into a new .vmf file made from scratch.


[[Category:Third Party Tools]]
[[Category:Third Party Tools]]
[[Category:Displacements]]
[[Category:Displacements]]

Revision as of 11:17, 4 May 2011

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

It uses a Wikipedia icon 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° to 90°)

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

See Also

NOTE: This user found an issue using a .vmf generated by Dispgen. The map would not save user visgroups (when re-opened all user visgroups would be erased; any content inside user visgroups that was saved while the visgroup was unchecked was automatically placed in an "_orphaned hidden" user visgroup by Hammer. The solution was to copy the displacement brushes out of the .vmf file and paste them into a new .vmf file made from scratch.