Mango Teapot for Windows Phone 7.1

Rating: No reviews yet
Downloads: 813
Released: Jul 26, 2011
Updated: Nov 16, 2011 by hiroyuk
Dev status: Stable Help Icon


Source Code Mango Teapot
source code, 128K, uploaded Nov 16, 2011 - 813 downloads

Release Notes


This sample code requires Windows Phone SDK 7.1 to build.
Works with the Windows Phone emulator in the SDK or Windows Phone 7.5 (aka "Mango").


  • Shared graphics device with both XNA and Silverlight
This code use both XNA and Silverlight, which share graphics device (GPU surface) via SharedGraphicsDeviceManager. Also UIElementRenderer enables to render Silverlight UI in XNA draw method.
  • Original Teapot class
This code has original Teapot class which include custom position normal vertex derived from IVertexType class. This class use BasicEffect class for rendering effect since Windows Phone "Mango" does not support custom shader effect.
  • Accerelometer and Motion
We can use accerelometer, compass, and optionally giroscope on the Windows Phone "Mango" via Accelerometer class, Compass class, and Giroscope class respectively. To get combined motion Motion class is useful than using each class. This code use Motion class and Accelerometer class since current build of Windows Phone "Mango" sometimes does not has Compass driver and Motion.IsSupported returns fail. If Motion.IsSupported retuens true, this code use Motion class.
  • Photo Camera
We can use Photo Camera on Windows Phone "Mango" from our application. This code use PhotoCamera class to get viewfinder image and use it as VideoBrush of Silverlight. XNA teapot and Silverlight video (PhotoCamera) combined on the screen make AR effect.
  • Fixed Bugs
    1. Nov.16, 2011 When switch Touch to Motion sometimes Teapot was hidden in a second. This problem is fixed to handle both Sensor startup delay and 0 angle movement.

Reviews for this release

No reviews yet for this release.