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—adding 3D elements and interacting with them using Expression Blend

Now, we are going to add the 3D elements exported from 3D Studio Max to our existing XBAP WPF application:

  1. Open the project 3DInvadersXBAP in Expression Blend.
  2. Select Project | Add existing item.... Choose the previously exported spheres.xaml and click on Open.
  3. Click on the Resources panel and expand spheres.xaml. You will see three MeshGeometry3D, three MaterialGroup, and a Model3DGroup listed, as shown in the following screenshot:
    Time for action—adding 3D elements and interacting with them using Expression Blend
  4. Now, open the XAML code for Page1.xaml and add the following lines of code after the Page definition (we are merging the resource dictionary ...

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