Height2Normal: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (Setting bug notice hidetested=1 param on page where the bug might not need tested in param specified)
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
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.
{{height2normal|4}} is a [[command-line]] tool situated in {{code|<gameexedir>\bin\height2normal.exe}}, used to convert a heightmap texture into a [[Normal Maps|normal map]] texture.


Proper execution of this program included:
<br>
* Creating a [[TGA|targa (.tga)]] image with ''_height'' appended before the extension.
Proper execution of this program entails:
* Creating a [[txt|text (.txt)]] file with ''_normal'' appended before the extension, containing the following:
* Creating a [[TGA|targa (.tga)]] image with {{code|_height}} appended before the extension.
* Creating a [[txt|text (.txt)]] file with {{code|_normal}} appended before the extension, containing the following:
<pre>
  "bumpscale" "1.0"
  "bumpscale" "1.0"
</pre>


Keep in mind:
Keep in mind:
* You could change the bumpscale if you didn't like the output you were getting.
* You could change the {{code|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.
* The targa (.tga) image and text (.txt) file should have the same name without their appended text and extension.


Line 13: Line 16:
'''Height2normal''' should be executed with the text file name.
'''Height2normal''' should be executed with the text file name.


ex: height2normal "C:\a\b\c\tgafile_normal.txt"
ex: {{code|height2normal "C:\a\b\c\tgafile_normal.txt"}}




The output created by running '''height2normal''' will be a [[TGA|targa (.tga)]] image.
The output created by running {{code|height2normal}} will be a [[TGA|targa (.tga)]] image.
{{bug|hidetested=1|Nonfunctional in {{tf2branch}}.}}


==See also==
==See also==
* [[Material Creation]]
* [[Material Creation]]
* [[Height2ssbump]], which can also make regular normal maps. The "bumpscale" used will be different, however.


{{SDKTools}}
{{SDKTools}}


[[Category:Material System]]
[[Category:Material System]]

Latest revision as of 07:08, 20 May 2025

Height2Normal Height2Normal is a command-line tool situated in <gameexedir>\bin\height2normal.exe, used to convert a heightmap texture into a normal map texture.


Proper execution of this program entails:

  • 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.

Icon-Bug.pngBug:Nonfunctional in Team Fortress 2 branch.

See also