O'Reilly logo

Pro Silverlight 5 in VB by Matthew MacDonald

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required