tutorial:simple_mdl

Simple .MDL: Converting .OBJs

This is mainly intended for people who want to convert their .OBJ 1) models to .MDLs and don't really care about the additional features so it only covers simple model creation.

You're gonna need some tools for this. Small tip before you start, in Windows Explorer go to the View tab and check File name extensions. This is gonna help you avoid getting confused with all the different file types.

Download Blender2) and Blender Source Tools then:

  1. Install Blender
  2. Open Blender:
    1. Go to EditPreferencesAdd-onsInstall
    2. Select the blender_source_tools file and click Install Add-on
    3. Make sure to check the box next to the add-on name and press Save Preferences
      blender-setup.jpg

Download 7-zip and Crowbar then:

  1. Install 7-Zip
  2. Unpack Crowbar using 7-Zip
  3. Open Crowbar and go to the Set Up Games tab
  4. At the bottom, in the Steam Library Folders section click Browse… and select your Steam folder 3)
  1. Open Blender and import your .OBJ model — FileImportWavefront (.OBJ)
  2. Go to the Scene panel:
    1. Set Export Path to the folder that you want to export the model to.
    2. Set Export Format to SMD
      blender-scene-settings2.jpg
  3. Click ExportCollection.smd

Download model.qc and put it in the folder where you exported the .SMD file, then:

  1. Open Crowbar and go to the Compile tab
  2. Click Browse… in the QC input: line and select the model.qc file that you downloaded
  3. Change Output to Subfolder
  4. Change Game that has the model compiler to Garry's Mod
  5. Click Compile and wait for it to finish.
  1. After compiling the model in Crowbar click Goto to find the compiled model files
    1. If you want to convert textures and include them in your archive, now is the time → Basic Materials
  2. Select all the files, right click them and select 7-ZipAdd to archive…
  3. In the new window set Archive format to zip and Compression level to Store then click OK
  4. Upload the .ZIP archive → Hosting custom content online
  5. Use the link in the Model part

And that's it.

You can add materials to your model once you import it into PACReplacing materials/textures

More info about .MDLZIP archives → Using MDL files in PAC

Crowbar explained → Crowbar (Modding Tool) Guide

Ask for help → Official PAC Discord


1)
This guide assumes that you're using .OBJ but this will work for any kind of model, including those with bones.
2)
Tested with 2.83
3)
This should be the folder that contains the steamapps folder, for example C:\Program Files (x86)\Steam
  • tutorial/simple_mdl.txt
  • Last modified: 9 months ago
  • by yagira