Generates a three-dimensional (3-D) explosion effect. The faces of the 3-D model rotate and tumble as they move outward in the direction of their normal. The explosion characteristics and rotations are adjustable. The tumbling is optional.
Note To use this transform, you need to have Microsoft® DirectX® Media 6, Microsoft Windows® 98 Second Edition, or Windows 2000 installed.
Transform Specifications
The following table contains the information you need in order to use this transform in C++ and script.
Class identifier (CLSID) | CLSID_Explode |
---|---|
Globally unique identifier (GUID) | 141DBAF1-55FB-11D1-B83E-00A0C933BE86 |
Programmatic identifier (ProgId) | DX3DTransform.Microsoft.Explode |
Category identifier (CATID) | CATID_DX3DTransform |
Custom interfaces | IExplode |
Supported interfaces | IDXEffect |
Inputs | One required of type Direct3DRMMeshBuilder3. |
Output | Direct3DRMMeshBuilder3 |
Custom Properties
The following table lists the custom properties that control the transform output.
Property | Type | Default | Description |
---|---|---|---|
Tumble | Boolean | TRUE | If TRUE, causes the faces to tumble as they move rather than maintain the orientation of their normal. |
MaxRotations | integer | 2 | The maximum rotations of a face as the faces move away from their original positions. The actual number of rotations and the direction of the rotation for any given face is randomly selected. |
FinalVelocity | float | 2.0 | Controls the speed of the faces as they move. |
PositionJump | float | 0.5 | An initial displacement for all fragments at the start, causing the explosion to initially appear faster. |
DecayTime | float | 0.1 | The decay time of the explosion. This controls how quickly the fragments slow down to the final velocity after the start of the explosion. This value must be greater than 0. |
Remarks
The magnitude of the distance of each fragment from the original position is given by the following equation.
Delta = FinalVelocity * t + PositionJump + PositionJump * e^(-t/DecayTime)Where t is a number from 0.0 through 1.0.
Top of Page
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.