Monthly Archives: May 2008

Water Ripples with Silverlight 2

Hi all

After attending mix I have been playing around with Silverlight a bit.. Testing deep zoom and collections.. And while I was browsing around on different blog’s I came across Jo Stegmans Blog, where I could create a dynamic image, and create an png from it.. This inspired me to try to do some animations. This combined with an old algorithm to create 2D Water. I was able to make this. Water rippler..

See the finished result here: Click here

I also have to say thx to Rick Barraz and this blog where I borrowed the Decode BMP algo from :)

This is kind of old school thing but it works great, and I also added some cheesy background music, just to get the right mood :)

The experiences that I have drawn from this is that to do this today cost ha hell og a lot cpu.. Why? Because we have not any direct manipulation methods of the BitmapImage class, and to get your image on to the screen you have to create an encoded stream, in this case of a png Image.

Enjoy

Lars Godejord

Sources:
>Jo Stegmans blog
>2d Water algorithem
>Rick Barraz’s blog

Posted in Front-end, Silverlight | Tagged , , , , | 9 Comments