The templates included with Torque 3D provide a starting point for your project. Once we have created our own project based on a template we may then compile an executable and begin work on our game. The following templates are included in this version of Torque 3D:
- Empty
- Full
If you plan on creating a project based on a template that uses PhysX you will first need to have the PhysX SDK intalled on your computer. Without the PhysX SDK in place the project generation step will fail when using either the Project Manager or manual project generation methods.
PhysX SDK version 2.8.4.6 is required for Torque 3D's PhysX templates. The following steps are used to install this SDK:
- In a web browser, go to the NVidia Support Center
- If you do not have an account, you will need to register with them to have the support staff create an account for you.
- If you have an account, login.
- On the middle of the page, on the right, click on Downloads.
- On the far right column, under Old downloads, click More.
- Download the Windows 2.8.4.6 version.
- Run the installer and follow the steps to install it in the default location.
- Depending on your operating system version, you may need to reboot after the installation.
The Project Manager may be used to create a new game project based on one of the templates that are included with Torque 3D. If you are using Torque 3D directly from the GitHub repository then you will need to get the Project Manager from the Torque3D-ProjectManager repo.
The following steps use the Project Manager to create a new project:
- Run the Project Manager.
- Click the New Project button.
- Choose a template from the drop down on the right.
- Give the project a name.
- Click the Create button to create the project. This will open a new dialog window that shows the progress.
- When it finishes, click the Finished button.
- You may click on the Open Folder button to go to the project's directory.
We may also manually create a project based on a template. The following steps outline how to do this:
- Open the Templates directory.
- Right-click on the template you would like to use and choose Copy.
- Go to the My Projects directory and paste the template there.
- Rename the pasted template to the name of your project/game.
- Go into your project's game directory and rename all executables, DLL files and the .torsion file (and maybe .torsion.opt) from the template name to that of your project (these files may not be present at this time).
- Open the .torsion file in a text editor and replace all references to the template's name with that of your project (you only need to do this if you plan on using Torsion). You will need to also do this with the .torsion.opt if it exists.
- Open you project's source/torqueConfig.h file in a text editor and change the
TORQUE_APP_NAME
define to the name of your project. - In your project's buildFiles/config directory open each .conf file and find each reference to the template's name and replace it with the name of your project.
- Open your project's game/main.cs file in a text editor and change the
$appName
assignment to the name of your project. - Go to your project's directory and double click on the generateProjects.bat to create your project's solution files.