Movement and Animation

If you use the DrawingSurface control to paint only a static scene, you're missing out of the real advantages of Silverlight 3D. Life becomes much more interesting when you start grabbing hold of your objects and moving them.

There are many reasons for combining 3D rendering with animation. Perhaps you simply want to let the user turn an object around to see it from different angles. Or maybe you plan to build a complete first-person game that lets the user walk through a virtual world. Either way, you start with the same basic building blocks that you'll learn about in the following sections.

Moving a Shape

The trick to moving or rotating any shape—whether it's a single triangle, the relatively simple textured cube, or ...

Get Pro Silverlight 5 in VB now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.