Table of Contents
Blender Source Tools allows Blender to import and export Studiomdl Data and DMX model files. However, in order to streamline the process of material exporting, .QC compilation and HLMV previewing, it's not exactly convenient especially the material exporting part.
I don't want to click through VTFEdit or any other VTF editing software anymore. I want an add-on with simple GUI that quickly export materials in batch. This is my first blender add-on that tackles this problem. You can say this is pretty much a Blender GUI for VTFLib
To get started, download the .zip file from the release page
- Blender v2.93+
- Blender v2.80 may or may not work
- Blender v2.79 or any version below will NOT work
- Open up Blender (See prerequisites) and go to Edit > Preferences > Add-ons > Install...
- Select the downloaded .zip
- Enable it. You should have something similar to the following:
- Now, go to your side panel "Scene" and scroll to "VTFLibConverter" section. You should have something like the following:
- Under VTFCmd Path, enter the path to . Note: This textfield cannot be empty
- Under Material Output Path, enter the path to your materials folder (i.e game-full-name\ game-folder\ materials). Note: it must be materials folder and this textfield cannot be empty
- Follow the installation and setup guide from the previous section
- Make sure all your materials have the following node setup: As of right now, only "Principled BSDF" is supported
- When you're ready to export your materials, click on the Refresh Material List first. By default, all materials will be selected for exporting (indicated by highlight). You may manually deselect the materials that you wish to ignore for exporting. The example below will only export the material Material.001
- After that, choose your format, alpha format and vtf version by using the dropdown menus
- If the Resize? checkbox is ticked, values in the following dropdown menus will be used for exporting:
- If you wish to generate corresponding .VMT file, tick the Generate .VMT checkbox and select your desired shader. Note: the VMT will be generated and placed under your materials folder that you've selected earlier
- Version 1.0.0 code clean-ups
- Minor code clean-ups
- GUI label alignment and adjustments
- Capture STDOUT and STDERR
- Support for relative path for both VTFCMD Path and Material Output Path
- Support for custom resize resolution (i.e. w=256 & l=512) instead of fixed values
- Support for different types of shaders
- Diffuse BSDF
- Mix Shader
- Automatic exporting Normal maps
- Automatic baking if a material has a shader but without TEX_IMAGE (Pure color) and export it
- Allow .VMT parameters (More to come!)
- Allow custom .VMT parameters
- Additional supports for different formats and alpha formats
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
- Fork the Project
- Create your Feature Branch
- Commit your Changes
- Push to the Branch
- Open a Pull Request
Distributed under the MIT License. See LICENSE.txt
for more information.