Height2Normal: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Added navbox)
mNo edit summary
Line 1: Line 1:
A [[command-line]] tool situated in <code>SteamApps\''username''\souresdk\bin\</code>, previously used to convert a heightmap texture into a [[Normal Maps|normal map]] texture. It stopped working at least since 11 August 2006, generating no output file, but old versions of this program may still exist.
A [[command-line]] tool situated in <code>"common\<gamename>\<gamefolder>\bin\height2normal.exe"</code>, previously used to convert a heightmap texture into a [[Normal Maps|normal map]] texture. It stopped working at least since 11 August 2006, generating no output file, but old versions of this program may still exist.


Proper execution of this program included:
Proper execution of this program included:

Revision as of 15:08, 3 November 2013

A command-line tool situated in "common\<gamename>\<gamefolder>\bin\height2normal.exe", previously used to convert a heightmap texture into a normal map texture. It stopped working at least since 11 August 2006, generating no output file, but old versions of this program may still exist.

Proper execution of this program included:

  • Creating a targa (.tga) image with _height appended before the extension.
  • Creating a text (.txt) file with _normal appended before the extension, containing the following:
"bumpscale" "1.0"

Keep in mind:

  • You could change the bumpscale if you didn't like the output you were getting.
  • The targa (.tga) image and text (.txt) file should have the same name without their appended text and extension.


Height2normal should be executed with the text file name.

ex: height2normal "C:\a\b\c\tgafile_normal.txt"


The output created by running height2normal will be a targa (.tga) image.

See also