PROG1860 Game Development How to Load Textured Objects from ...

22 downloads 27 Views 62KB Size Report
PROG1860. Game Development. How to Load Textured Objects from Milkshape into XNA. 1. Create your textured object in Milkshape. 2. Export your object as ...
PROG1860

Game Development How to Load Textured Objects from Milkshape into XNA

1. 2. 3. 4.

5.

6. 7. 8.

Create your textured object in Milkshape Export your object as Alias FBX… Install the Autodesk FBX Converter (FBX 2010.2 Converter for Windows) Use the converter to convert your .fbx file to a newer .fbx version a. Select FBX20100 (Autodesk) as the Destination format b. Under Destination file options change the FBX Save Mode to ASCII c. Click convert d. Note that the convertor creates a new sub directory called FBX20100 and places the new version of the .fbx file there Open the converted .fbx in your favourite text editor (I recommend Notepad++) a. Edit the two instances of RelativeFilename to point to the location of your texture .bmp b. Save the changes to your .fbx file In XNA, add your .fbx object file to the Content Pipeline (in a folder called Models) Add your .bmp texture file to the Content Pipeline (in the location you specified in 5a above) Load only the model in XNA, do not load the texture (it loads as part of the model)

Suggest Documents