Click or drag to resize
DigitalRuneStep 7: Model content

Next, we will add some graphics models.

Add models to the content project
  1. Download following ZIP file:
  2. Extract the content into the folder of your content project:
    • MyGame\MyGame\MyGameContent
    Tutorial-01-07
  3. In the VS Solution Explorer select the MyGameContent content project and click the Show All Files button.
    Tutorial-01-08

    This will show all the files in the content project folder. Select Dude.fbx, Ground.x and MetalGrateBox.fbx by left-clicking these items while pressing CTRL.

    Tutorial-01-09
  4. Right-click the selected items and select Include In Project.
    Tutorial-01-10
  5. Click the Show All Files button again to disable it.

Your content project should look like this:

Tutorial-01-11
Add DigitalRune content pipeline assemblies

DigitalRune provides several content pipeline assemblies which contain new content processors. We have to add these to the the content project:

  1. In the VS Solution Explorer, right-click the References folder of the MyGameContent content project and select Add Reference…
  2. Browse to folder:
    • <DigitalRune Engine Folder>\References\XNA\Windows
  3. Select all *.Content.Pipeline.dll files and press OK.

Your solution should look like this:

Tutorial-01-12

It is important to note that all XNA content projects use the *.Content.Pipeline.dll files from the folder

  • <DigitalRune Engine Folder>\References\XNA\Windows

Even if you are building an Xbox 360 game, the content project uses the content pipeline DLLs from this folder because the content is built on your Windows PC and not on the Xbox. Therefore, you will not find any *.Content.Pipeline.dll files in

  • <DigitalRune Engine Folder>\References\XNA\Xbox
Select the content processor

Per default, all content of the content project uses the XNA content processors. However, DigitalRune Graphics uses a more advanced model processor:

  1. In the Solution Explorer select Dude.fbx and press F4 to see the Properties window.
  2. Set the content processor to Model - DigitalRune Graphics. (If you cannot find this content processor, build the solution in its current state and try again.)
    Tutorial-01-13
  3. Do the same for Ground.x and MetalGrate.fbx.