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

Using the Model Viewer


One of the many useful tools at your disposal is the Model Viewer. It, like other tools, is located in the bin folder. Because Valve packages all their game files into ZIP-like files called Valve Pack Files (VPK), we need to unpack the models before we can view them.

Unpacking models

There is a program called GCFScape available at http://nemesis.thewavelength.net/index.php?p=26 that can browse the packed game files and extract them to proper folders. Run GCFScape and open the hl2_misc_dir.vpk file in the h12 folder located at common/Half-Life 2.

Inside the VPK file, you will see a list of folders that mimic the Steam folder's structure. We want to access the models so we can check out their animations. For this, browse to the models folder, and extract the models folder to your common/Half-Life2/hl2/models folder by right-clicking on it and selecting Extract.

Extract the models folder into the common/Half-Life 2/ep2 folder. A dialog box will appear showing the status of...