Tools and utilities for the Valve Source SDK, CS:Source and Half-Life 2
Having been playing around with the current Source SDK for a while, I've started writing some utility applications to aid content creation. Most of these existed in the SDK in one form or another, I've most ported them to be more user friendly Windows applications and expanded them with some extra functions.
GUI StudioMDL 2.x / Source - GUI wrapper for the Source model compiler
GUI StudioMDL 2.x is a based on my original GUI StudioMDL for Half-Life/Goldsrc, re-written to work with the new Source SDK. It provides access to all the same functions and parameters as the command line based Source StudioMDL compiler, but through a simple Windows based graphical user interface.
Windows Vista/XP VTF Shell Extensions - VTF Thumbnail & Property support
I got a bit fed up browsing through VTF files on my hard disk but not being sure what the actual image was inside it - so I wrote this. These are a pair of Windows Vista/XP shell extension which plugs into your OS and allows Windows to show a thumbnail of the VTF file when browsing in Thumbnail view, or info about the VTF file in columns in details view. The extension is a simple DLL which is installed into your system folder and registerd automatically - just run the installer.
Thumbnails are created automatically on selecting Thumbnail view for the folder. To make the VTF info columns appear, select "Detail" view, right click on the column headers at the top and select more then from the list, select which VTF info columns you would like to add.
IMPORTANT! Before you install the VTF Shell Extensions, you need to install the correct Visual Studio C++ Runtimes for you're operating system. Without the correct version the extensions will not work!
- Thumnail View Screenshot - Windows Vista
- Detail View Screenshot - Windows Vista
- Thumnail View Screenshot - Windows XP
- Detail View Screenshot - Windows XP
- Visual C++ 2005 SP1 Runtimes (x64) (3.1 MB) For Vista/XP 64bit
- Visual C++ 2005 SP1 Runtimes (x86) (2.6 MB) For Vista/XP/2000 32bit
- vtf_shell_extensions_v1.0.6.1.zip (557kb) For Vista 32/64bit, XP 32bit
3D Studio Max 9/2008 SMD Export Plug-in - Export Source SMD model and animation files
This plug-in allows 3D Studio Max 9/2008 32-bit or 64-bit to export Source reference and animation sequence SMD files. It supports Standard and Muli/Sub-Object materials, Editable Mesh and Editable Poly geometry, Skin and Physique modifiers and, when using Skin, using helper nodes such as dummies as bones. Also allows exporting a sub-range of an animation, exporting the sequence backwards, batch mode via Maxscript and both HL1 and HL2 format SMD files.
- 3dsmax_9_2008_smd_exporter_v1.1.zip (44kb) (latest version)
- 3dsmax_9_smd_exporter_v1.0.zip (43kb) (old version)
3D Studio Max VTF Texture Plug-in - Use VTF textures in 3DS Max
This little plug-in will give 3DS Max support for VTF textures, thus removing the previous need to convert them to TGA. Converts all textures to RGB format and includes alpha channel. Archive contains version for 3DS Max 6,7,8 and 9 32-bit and 64-bit.
- 3DSMax_VTF_Import_1.3.zip (777kb)
VTFTool - Valve Texture Format image handling tool
VTFTool, currently in ongoing development, is a windows replacement for several command line tools for handling the new Valve Texture format. Like VTF2TGA, it can take a VTF file or folder of files, and convert them back into TGA format for editing. You can also export all the MIP images for a texutre, plus export a TXT file which contains the config settings for re-compiling the TGA back into VTF format. It can also convert TGA files into VTF format and create a basic VMT shader file for your texture.
The current version is a BETA and therefore is still in development and non guaranteed free of bugs. Please make sure you read the included README file
Install VTFTool.exe into your source_sdk\bin folder. It doesn't need Steam to be running to work. Please read the included TXT file for instructions on how to use it.
- VTFTool screenshot
- VTFTool_0.5b.zip (204kb)
- VTFTool 0.5 French (via Lerat)
IMPORTANT: VTFTool has now been retired and some of its code now exists in VTFLib. It is therefore recommended that you switch to using VTFEdit instead as VTFTool is no longer supported and cannot be guaranteed to work with future VTF formats.
Source MDL Texture Info - Dump info on textures used by a model
MDL Texture Info is a quick console app that will tell you the textures used by a MDL file from a game using the Valve Source engine. It will list the textures used by their VMT file plus the folders in which it the model will look for the textures. Handy if you cant remember or keep getting that darn pink/black checkerboard texture!
SoftImage XSI dotXSI 3.x Exporter Plug-in for Milkshape 3D
The plug-in exports object meshes and materials from MS3D, retaining the same groups and properties as closely as I could managed on what I know of the XSI format thus far. It generates a XSI 3.0 format file, and imports the meshes into the root scene (this may change in future releases). It works with XSI EXP HL2 and can be used to get exisiting models into XSI for editing.
Note: the dotXSI exporter is now included with Milkshape3D by default when you choose to install third-party plug-ins. Thanks Mete!
VTFLib C++ library for VTF / VMT file access
VTFLib is an open source programming library which allows developers to add support for VMT and VTF files used by the material system of Valve Software's Source game engine. It functions independent of Steam allowing third party apps to use these file types without the need for Steam to be running.
VTFLib offers a simply API which allows you to read or write VMT and VTF files through a few simple functions. It also takes care of a lot of formatting and validation of the files.
VTFLib comprises of two modules, VMTFile and VTFFile:
VMTFile allows you to read and write VMT files using a hierarchical node based system similar to how one might navigate an XML file. The system uses a series of VMTNode objects which have a name and data type. These can be set, read or parented as needed by your application.
The VTFFile module allows you to read and write binary image data in VTF files. It supports single frame, multiple frame and cube map files and can read and write compressed and uncompressed formats and allows access to individual frames, faces and MIP levels. It contains functions to automatically create MIP levels for you using a number of different filter types, can automatically generate sphere maps and even create Normal and DuDv maps from RGB and greyscale source images. Based on nVidia's DXTn library, it creates compressed images with superior quality to Valve's VTEX tool.
Note: I have a custom version of VTFLib compiled as both a 32-bit and 64-bit DLL. If you'd like a copy for you're project, get in touch.
License / Disclaimer
You are allowed to distribute software on this page freely as long as it is not for profit and this documentation is intact and unmodified. If you do decide to distribute it, please let me know as I'd like to know who's using it.
This software is experimental. I, the author, assume no responsibility whatsoever for its use by other parties, and makes no guarantees, expressed or implied, about its quality, reliability, or any other characteristic.