Colored (Non-Textured) 3D Cube Sample (Silverlight)

This sample demonstrates how to create and automatically rotate a 3D cube whose surfaces are solid colors using Silverlight 5 beta.If you update the shader files in this sample, run the CompileShaders.bat file (with DirectX SDK installed) to recompile the shader files and see the

C# (54.5 KB)
3,190 times
Add to favorites
E-mail Twitter Digg Facebook
Sign in to ask a question

  • GraphicsDevice
    3 Posts | Last post April 13, 2012
    • I have an error:
      GraphicsDeviceManager.Current.GraphicsDevice is always null. what am I doing wrong?
    • Hi,
      you should allow 3D graphics acceleration on the plugin page settings. Then it works
      best regards
    • Hi,
      How to capture click on a cube.
      Let's take i have a 5 cubes on a drawing surface control. Now, how do i capture a click event on a particular cube? 
      Can you please help me in this...
      Nagarjuna Dilip