Introduction

Animation involves changing media over time or in reaction to user input. Media includes sound, two-dimensional (2-D) images, and three-dimensional (3-D) objects, along with their corresponding camera and lights, colors, textures, and other visual or audio properties. Microsoft® DirectAnimation® enables developers to produce sophisticated animation from a relatively small number of classes and methods.

DirectAnimation supports a broad set of functionality for mixed-media animation, including:

With DirectAnimation, you can create a rich interactive animation that draws on both synthetic media (such as 3-D graphics) and recorded media (such as audio and video). For example, you can navigate a 3-D space to inspect a collection of museum items or commercial products. You can implement spatial navigation by using position and orientation to index different items represented as images and video clips.

There are three basic ways to use DirectAnimation. HTML authors can integrate multimedia using the DirectAnimation controls. The controls can be further enhanced with Microsoft JScript™ and/or Microsoft Visual Basic® Scripting Edition (VBScript). VBScript and JScript writers and Java applet writers can program animations for Web pages. Finally, Java, Visual Basic, and C++ application programmers can develop Microsoft ActiveX® controls or full applications. Thus, DirectAnimation provides a multimedia API and run time that scales from the HTML author to the C++ programmer.

The basic class in DirectAnimation is called a behavior. Use the DirectAnimation classes and methods to construct time-varying, interactive behaviors. You can join sequences of behaviors to produce complex, flexible animation from just a few operations.

Behaviors that are rendered for presentation to the user are called media behaviors. These include:

Other behaviors control the attributes of the media behaviors, or the way they are rendered to the screen. For example:


Top of Page Top of Page
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.