First-Steps
This step by step guide explains how to make your first capture with sound.
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 [[Render Settings|GoldSrc:Render Settings]]. You can add -demoedit to the command line, which enables [[DemoEdit|GoldSrc:DemoEdit]].
Hit Launch to launch the game (if everything went right the game will display) and proceed to the next section 😃
Your 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 the command viewdemo DEMONAME. In the example below 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 the name of the image sequence we will capture.
To do that we use the command [[mirv_movie_filename|GoldSrc:mirv_movie_filename]], which we can use to set a filename or even a full path.
In our example we want to save in the directory mdttmp on the drive g: and give the files the name FILENAME, thus we enter into console:
After that we can change the FramesPerSecond with which the capture is recorded using the command . 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 :
When enabled this gives us grayscale images that contain information on how far away objects are, which can be used for effects like Depth of Field, for example.
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 typing :
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 into console.
When your scene is complete, stop the recording by entering :
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 depth images FILENAME_00_depthall_xxxxx.tga.
The exported sound file FILENAME_00_sound.wav is located in the same folder.
Original tutorial by msthavoc.
See also
- [[Home]]
- [[Tutorials]]
- https://www.advancedfx.org/support/