Skip to content

ItsNatoriousB/blender-auto-mat-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 

Repository files navigation

Blender 2.83 LTS+ Auto .MAT Loader

This automatic .MAT loader creates a Blender material that can be applied to an object. Currently Only works when .MAT files are in the same directory as the textures.

Supported Game Model Exports

  • Fortnite
  • COD:MW - Warzone
  • Rogue Company

Textures Supported - Diffuse, Normal, Specular, Emissive

Setup/Installation

  1. Download or Copy Auto Mat Loader.
  • Download - Right Click -> 'Save As' - auto-mat-loader.py
  • Copy - Click RAW -> 'Copy All' Ctrl + A -> 'Paste' Ctrl + C -
  1. Open Blender and in the top right, go to the 'Scripting' tab.
  2. Drag auto-mat-loader.py file into the large text box OR Paste the 'Raw' code there.

How-To Use

  1. After importing into Blender - Collect your exported .MAT file and .TGA textures (ONLY TGA)
  • Move the .MAT file(s) into the same folder as the textures

  • Move the textures to the same directory as the .MAT file(s) This was modified to deal with the most common cases.

    alt text

  1. Copy the full path of the .MAT file. Hold 'Shift' then right click in 'Windows Explorer' and then 'Copy As Path'.

  2. From the 'Scripting' tab, paste the full path after "DotMatPath = r" - It should look something like:

    DotMatPath = r"C:\PathToUmodelEtc\material.MAT"

  3. There are two options available:

    • outputMaterialName - Determines material name output. Blank matches the filename ex. (outputMaterialName = "")
    • ApplyMaterialToCurrentlySelectedObject - Applies material to the currently selected object. True or False is case-senitive.
  4. Press "Run Script" at the top right.

Usage Demonstration

https://i.imgur.com/4OMVs4T.mp4

Modified to work with Blender 2.83 LTS+

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages