Microsoft DirectX 9.0 SDK Update (October 2004)

SphericalHarmonics.ProjectCubeMap Method

Language:

Note: This documentation is preliminary and is subject to change.

Projects a function represented on a cube map into spherical harmonics (SH).

Definition

Visual Basic .NET Public Shared Sub ProjectCubeMap( _
    ByVal order As Integer, _
    ByVal cubeMap As CubeTexture, _
    ByVal redOutput As GraphicsStream, _
    ByVal greenOutput As GraphicsStream, _
    ByVal blueOutput As GraphicsStream _
)
C# public static void ProjectCubeMap(
    int order,
    CubeTexture cubeMap,
    GraphicsStream redOutput,
    GraphicsStream greenOutput,
    GraphicsStream blueOutput
);
Managed C++ public: static void ProjectCubeMap(
    int order,
    CubeTexture *cubeMap,
    GraphicsStream *redOutput,
    GraphicsStream *greenOutput,
    GraphicsStream *blueOutput
);
JScript .NET public static function ProjectCubeMap(
    order : int,
    cubeMap : CubeTexture,
    redOutput : GraphicsStream,
    greenOutput : GraphicsStream,
    blueOutput : GraphicsStream
);

Parameters

order System.Int32. Order of the spherical harmonic (SH) evaluation. Must be in the range of SphericalHarmonics.MinimumOrder to SphericalHarmonics.MaximumOrder, inclusive. The evaluation generates order2 coefficients. The degree of the evaluation is order - 1.
cubeMap Microsoft.DirectX.Direct3D.CubeTexture. A CubeTexture object used as the source cube map.
redOutput Microsoft.DirectX.GraphicsStream. Output spherical harmonic (SH) vector for the blue component.
greenOutput Microsoft.DirectX.GraphicsStream. Output spherical harmonic (SH) vector for the green component.
blueOutput Microsoft.DirectX.GraphicsStream. Output spherical harmonic (SH) vector for the blue component.

Remarks

Exceptions
InvalidCallException The method call is invalid. For example, a method's parameter might contain an invalid value.


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center