Advertisement

Silverlight 3 Bouncing plane gratuitous demo

I’ve received a few emails about updated code for the Scott Guthrie MIX09 keynote demo referred to as “bouncing plane” Silverlight demo.  A screenshot of this demo is seen here to refresh your memory:

Bouncing plane Silverlight demo

There really isn’t anything ‘new’ about this demo code for SL3, other than being recompiled.  Perhaps the only real change is to accommodate the new requirement that pixel shaders are resources of the project.  You’ll see the Effect1.cs code file where the constructor code for the shaders uses:

   1: pixelShader = new PixelShader();
   2: pixelShader.UriSource = new Uri("/BouncingPlane;component/ShaderBytecode/Ripple.fx.ps", UriKind.Relative);

If you are writing shaders, I’d refer you to my post talking which has some Visual Studio code snippets and item templates so you can say Add New Item…Silverlight Pixel Shader and get the appropriate stub code already there for you!

Here’s the Visual Studio project for Silverlight 3 for the bouncing plane demonstration: BouncingPlane_SL3.zip.

UPDATE: Hosting a demo of it (minus the video, so you'll get an error if you choose video) here: Bouncing Plane Silverlight Demo.


This work is licensed under a Creative Commons Attribution By license.

  1. 7/21/2009 6:12 PM | # re: Silverlight 3 Bouncing plane gratuitous demo
    No live demo? :-)
  2. 7/22/2009 3:11 PM | # re: Silverlight 3 Bouncing plane gratuitous demo
    I second the need for a live demo :).
  3. 8/1/2009 2:31 AM | # re: Silverlight 3 Bouncing gratitous demo
    please put your demo into yotube
  4. 8/8/2009 12:54 AM | # re: Silverlight 3 Bouncing plane gratuitous demo
    Come on!

    something cool in sivlerlight and you make us compile it?!?

    Isn't the whole point of silverlight to be low deploy overhead?


    Not very webby of you.
  5. 8/8/2009 7:58 AM | # re: Silverlight 3 Bouncing plane gratuitous demo
    Fred/Camera/John/All -- okay, okay, link updated with live demo. Video portion won't work because I want to save some bandwidth :-)
  6. Gravatar
    8/30/2009 8:18 AM | # re: Silverlight 3 Bouncing plane gratuitous demo
    And what is the point of this ?
  7. 8/30/2009 10:32 PM | # re: Silverlight 3 Bouncing plane gratuitous demo
    perfect sample!

 
Please add 2 and 2 and type the answer here:
First time here? You are looking at the most recent posts. You may also want to check out older archives. Please leave a comment, ask a question and consider subscribing to the latest posts via RSS or email. Thank you for visiting! (hide this)