DispGen: Difference between revisions
Brandished (talk | contribs) mNo edit summary |
m (Setting bug notice hidetested=1 param on page where the bug might not need tested in param specified) |
||
(18 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
[[File:DispGen UI.png|thumb|right|300px|User Interface.]] | |||
This program will create a [[Half-Life 2]] [[displacement]] map from a {{wiki|heightmap}} image. It can read common image formats along with 16-bit grayscale [[Wikipedia:Tagged Image File Format|TIFF]] and [[Wikipedia:Portable pixmap|PGM]] images. | This program will create a [[Half-Life 2]] [[displacement]] map from a {{wiki|heightmap}} image. It can read common image formats along with 16-bit grayscale [[Wikipedia:Tagged Image File Format|TIFF]] and [[Wikipedia:Portable pixmap|PGM]] images. | ||
It uses a {{wiki|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 {{wiki|bicubic interpolation}} scaling algorithm. This generates a better image if the size of terrain is significantly different from the size of the texture image. | ||
[[Wikipedia:Alpha compositing|Alpha maps]] can be generated using images, based on the height of the texture or based on the slope ( | [[Wikipedia:Alpha compositing|Alpha maps]] can be generated using images, based on the height of the texture or based on the slope (0° to 90°) | ||
{{dispgen|4.1}} includes an algorithm (jokingly described as '[[Wikipedia:Patent pending|pat. pending']]) for fixing texture stretching on the vertical parts of the terrain. | |||
==See | '''Note:''' This user found an issue using .vmf files generated by Dispgen. The map would not save user visgroups. When re-opened all user visgroups would be erased (though the content of the visgroups would not 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 Dispgen-generated .vmf file and paste them into a new .vmf file made from scratch. | ||
{{bug|hidetested=1| The tool might have issues on newer operating systems requiring the user to download [https://www.techpowerup.com/download/visual-c-redistributable-runtime-package-all-in-one/ Visual C++ Redistributable 2005/2008 (both 32/64-bit)]. If the error about missing dll "msvcp71.dll" still shows up, try to install VC++ .NET 2003 or earlier.}}<!-- AIO versions, such as one from Techpowerup are highly recommended as its will include every version of VC++.--> | |||
==Cannonfodder's other source engine tools== | |||
*{{studiocompiler|4.1}} | |||
*{{3dmaxexport|4.1}} | |||
*{{mdldecomp|4.1}} | |||
*{{winbspzip|4.1}} | |||
==See also== | |||
* [http://www.chaosincarnate.net/cannonfodder/cftools.php?program=dispgen DispGen homepage] | * [http://www.chaosincarnate.net/cannonfodder/cftools.php?program=dispgen DispGen homepage] | ||
* [[Terrain Generator]] | |||
* [[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. | ||
{{sdktools|0}} | |||
[[Category:Third Party Tools]] | [[Category:Third Party Tools]] | ||
[[Category:Displacements]] | [[Category:Displacements]] |
Latest revision as of 07:08, 20 May 2025
This program will create a Half-Life 2 displacement map from a heightmap 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° to 90°)
DispGen includes an algorithm (jokingly described as 'pat. pending') for fixing texture stretching on the vertical parts of the terrain.
Note: This user found an issue using .vmf files generated by Dispgen. The map would not save user visgroups. When re-opened all user visgroups would be erased (though the content of the visgroups would not 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 Dispgen-generated .vmf file and paste them into a new .vmf file made from scratch.

Cannonfodder's other source engine tools
See also
- DispGen homepage
- Terrain Generator
- Digital Elevation Models - tutorial on converting publicly available terrain heightmaps of the
United States into Source displacement maps.
|