O'Reilly logo

3D Game Development with Microsoft Silverlight 3 Beginner's Guide by Gastón C. Hillar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action—from DCC tools to WPF

Now, we are going to display the XAML 3D model exported from Blender in an XBAP WPF application:

  1. Create a new C# project using the WPF Browser Application template in Visual Studio or Visual C# Express. Use 3DInvadersXBAP as the project's name.
  2. Open the file that defines the XAML 3D model using Notepad or any other text editor. Select all the content and copy it to the clipboard.
  3. Open the XAML code for Page1.xaml (double-click on it in the Solution Explorer) and paste the previously copied XAML 3D model after the line that begins defining the main Grid (<Grid>). You will see the spaceship appear in the page in the designer window. You can understand how an XAML 3D model is defined and inserted in a Viewport3D ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required