Skip to content

MRVN-Radiant/MRVN-VMT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MRVN-VMT

batch .vmt -> .shader converter for MRVN-Radiant
Will not work for GtkRadiant OR NetRadiant! (unique .shader flags)

Gets textures from Titanfall 1 / Titanfall: Online into MRVN-Radiant
You don't need this to compile maps, but it sure helps you see what you're doing

See MRVN-Resource-Pack for dev textures/, shaders/ & models/

Uses VTFLibWrapper by Ganonmaster, which provides python bindings for Nem's VTFLib
(also used by the SourceIO Blender addon)
See also:

Installation

Clone this repo:

$ git clone https://github.com/MRVN-Radiant/MRVN-vmt.git

Windows

Install dependencies with pip

NOTE: Don't use Cygwin or MSYS2! Need Windows python to target VTFLib binaries

$ py -3.9 -m venv venv
$ call venv/scripts/activate
$ python -m pip --upgrade pip
$ python -m pip install -r requirements.txt

Linux

$ python3 -m venv venv
$ source venv/bin/activate
$ python -m pip --upgrade pip
$ python -m pip install -r requirements.txt

TODO: Download & compile panzi/VTFLib Linux binaries

TODO: Test

Usage

Substitute your own folders here:

$ python3 batch.py ".../Titanfall VPK dump/materials" ".../Level Editors/MRVN-Radiant/TitanfallOnline"
$ deactivate

NOTE: deactivate is to close the virtual environment (venv)

TODOs

  • Convert specific mip / image size limit (for low filesizes & editor performance)
  • .vmt effects in .shader
    • BlendModulate MRVN-Radiant will need to support this in the viewport
    • Proxies & other procedural materials
    • Water
    • Normal & Specular maps
  • Titanfall2 / Apex Legends .rpak support
    • Physically Based Rendering in .shader
  • Image & .shader -> batch of .vmts (R1:O Asset Bakery)
  • Convert models/ textures
  • .vtf -> .dds -> .rpak (R2 Asset Bakery)