First Steps
From HLAEwiki
This step by step guide explains how to make your first capture with sound.
Contents |
Download and Installation
You can download the latest version of Half-Life Advanced Effects from advancedfx.org.
Just create a folder in a location you like (i.e. on your Desktop) and extract all the contents of the archive you just downloaded into it:
Starting HLAE and launching the game
In order to be able to launch the game later on, you'll need to have the Steam client running. We recommend using Steam's Offline Mode during movie production.
Now start the hlae.exe and select launch from the menu:
This will bring up the game launch dialog:
First you should click the "Browse ..." button and browse to your game's hl.exe and select it (HLAE will remember the setting next time). In case it's Counter-Strike, you can leave the modification set to cstrike and the rest of the options is okay for now.
This dialog also allows to set various other options, including the game's resolution and the Capture Mode. You can add -demoedit to the command line, which enables DemoEdit.
Hit Launch to launch the game (if everything went right the game will display inside HLAE) and proceed to the next section :)
You first capture with sound
Let's check if HLAE has been successfully hooked into the game: Open your console in CS by pressing the console key (key above TAB) and you'll see a notice similar to this one:
Start a demo using command viewdemo DEMONAME.
In the example bellow the demo is named awp.dem:
After some seconds your demo file is completely loaded.
If you type mirv_movie you can see a list of possible commands appear:
First we want to change the save location and also the name of the image sequence we are going to capture.
To do that we use the command mirv_movie_filename, which we can use to set a filename or even a full path.
I our example we want to save in the directory mdttmp on the drive g: and give the files the name FILENAME, thus we enter mirv_movie_filename "g:\mdttmp\FILENAME" into console:
After that we can change the FramesPerSecond with which the capture is recorded using the command mirv_movie_fps 90. In our example we want to use 90, so we can do a nice slow motion later:
If we want we can also turn on the depthdump using the command mirv_movie_depthdump 1:
When enabled this gives us gray scale images that contain information how far things on the capture are away, which can be used for effects like Depth of Field i.e..
But now to a really handy feature:
Since 1.1 HLAE supports direct export of the game sound. So you don't need to record it separately with other programs like Audacity.
Enable the sound export by typingmirv_movie_export_sound 1:
Now we can start capturing our Demo Scene.
Just hit the play button on the viewdemo panel to play the demo.
To start the capture type the command mirv_recordmovie_start into console.
When your scene is complete, stop the recording by entering mirv_recordmovie_stop:
To ease your life you can also bind these functions to a key on the keyboard, here is an example:
Now you can easily start the capturing by pushing F4 and stop it by pushing F3.
After you finished capturing you can close the game and browse to the path, where the image sequence was saved to, in our case G:\mdttmp:
You can see the captured images FILENAME_00_all_xxxxx.tga and the depthimages FILENAME_00_depthall_xxxxx.tga.
The exported sound file FILENAME_00_sound.wav is located in the same folder.
Original tutorial by msthavoc.













