Porting models to Garry's Mod: Difference between revisions

From Serious Saturdays
Jump to navigationJump to search
(Created page with "<span style="font-size:300%; color:red">'''This guide is a work-in-progress! Most pages are unfinished!'''</span> =About= This guide is meant to be a complete tutorial for taking a rigged, UV mapped model in Blender and turning it into a model for a Source game. The two games I will focus on are Garry's Mod and Left 4 Dead 2, though I will try to make the instructions as generic as possible. I am using Blender 4.1. If you want to use a different version, some contro...")
 
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<span style="font-size:300%; color:red">'''This guide is a work-in-progress! Most pages are unfinished!'''</span>
<span style="font-size:300%; color:red">'''This guide is a work-in-progress! Most pages are unfinished!'''</span>


=About=
=About=


This guide is meant to be a complete tutorial for taking a rigged, UV mapped model in Blender and turning it into a model for a Source game.  The two games I will focus on are Garry's Mod and Left 4 Dead 2, though I will try to make the instructions as generic as possible.
This guide is meant to be a complete tutorial for taking a rigged, UV mapped model in Blender and turning it into a model for a Source game.  The two games I will focus on are Garry's Mod and Left 4 Dead 2, though I will try to make the instructions as generic as possible.
We will start by making a model from scratch for Garry's Mod, including extracting and decompiling the models from the game directly, then using that model to make a L4D2 survivor using QC templates. Even if you're only concerned with making a L4D2 model, we will make a Gmod model first since it will teach important concepts and make material editing easier.


I am using Blender 4.1.  If you want to use a different version, some controls may be placed differently, but typically these instructions will be the same.
I am using Blender 4.1.  If you want to use a different version, some controls may be placed differently, but typically these instructions will be the same.


==The basics==
We will NOT cover the following:


* Basic terminology
* Model ripping from another engine, such as Unreal or Unity.
* Decompiling Source models
* Weight-painting or rigging an unrigged model.
* Preparing a model for Source
* Creating/exporting custom animations in Blender. This includes porting non-biped models.
* Preparing an armature for Source
* Actually getting your models into the target game (aside from Gmod and L4D2). Some games, like HL2DM, require Sourcemod plugins, which is beyond the scope of this guide.
* Compiling a model


==Advanced stuff==
==Requirements==


* Setting up flexes
* A model to port
* Setting up jigglebones
* [https://developer.valvesoftware.com/wiki/GCFScape GCFScape] (or anything that will let you open and extract files from VPKs)
* Setting up hitboxes and ragdolls
* [https://www.blender.org/download/ Blender]
* Setting up procedural (helper) bones
* [http://steamreview.org/BlenderSourceTools/ Blender Source Tools]
* Setting up special texture effects
* [https://steamcommunity.com/groups/CrowbarTool Crowbar]
* Some kind of text editor (I use [https://notepad-plus-plus.org/ Notepad++])


=The basics=


We will NOT cover:
You should follow these in the given order.


* Model ripping from another engine, such as Unreal or Unity
* [[Decompiling Source models]]
* Weight-painting or rigging an unrigged model
* [[Preparing a model for Source]]
* Creating/exporting animations in Blender
* [[Compiling a model for Garry's Mod]]
* Actually getting your models into the target game (aside from Gmod and L4D2). Some games, like HL2DM, require Sourcemod plugins, which is beyond the scope of this guide.
* [[Tweaking material shaders]]
* [[Setting up a ragdoll]]
* [[Setting up hitboxes]]


=Advanced stuff=


==Total requirements==
* [[Setting up eye tracking]]
* [[Setting up flexes]]
* [[Setting up jigglebones]]
* [[Setting up procedural (helper) bones]]


Mandatory:
=Left 4 Dead 2=


* A model to port
* [[Compiling a model for L4D2]]
* [https://developer.valvesoftware.com/wiki/GCFScape GCFScape] (or anything that will let you open and extract files from VPKs)
* [https://www.blender.org/download/ Blender]
* [http://steamreview.org/BlenderSourceTools/ Blender Source Tools]
* [https://steamcommunity.com/groups/CrowbarTool Crowbar]
* Some kind of text editor (I use [https://notepad-plus-plus.org/ Notepad++])

Latest revision as of 20:55, 31 May 2025

This guide is a work-in-progress! Most pages are unfinished!


About

This guide is meant to be a complete tutorial for taking a rigged, UV mapped model in Blender and turning it into a model for a Source game. The two games I will focus on are Garry's Mod and Left 4 Dead 2, though I will try to make the instructions as generic as possible.

We will start by making a model from scratch for Garry's Mod, including extracting and decompiling the models from the game directly, then using that model to make a L4D2 survivor using QC templates. Even if you're only concerned with making a L4D2 model, we will make a Gmod model first since it will teach important concepts and make material editing easier.

I am using Blender 4.1. If you want to use a different version, some controls may be placed differently, but typically these instructions will be the same.

We will NOT cover the following:

  • Model ripping from another engine, such as Unreal or Unity.
  • Weight-painting or rigging an unrigged model.
  • Creating/exporting custom animations in Blender. This includes porting non-biped models.
  • Actually getting your models into the target game (aside from Gmod and L4D2). Some games, like HL2DM, require Sourcemod plugins, which is beyond the scope of this guide.

Requirements

The basics

You should follow these in the given order.

Advanced stuff

Left 4 Dead 2