Welcome to the DirectAnimation SDK
(c) 1997 Microsoft Corporation. All rights reserved. Terms of Use.
This document provides late-breaking or other information that supplements the Microsoft DirectAnimation documentation.
Requirements, Dependencies, and Installation
DirectAnimation is released as an integrated component of IE4 minimal install. This provides unprecedented animation and multimedia capabilities built into a major Internet browser (no special download is needed). Furthermore, DirectAnimation is integrated with DHTML, and hence is especially suitable for adding compact and lightweight animation effects to web pages.
DirectAnimation is the component of the DirectX family of APIs that provides rich animation and integrated media support for Web pages, CD-ROM titles, and multimedia applications. DirectAnimation provides a unified and comprehensive support for the different media types, including: 2D vector graphics, 3D graphics, sprites, audio, video, and a rich time and event model that applies uniformly across the different media types. DirectAnimation is a COM API and an underlying engine/run time whose functionally can be accessed in different ways by different user groups:
The supported media types are as follows:
- 2-D images (.bmp, .gif, .png, and .jpeg files)
- 3-D models (.x and VRML files)
- Sounds (.wav and .midi files)
- Movies (.avi, .mpeg, and .mov files)
- Text
In the case of movies and sounds, additional media formats can be supported by supplying DirectShow CODECs for those formats.
One of the key DirectAnimation classes is the Behavior class. Different types of media are incorporated into the animation by encapsulating them as DirectAnimation Behavior objects. Behavior objects can be used interchangeably, and have a number of methods applied to them, independent of the media type they are encapsulating. Of course, you can still access methods that are specific to the different types of behaviors, based on the type of media.
The minimum requirements in order to run DirectAnimation applications and content are as follows:
The DirectAnimation runtime comes as part of IE4 minimal install. DirectAnimation will also be part of Windows 98 and future releases of Windows NT.
The DirectAnimation SDK includes an extensive set of documents and samples that illustrate the breadth and depth of functionality, it is available for download, and for browsing.
For a white paper on DirectAnimation, check the "Getting Started" document.
Significant enhancements since the Beta release have been the addition of support for scripting languages (JScript and VBScript), as well as the integration of the multimedia controls (in Internet Explorer 4.0) with the DirectAnimation runtime. In addition to the multimedia controls, a windowed control is provided which can be used with IE 3.02 and with Visual Basic. With the addition of the multimedia controls, content developers can now access DirectAnimation functionality through different levels, from PARAM tags at the control level, to scripting, to raw COM.
The DirectAnimation Java classes are dependent on the version of the Java VM that ships with the Microsoft SDK for Java 2.0 and Internet Explorer 4.0. We used Microsoft Visual J++ 1.1 to author the Java samples.
In order to use DirectAnimation Java-based content within Netscape's Navigator, follow these instructions:
Microsoft has made a plug-in available to users of Netscape Navigator 2.02 and 3.0 which allows them to make use of the Microsoft Java VM. Netscape Communicator is not yet supported because of changes made to the plug-in interface. Note that this plug-in does not replace the Netscape Java VM, but it does provide access to the MS VM through the use of the <embed> tag. To get an applet up and running under Netscape, follow these simple steps:
- Get the plug-in from the Java SDK 2.0 and place it in your Navigator\Program\Plugins directory.
- Install the required MS Java VM, if you havent already.
- Change the applet tag in your source html from this:
<applet code="foo.class" width=100 height=100></applet>
To this:
<embed src="foo.class" width=100 height=100></embed>
In general, we recommend that you upgrade to the DirectX 5 set of video drivers. Several visual artifacts that appear under older versions of video drivers disappear with the newer set.
The following is a list of current known problems. We strongly encourage you to send us mail if you find a problem (dxmbug@microsoft.com). There are newsgroups set up to allow DirectAnimation content developers to discuss issues and ideas, however mailing a bug description is the only sure way to get a fix for a bug.
General
Graphics
Audio
3-D
Movies
movieImport = m.ImportMovie("http://movie.avi");
movieImg = movieImport .Image;
// This is the workaround
movieBBox = movieImg.BoundingBox;
solidImg = m.SolidColorImage(m.White);
solidImg = solidImg.Crop(movieBBox.Min,movieBBox.Max);
movieImg = m.Overlay(movieImg,solidImg);
Controls
Using Visual Basic
Using C++
We've set public news groups on the Microsoft Public News Server, as a forum for the DirectAnimation user community. We encourage you to post all questions related to the use of DirectAnimation on the appropriate news group:
- microsoft.public.multimedia.directx.danimation.controls is for users of the DirectAnimation controls.
- microsoft.public.multimedia.directx.danimation.programming is for programmers of the DirectAnimation API.
For reporting bugs against the preview version, send mail to dxmbug@microsoft.com. When you do so, make sure to be specific about the OS, PC/graphics card, version of IE4, and specific host language/control that you're using to access DirectAnimation.
For other issues or comments that are not appropriate for the forums above, send mail to dxmbeta@microsoft.com.