https://github.com/xezno/zip2mat
Converts zip materials to Source 2 vmats
https://github.com/xezno/zip2mat
half-life-alyx source2 source2-engine
Last synced: 4 months ago
JSON representation
Converts zip materials to Source 2 vmats
- Host: GitHub
- URL: https://github.com/xezno/zip2mat
- Owner: xezno
- License: mit
- Created: 2021-04-17T21:23:10.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-04-20T12:09:34.000Z (almost 5 years ago)
- Last Synced: 2025-10-13T15:34:20.249Z (4 months ago)
- Topics: half-life-alyx, source2, source2-engine
- Language: C#
- Homepage:
- Size: 25.4 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Zip2Mat

## What?
Zip2Mat is a simple app that allows you to convert textures contained in zip files
(like [this one](https://cc0textures.com/view?id=Metal022)) to materials you can use with Source 2, allowing you to import
materials at light speed.
Zip2Mat currently features:
- Automatically extracts & moves all of your files into the right place so that you don't have to
- Bulk importing: drag & drop multiple zip files so that you can batch import textures
- Converts textures into .tga images (Source 2 likes these more than jpegs or pngs or whatever)
- Support for the 'VR Simple' shader
- A super simple, intuitive interface
- Tested & works with CC0Textures, TextureCan, TextureHaven, among others (most of the [3dassets.one](https://3dassets.one/)
results should work without issue)
- Normalize file names (so that your project folder isnt a mess)
## Why?
Because I'm lazy and can't be bothered to link all of the maps up manually. And you probably don't either.
## Where?
You can [download the latest release](https://github.com/xezno/Zip2Mat/releases) with this repo's contents and compile it
yourself, or [download the zip](https://github.com/xezno/Zip2Mat/archive/refs/heads/main.zip).
**As a quick note**, don't bother using jpegs. Importing them into Source 2 causes the whole engine to hang for ~20 seconds,
and they look like shit anyway.
## How?
Zip2Mat simply searches for common aliases for the different map types (i.e. color -> colour, diffuse, col, albedo, etc.)
and then generates a vmat file using the T4 text template system.