Using the built-in video recording
There will come a time when we want to record a game session out to a video file. There are a number of third-party tools that can do this, and some of them support a number of different file formats. Torque 3D also supports direct recording of its display to a Theora format video file which is a cross-platform, open format. In this recipe we will start and stop video recording using a key press from within Torque 3D.
Getting ready
We will be making TorqueScript changes in a project based on the Torque 3D Full
template, and try them out using the Empty Terrain
level. If you haven't already, use the Torque Project Manager (Project Manager.exe
) to create a new project from the Full
template. It will be found under the My Projects
directory. Then start up your favorite script editor, such as Torsion, and let's get going!
How to do it...
In the following steps we will add a key combination to start and stop video recording:
Open
scripts/client/default.bind.cs
in...