Controllable Textured 3D Cube (Silverlight)

This sample constructs a 3D cube using Silverlight, applies a texture to it, and wires up standard Silverlight UI elements to control the pitch, yaw, and roll of the cube in real-time. If updating the shader (*.hlsl) code, run CompileShaders.bat (with DirectX SDK installed) to

C# (358.9 KB)
 
 
 
 
 
4 Star
(2)
6,352 times
Add to favorites
9/12/2011
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • GraphicsDeviceManager.Current.GraphicsDevice=null
    1 Posts | Last post October 13, 2013
    • when debug:GraphicsDeviceManager.Current.GraphicsDevice=null
  • I cant run sample
    1 Posts | Last post July 29, 2011
    • This sample requires Silverlight 5 (as i know, is still in beta)? I have installed Silverlight 4
  • I am not able to see any Cube
    2 Posts | Last post May 22, 2011
    • I am able to run this application successfully but I am not able to see any Cube on screen. Only blue screen appears with Yaw, Pitch and Roll.
      
      Regards
      Rushi
      
      
    • Your display driver is probably being blocked. According to Microsoft:
      
      "For security and compatibility reasons, some drivers will be blocked by default in the browser. All Windows XP Display Driver Model (XPDM) drivers on Windows XP, Windows Vista, and Windows 7 will be blocked by default. If a driver is blocked, permissions can be granted by the user through the Microsoft Silverlight Configuration settings."
      
      Right-click on the app and select the Silverlight menu. On the Permissions tab of the Microsoft Silverlight Configuration, select the blocked driver entry and click the Allow button. Then click OK and refresh the page.
  • "test.cs" could not be opened
    3 Posts | Last post May 03, 2011
    • Simply opening this solution and attempting to build it, it returns an error "Source file '{full path to project}\test.cs' could not be opened ("Unspecified error')".  I am using VS2010 Premium with SP1 installed.  What do I need to do to make this work?
    • I have the same problem.
      
    • It appears test.cs is not actually needed.  Right-click it in Visual Studio and click "Exclude from project."  Then it'll build.