O'Reilly logo

Instant Silverlight 5 Animation by Nick Polyak

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

The moving prism application

We can spice up the model a little bit by creating a rotating prism, instead of the rotating triangle. The MovingPrismApplication project is located under the SAMPLES\CODE\ MovingPrismApplication folder.

When running MovingPrismApplication, do not forget to set the driver permissions for that application, just as you did for MovingTriangle.

The following is a screenshot of the moving prism:

The moving prism application

The only differences from the MovingTriangle project are the following:

  • The fourth vertex is being created shifted along the Z-axis from the rest of the vertices:
    // the 4th vertext to create the prism Vector3 zVertex = new Vector3(0, ...

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