Wednesday, 11 March 2009

Research - Model Import Tutorial

For this week the team has been researching how to successfully import 3Ds Max models into Valve Hammer, add realistic looking fire and extinguish the flames.

So far, we have learnt that important models into the Source Engine, like any other games engine of a similar nature, is not a simply affair. Through spending time with the software however and performing research on the Internet, we have come up with a successful method of importing models into the engine without any problems.

Once a fully textured model has been constructed in the 3D Studio Max software, the item must be exported as a .MDL file, along with a .SMD file for frame structures and animations. Before this is possible however, the user must first install several plug-ins for 3Ds Max avalible from this website. When installed, it's possible to export .SMD and .MDL files from Max, both of which must be saved to an appropriate place on the computer.

The next step to importing models into the Hammer Editor is using .QC files and import software. First, a .QC file must be constructed either using software such as Crimson Editor, or a simple text based editor such as Notepad. The QC file is made so that the import software can read the model files, convert them and output them into Steam's 'Model' folder. Here is an example of a standard .QC file:

$modelname modelpath/exemple.mdl
$cdmaterials texturepath/

$scale 1

$body studio "model_ref.smd"

$origin X Y Z

$upaxis Y

$staticprop

$surfaceprop "glass"

$sequence idle "model_still" loop fps 1

$collisionmodel "model_phys.smd" {
$Mass 10
$concave
}

$keyvalues
{
"prop_data"
{
"base" "Type.Size"
}
}

Using a text editor such as Notepad allows users to edit several sections of the .QC file to relate to the machine they are using. For example, '$modelname modelpath/exemple.mdl' becomes '$modelname F:\Program Files\Steam\steamapps\username\half-life 2\hl2\Models\example.mdl.'

Once the .QC file has been saved and completed, it is possible to open it using Source Import software, such as GUIStudioMDL as an example. It's recommended all import software is saved in the SourceSDK's 'bin' folder. Once saved, run the software, use the config tools to link the importer with HL2 and The Orange Box's configuration folders, and then import the .QC file. As the .QC file was edited earlier to link with the chosen models, GUIStudioMDL will output the models into the Half Life 2 or Orange Box model folders depending on which is selected.

After this is completed, it will now be possible to place the models in the Hammer Editor by utilising the 'prop_static' entity and choosing the models in the model browser.

Thursday, 5 March 2009

Exporting Models

As part of our assignment we will need to have access to as many items as possible. As our game is going to be constructed using the Half-Life engine, it means that some of the most useful models and characters to use, such as the Pyro from Team Fortress 2, are normally inaccessible. There are however some ways to get around this. This is not always the best option however, as any user that wants to use the map that has been created most own all the content that has been used in the map. Otherwise it simply won’t work.

The basic principle behind getting models and items into a separate engine is to mount the games ‘.gcf’ files while hammer is running with the engine open. While this can sound simple, it can often be very confusing and at times, simply isn’t worth doing. There is however, some third party software that makes this task slightly easier by allowing access to the files that are needed. They can then be extracted and mounted and then accessed in the editor. This can be a tedious process, and one that isn’t very practical. While it is nice to have the option to be able to use the models from other Valves games, it would be a lot easier if Hammer had access to these files from the start.

There are a number of programs that make the files viewable in a browser, the most commonly used of these is; GCFScape. GCFScape allows the user to view all the files that are associated with the various Valve games. Once the user is able to locate the files that are needed then they will be able to mount them into Hammer and they will be accessible. This can be a very complicated way to get around the problem. Getting the models from one game into another game is not simple, as Valve wanted each game to stand alone.

Another possible way to move models from one engine to another is again using GCFScape and extracting a precise file and then simply adding the models in the standard way.

Firefighter Training Videos

Because of safety issues, firefighters aren't allowed to take video cameras into live fires, so there is next to no videos of combating actual fire. Instead, I found a bunch of useful training videos to draw ideas from.

Training video 1
http://www.dunstabletoday.co.uk/around-the-county-news/VIDEO-Training-with-the-fire.5003073.jp

747 simulation
http://connorsworld.com/scouts/fireacademy/fireacademy.html
This video shows the fake 747 construction used for training for fires on Boeing 747s and other planes

Firemen putting out a training fire
http://www.defenselink.mil/home/images/photos/2006-02/index/Hi-Res/060210-F-7564C-021.jpg

Training video with HEROIC MUSIC
http://video.google.co.uk/videoplay?docid=5504564730599825399&ei=PkugSZyJAo2siAKQrKxT&q=fireman+training&hl=en

Firefighter training simulator
http://vids.myspace.com/index.cfm?fuseaction=vids.individual&videoID=2039151844
The simulators are often larger buildings constructed from huge metal storage containers, so they won't burn down completely each training session

Fireman training montage
http://www.youtube.com/watch?v=6Sy7y1q1o4Q&feature=related

Training with narration
http://videos.howstuffworks.com/howstuffworks/343-how-fire-training-works-video.htm

Buzz saw video
http://video.yahoo.com/watch/1419663/4876853
This video shows how the firefighters get into places locked by metal doors & such.

Training towers
http://video.google.co.uk/videoplay?docid=-8334719950025440945&ei=2E-gSezZBIvSjgLAyJgH&q=fireman+training&hl=en
A video showing how firefighters enter buildings via ladders

Burning vehicle training.
http://video.google.co.uk/videoplay?docid=4672135414840608595&ei=OlCgSdmjFIvKiQKN9bzjAg&q=fireman+training&hl=en
Note how they form a shield of water with the spray to approach safely and smother the fire.