Building Advanced 3D Animations with Silverlight 2.0

Silverlight is a new cross-browser plug-in from Microsoft that brings the power of the .NET Framework to bear on an area that was previously reserved for Flash or Java Applets. Silverlight also supports a range of .NET-compliant languages, including Visual Basic and C#, so you don’t have to learn a new language to build rich media applications.

In the April 2008 issue of MSDN Magazine, Declan Brennan shows you how he built a Silverlight-based Web application that folds 3D polyhedron shapes from a flat template.

Don’t forget to browse the sample code in our online code library.

Comments (1)

  1. Declan Brennan (the author) says:

    Just after the article was published, a Russian called Vjeran Ivicic pointed out a globalisation issue that I had overlooked. If you are in a culture that does not use "." as a decimal seperator, the only change needed is to the following parse call in DihedralCache.processLine() in graph.cs:

    float angle = float.Parse(line.Substring(p + 1),new System.Globalization.CultureInfo("En-US"));

    This has already been fixed on my site and may have been updated on the msdn site by the time you read this. So if you don’t get the problem, just ignore this note.