Difference between revisions of "HL2Tex"

From Valve Developer Community
Jump to: navigation, search
(cleanup.. if you don't mind :))
m (Fixed download links)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
The Half-Life: 2 - Texture Tool, or '''HL2Tex''' is a tool created by [[User:Daedalus|Daedalus]] to assist people in creating graphics for the Source engine.
+
The Half-Life: 2 - Texture Tool, or '''HL2Tex''', is a tool created by [[User:Daedalus|Daedalus]] to assist people in creating graphics for the Source engine. It simplifies the transformation of [[TGA|TARGA]] images to [[VTF]] files, creates the [[Txt]] configuration file for [[Vtex]], and creates the [[VMT]] file that Hammer uses.
  
It simplifies the transformation of [[TGA|TARGA]] images to [[VTF]] files, creates the [[Txt]] configuration file for [[Vtex]], and creates the [[VMT]] file that Hammer uses.
+
HL2Tex has a number of options available through its dialogs.
 
 
It has a number of options available in the dialogs.
 
 
 
==Usage==
 
  
 +
== Usage ==
 
* Start the application
 
* Start the application
 
* '''First time users:''' Setup your vtex path!
 
* '''First time users:''' Setup your vtex path!
Line 18: Line 15:
 
* Click '''Run VTEX'''. This also creates the .txt setting file (if desired) and the .vmt file (if desired)
 
* Click '''Run VTEX'''. This also creates the .txt setting file (if desired) and the .vmt file (if desired)
  
==Download==
+
== Download ==
 
 
 
There are two versions available.
 
There are two versions available.
  
===Visual Basic .Net Version===
+
=== Visual Basic .NET version ===
 
+
This is the '''recommended''' version to download. It's bigger, however it's written in .NET which a lot of people have these days, and is easier to distribute.
This is the '''recommended''' version to download. It's bigger, however it's written in .Net which a lot of people have these days, and is easier to distribute.
 
  
 
The first download contains an installer to automatically install all required files.
 
The first download contains an installer to automatically install all required files.
Line 30: Line 25:
 
The second download is just the files themselves.
 
The second download is just the files themselves.
  
* [http://w.thedaedalus.net/?hl2tex_installer Download HL2Tex_Installer.zip] ''- Recommended version'' (790KB)
+
* [http://www.thedaedalus.net/?hl2tex_installer Download HL2Tex_Installer.zip] ''- Recommended version'' (790KB)
* [http://w.thedaedalus.net/?hl2tex.net Download HL2Tex.NET.zip] (162KB)
+
* [http://www.thedaedalus.net/?hl2tex.net Download HL2Tex.NET.zip] (162KB)
 
 
===Visual Basic 6.0 Version===
 
  
 +
=== Visual Basic 6.0 version ===
 
This version is a great deal smaller, however Visual Basic 6.0 is required and there is no installer.
 
This version is a great deal smaller, however Visual Basic 6.0 is required and there is no installer.
  
* [http://w.thedaedalus.net/?hl2tex.vb6 Download HL2Tex.zip (VB6 version)] (19KB)
+
* [http://www.thedaedalus.net/?hl2tex.vb6 Download HL2Tex.zip (VB6 version)] (19KB)
 
 
==Sourcecode==
 
  
 +
== Source code ==
 
The source code can be downloaded at one of [[User:Daedalus|Daedalus']] [http://www.sourceforge.net SourceForge] projects.
 
The source code can be downloaded at one of [[User:Daedalus|Daedalus']] [http://www.sourceforge.net SourceForge] projects.
  
Line 47: Line 40:
 
The .Net version is provided for compilation purposes.
 
The .Net version is provided for compilation purposes.
  
* [http://sourceforge.net/project/showfiles.php?group_id=107377&package_id=217539&release_id=477154 Download the source code] - for both VB6 and .Net version
+
* [http://sourceforge.net/project/showfiles.php?group_id=107377&package_id=217539&release_id=477154 Download the source code] - for both VB6 and .Net version.
 
 
===Sourcecode Licence===
 
  
 +
=== Source code license ===
 
Released under the [http://en.wikipedia.org/wiki/GPL GNU Public License].
 
Released under the [http://en.wikipedia.org/wiki/GPL GNU Public License].
  
 
You may not take this code, edited or not, and simply call it your own.
 
You may not take this code, edited or not, and simply call it your own.
  
==Screenshots==
+
== Screenshots ==
 
 
 
<gallery>
 
<gallery>
 
Image:Hl2tex.jpg|The main dialog - click to enlarge
 
Image:Hl2tex.jpg|The main dialog - click to enlarge
Line 62: Line 53:
 
</gallery>
 
</gallery>
  
==Trivia==
+
== Trivia ==
 
 
 
* This is the least commented code [[User:Daedalus|Daedalus]] has ever written. He apologizes that it was made public!
 
* This is the least commented code [[User:Daedalus|Daedalus]] has ever written. He apologizes that it was made public!
 
* Daedalus completed the program (both VB6 and .Net version) in about 6 hours. He hopes there are no bugs :\
 
* Daedalus completed the program (both VB6 and .Net version) in about 6 hours. He hopes there are no bugs :\
 
* The VB6 version was written initially, as Daedalus didn't think he could make a .Net version
 
* The VB6 version was written initially, as Daedalus didn't think he could make a .Net version
 
* The .Net version was a test of the .Net Upgrade Wizard. Daedalus tried it for fun, and it worked almost flawlessly.
 
* The .Net version was a test of the .Net Upgrade Wizard. Daedalus tried it for fun, and it worked almost flawlessly.
* Daedalus attempted a few things he hadn't done in VB6 before and ... it almost all worked on the first go...wierd
+
* Daedalus attempted a few things he hadn't done in VB6 before and ... it almost all worked on the first go...weird
 
* The hardest thing to get working for the .Net version: getting all the windows to display when you clicked the main one
 
* The hardest thing to get working for the .Net version: getting all the windows to display when you clicked the main one
  
 
[[Category:Material System]]
 
[[Category:Material System]]
 
[[Category:Third Party Tools]]
 
[[Category:Third Party Tools]]

Latest revision as of 05:47, 12 April 2009

The Half-Life: 2 - Texture Tool, or HL2Tex, is a tool created by Daedalus to assist people in creating graphics for the Source engine. It simplifies the transformation of TARGA images to VTF files, creates the Txt configuration file for Vtex, and creates the VMT file that Hammer uses.

HL2Tex has a number of options available through its dialogs.

Usage

  • Start the application
  • First time users: Setup your vtex path!
    • On the VTEX Options panel click Select.
    • Vtex.exe will be located in your Steam\SteamApps\[email protected]\sourcesdk\bin\ folder.
    • Select Vtex.exe and click Open.
    • Note: HL2Tex saves this setting so you won't have to do it next time.
  • Navigate to your materialsrc folder
  • Select the file you wish to convert to VTF (only .tga files are displayed)
  • Set your options in the bottom two dialogs
  • Click Run VTEX. This also creates the .txt setting file (if desired) and the .vmt file (if desired)

Download

There are two versions available.

Visual Basic .NET version

This is the recommended version to download. It's bigger, however it's written in .NET which a lot of people have these days, and is easier to distribute.

The first download contains an installer to automatically install all required files.

The second download is just the files themselves.

Visual Basic 6.0 version

This version is a great deal smaller, however Visual Basic 6.0 is required and there is no installer.

Source code

The source code can be downloaded at one of Daedalus' SourceForge projects.

Note that the VB6 version is much easier to read, and there is only enough changes to get it to run in .Net otherwise.

The .Net version is provided for compilation purposes.

Source code license

Released under the GNU Public License.

You may not take this code, edited or not, and simply call it your own.

Screenshots

Trivia

  • This is the least commented code Daedalus has ever written. He apologizes that it was made public!
  • Daedalus completed the program (both VB6 and .Net version) in about 6 hours. He hopes there are no bugs :\
  • The VB6 version was written initially, as Daedalus didn't think he could make a .Net version
  • The .Net version was a test of the .Net Upgrade Wizard. Daedalus tried it for fun, and it worked almost flawlessly.
  • Daedalus attempted a few things he hadn't done in VB6 before and ... it almost all worked on the first go...weird
  • The hardest thing to get working for the .Net version: getting all the windows to display when you clicked the main one