Book Image

Source SDK Game Development Essentials

By : Brett Joseph Bernier
Book Image

Source SDK Game Development Essentials

By: Brett Joseph Bernier

Overview of this book

Table of Contents (18 chapters)
Source SDK Game Development Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Importing models


Models need to be created and textured with third-party software, but the materials and models still need to go into the proper folders in order to be displayed in the game. If you have a model called mymodel.mdl, this model needs to be placed into its own folder within a subfolder of the models folder of your game. Wait, what? It's a common practice for each custom model to be placed within its own folder. If you had a box model called mybox.mdl, it would be in a folder called mybox within the mymodels folder within the models folder. For example:

Steam\SteamApps\common\Half-Life 2\ep2\models\mymodels\mybox\

The materials for your custom models go into the materials folder in a similar manner. The same folder structure exists beneath the models folder and the materials folder, yet one contains the .mdl files and the other contains the .vmf and .vmt files.

Steam\SteamApps\common\Half-Life 2\ep2\materials\models\mymodels\mybox

The folders get nested pretty deep and it can...