Height2Normal: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(This program does no longer work.)
Line 1: Line 1:
A copy of this program can be found in the bin folder of the sourcesdk.
A Source SDK tool program, situated in the <code>SteamApps\''username''\souresdk\bin\</code> folder, previously used to convert a heightmap texture into a [[Normal Maps|normal map]] texture. It stopped working years ago, generating no output file, but old versions of this program may still exist.


Proper execution of this program includes:
Proper execution of this program included:
* Creating a [[TGA]] with _height appended before the extension
* Creating a [[TGA]] with ''_height'' appended before the extension.
* Creating a TXT file with _normal appended before the extension containing the following:
* Creating a TXT file with ''_normal'' appended before the extension, containing the following:
  "bumpscale" "1.0"
  "bumpscale" "1.0"


Keep in mind:
Keep in mind:
* You can change the bumpscale if you do not like the output you are getting.
* You could change the bumpscale if you didn't like the output you were getting.
* The [[TGA]] and TXT file should have the same name without their appended text and extension.
* The [[TGA]] and TXT file should have the same name without their appended text and extension.


Line 16: Line 16:




The output created by running '''height2normal''' will be [[TGA]].
The output created by running '''height2normal''' will be a [[TGA|targa (.tga)]] file.


==See also==
==See also==

Revision as of 05:22, 27 August 2007

A Source SDK tool program, situated in the SteamApps\username\souresdk\bin\ folder, previously used to convert a heightmap texture into a normal map texture. It stopped working years ago, generating no output file, but old versions of this program may still exist.

Proper execution of this program included:

  • Creating a TGA with _height appended before the extension.
  • Creating a 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 TGA and TXT file should have the same name without their appended text and extension.


Height2normal should be executed with the TXT file name.

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


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

See also