DirectAnimation Animated Header --Getting Started DirectAnimation Animated Header --Getting Started* Microsoft DirectAnimation SDK
*Contents  *Index  *Topic Contents
*Previous Topic: Microsoft DirectAnimation SDK
*Next Topic: Guide to Samples

Getting Started


This section contains the following topics.

What is DirectAnimation?

Microsoft® DirectX® media is a family of high-level APIs and multimedia controls that provide rich support for animation, streaming, and integration of the different media types. Microsoft DirectAnimation™ is the DirectX media component that creates Web animation and integrates dynamic HTML.

DirectAnimation is a COM API and an underlying run time that different users can access in different ways. HTML authors can add multimedia and animation to their pages by using the DirectAnimation controls, without programming at all. You can also animate HTML pages by using Microsoft Visual Basic® Scripting Edition (VBScript), JScript and Java applets. Finally, Java, Visual Basic, and C++ application programmers can develop ActiveX™ Controls or full applications. Thus, DirectAnimation provides multimedia tools that scale from the HTML author to the C++ programmer.

The DirectAnimation SDK provides documentation, samples, and tutorials to help users get started with DirectAnimation.

You can implement DirectAnimation by using the DirectX foundation API and DirectShow™. For a guide on where to find out about particular DirectShow features, see the DirectShow Documentation. For more information about the DirectX foundation components, see http://www.microsoft.com/DirectX/.

Key features of the DirectAnimation API are:

DirectAnimation provides services that make it easy to build high-performance animation in a variety of environments, such as HTML, VBScript and JScript, Java, and Microsoft Visual C++®. Components include controls for HTML environments and a COM-based animation library accessible from any programming or scripting language.

A set of multimedia run-time controls supply scripting access to some of the DirectAnimation API functions and libraries. The Path, Sequencer, Sprite, and Structured Graphics controls enable you to deliver impressive animation, image, and sound content over the Web with very little code. See DirectAnimation Multimedia Controls for a description of the controls and how to use them. Or see samples to view the control samples.

The following diagram shows the DirectAnimation architecture. The ActiveMovie Control provides an interface to some of the DirectShow API functions. The multimedia controls provide an interface to some of the DirectAnimation library. You can also access the library directly. The DirectAnimation library, in turn, uses the DirectShow API, the DirectX foundation, and certain operating-system services. SG stands for Structured Graphics control and Seq stands for the Sequencer control.

DirectAnimation architecture

Who Should Use DirectAnimation?

Like other system services such as window management or client/server frameworks, DirectAnimation's functionality supports a number of applications. This documentation focuses on Internet applications.

The multimedia authoring community includes people skilled in a variety of disciplines. From graphics system programmers to creative professionals, Web developers come from many backgrounds and bring as many approaches to the task of producing multimedia for the Web.

Web multimedia developers can be grouped by the tools they use:
Developer Tools
Creative professional Painting software, scanners, cameras, image editing software, sound editors
Web site builder Authoring tools for HTML (Microsoft FrontPage®, for example)
Script writer JScript, VBScript, HTML source
Application developer C, C++, Visual Basic, Java, SQL, Active Server, CGI scripts
Graphics systems programmer Low-level languages (C, C++) and graphics APIs

DirectAnimation serves each of these developers. The multimedia client controls are the quickest approach for common applications, such as sprite sequences or line drawing. The scripting interface for JScript and VBScript adds many animation features in a simple, high-level way. Finally, you can use Java or C++ (or any other COM-enabled language) to access the media and animation library with the full power of an object-oriented, compiled language.

The following table shows the typical ways different developers would access DirectAnimation.
Developer Accesses DirectAnimation through...
Creative professional DirectAnimation controls
Web site builder DirectAnimation controls, DirectAnimation scripting
Script writer DirectAnimation scripting, DirectAnimation for Java
Application developer DirectAnimation for Java, DirectAnimation scripting, and C++
Graphics systems programmer DirectAnimation through native COM, C++, DirectX foundation, and DirectShow

What Do You Need to Use DirectAnimation?

Internet Explorer 4.x contains all the software necessary to view multimedia created with DirectAnimation.

The following list shows what you need to create presentations with DirectAnimation:

How Can You Use DirectAnimation?

You can use DirectAnimation in the following ways:

You can access DirectAnimation from JScript, VBScript, Visual Basic, and C++ through the scripting (COM) interfaces directly. Or, you can add DirectAnimation content to your Web pages by using the DirectAnimation controls and setting parameters on these controls; that is, without programming at all. See the DirectAnimation Controls section for more details. Using the DirectAnimation controls directly, or using JScript or VBScript, enables you to describe inline animations with HTML. Such animations can integrate with Dynamic HTML by being windowless on the page (overlaying other elements such as text) or by driving the properties of other entities on the page. You can also import HTML-rendered text and use it as a texture in an animation.

There is a special Java binding for DirectAnimation provided on top of the COM API that takes advantage of specific Java features. For example, operations are overloaded, so that several COM methods that perform similar functions but use different parameter types are given the same name in Java.

The DirectAnimation Samples

The DirectAnimation SDK includes a wide variety of samples to illustrate using DirectAnimation from the different host languages. For each host language there are four categories of samples, as follows:

Documentation Roadmap

The DirectAnimation documentation is divided into several sections. To help you find the information you need, the following list describes the content of each section and when you will typically use it. For the most recent updates to this documentation, consult the Microsoft DirectX Web site at http://www.microsoft.com/DirectX/.

The DirectAnimation documentation does not include material on how to program in Java, C/C++, or Visual Basic. Consult the appropriate programming documentation for this information.

© 1998 Microsoft Corporation. All rights reserved. Terms of Use.

*Top of Page