Textures an image onto a three-dimensional (3-D) sheet and spins that sheet around a specified axis. If there is only one image input, it is textured onto both sides of the sheet. If there are two image inputs, the first is textured onto a forward facing sheet and the second is textured onto a backward facing sheet. The dimensions of the sheet have the same aspect ratio as the images, with their longer extent spanning the range [-1,1]. The sheets are centered at the origin in the x-y plane. Only the forward facing sheet shows, even when the backward facing sheet has a larger size.
You can also specify the number of 180-degree rotations that the sheet makes around the axis.
Note To use this transform, you need to have 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_Spin |
---|---|
Globally unique identifier (GUID) | 3D2807C2-43DE-11D2-9900-0000F803FF7A |
Programmatic identifier (ProgId) | DX3DTransform.Microsoft.Spin |
Category identifier (CATID) | CATID_DX3DTransform |
Custom interfaces | IDXTSpin |
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 |
---|---|---|---|
SpinX | float | 0.0 | The x-component of the spin vector. |
SpinY | float | 1.0 | The y-component of the spin vector. |
SpinZ | float | 0.0 | The z-component of the spin vector. |
Flips | integer | 1 | The number of 180-degree spins. |
Top of Page
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.