Skip to content

WinForms Series 2 Content Loading

Simon (darkside) Jackson edited this page Aug 21, 2020 · 7 revisions

WinForms Series 2: Content Loading

Area Submitted Type
Games: Content Pipeline, Games: Graphics 1/10/2008 Code Sample

Description

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).

XNA_Winform-ContentLoader_01_small.JPG XNA_Winform-ContentLoader_02_small.JPG XNA_Winform-ContentLoader_03_small.JPG

Download Size Description
WinFormsContentSample_4_0 1.08MB Source code and assets for the WinForms Series 2: Content Loading Sample (XNA Game Studio 4.0).
WinFormsContentSample_4_0.zip 1.08MB Source code and assets for the WinForms Series 2: Content Loading Sample (XNA Game Studio 4.0).
Clone this wiki locally