Height2Normal: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Cleaned up. Also, I have no clue why this tool has it's own icon; it's not like command line apps need icons)
mNo edit summary
Line 1: Line 1:
{{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.
{{height2normal|4}} is a [[command-line]] tool situated in {{code|clear|<gameexedir>\bin\height2normal.exe}}, used to convert a heightmap texture into a [[Normal Maps|normal map]] texture.


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


Keep in mind:
Keep in mind:
* You could change the {{code|bumpscale}} if you didn't like the output you were getting.
* You could change the {{code|clear|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 16: Line 16:
'''Height2normal''' should be executed with the text file name.
'''Height2normal''' should be executed with the text file name.


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




The output created by running {{code|height2normal}} will be a [[TGA|targa (.tga)]] image.
The output created by running {{code|clear|height2normal}} will be a [[TGA|targa (.tga)]] image.


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

Revision as of 05:17, 22 January 2023

Height2Normal Height2Normal is a command-line tool situated in clear, used to convert a heightmap texture into a normal map texture.


Proper execution of this program entails:

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

Keep in mind:

  • You could change the clear 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: clear


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

See also