Time for action – adding the tank model
We can add the tank model to our project by following these steps:
1. Download the
7089_06_GRAPHICSPACK.ZIP
file from the book's website and extract the contents to a temporary folder.2. Select the
.fbx
file and the two.tga
files from the archive and copy them to the Windows clipboard.3. Switch to Visual Studio and expand the Tank BattlesContent (Content) project.
4. Right-click on the Models folder and select Paste to copy the files on the clipboard into the folder.
5. Right-click on
engine_diff_tex.tga
inside the Models folder and select Exclude From Project.6. Right click on
turret_alt_diff_tex.tga
inside the Models folder and select Exclude From Project.
What just happened?
Adding a model to our game is like adding any other type of content, though there are a couple of pitfalls to watch out for.
Our model includes two image files (the .tga
files – an image format commonly associated with 3D graphics files because the format is not encumbered by...