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 Single, _
    ByVal greenOutput() As Single, _
    ByVal blueOutput() As Single _
)
C# public static void ProjectCubeMap(
    int order,
    CubeTexture cubeMap,
    float[] redOutput,
    float[] greenOutput,
    float[] blueOutput
);
Managed C++ public: static void ProjectCubeMap(
    int order,
    CubeTexture *cubeMap,
    float redOutput __gc[],
    float greenOutput __gc[],
    float blueOutput __gc[]
);
JScript .NET public static function ProjectCubeMap(
    order : int,
    cubeMap : CubeTexture,
    redOutput : float[],
    greenOutput : float[],
    blueOutput : float[]
);

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 System.Single[]. Output spherical harmonic (SH) vector for the red component.
greenOutput System.Single[]. Output spherical harmonic (SH) vector for the green component.
blueOutput System.Single[]. Output spherical harmonic (SH) vector for the red 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