Xbox LIVE Indie Games

code sample details

WinForms Series 2: Content Loading

Code Sample


This sample shows you how to import arbitrary 3D models at run time by running the Content Pipeline importers and processors dynamically on the fly as opposed to building all the content ahead of time in the usual way.

Sample Overview

This sample builds on the classes described previously in the WinForms Graphics Device sample. It implements a 3D model viewer control that uses a file selector to let the user choose any .fbx or .x format model. Then it imports that file, loads it, and displays it on the screen.

Note: This sample runs only on Windows. WinForms, MSBuild, and the Content Pipeline aren't available on Xbox 360. If you want your game to run on Xbox 360, you must build all your content ahead of time as part of the Visual Studio project. Note also that the XNA Framework redistributable installer doesn't include the Content Pipeline. This sample will run only on computers that have the XNA Game Studio installed.

Other items in the Winforms Series

All content and source code downloaded from this page are bound to the Microsoft Permissive License (Ms-PL).




GS 4.0


GS 3.1

find education content
var gDomain=''; var gDcsId='dcschd84w10000w4lw9hcqmsz_8n3x'; var gTrackEvents=1; var gFpc='WT_FPC'; /*<\/scr"+"ipt>");} /*]]>*/