Microsoft DirectX 9.0 SDK Update (October 2004)

PrtEngine.SetSamplingInfo Method

Language:

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

Sets sampling properties used by the precomputed radiance transfer (PRT) simulator.

Definition

Visual Basic .NET Public Sub SetSamplingInfo( _
    ByVal numberRays As Integer, _
    ByVal isUsingSphere As Boolean, _
    ByVal isUsingCosine As Boolean, _
    ByVal isAdaptive As Boolean, _
    ByVal adaptiveThreshold As Single _
)
C# public void SetSamplingInfo(
    int numberRays,
    bool isUsingSphere,
    bool isUsingCosine,
    bool isAdaptive,
    float adaptiveThreshold
);
Managed C++ public: void SetSamplingInfo(
    int numberRays,
    bool isUsingSphere,
    bool isUsingCosine,
    bool isAdaptive,
    float adaptiveThreshold
);
JScript .NET public function SetSamplingInfo(
    numberRays : int,
    isUsingSphere : boolean,
    isUsingCosine : boolean,
    isAdaptive : boolean,
    adaptiveThreshold : float
);

Parameters

numberRays System.Int32. Number of light rays to direct at each sample. Must be greater than zero.
isUsingSphere System.Boolean. Set to true if samples will be computed over a full sphere. Set to false if samples will be computed over a hemisphere.
isUsingCosine System.Boolean. Set to true to use a cosine weighting of samples. If both isUsingCosine and isUsingSphere are true, the method will fail.
isAdaptive System.Boolean. Must be false. Adaptive sampling is currently not implemented.
adaptiveThreshold System.Single. Ignored.

Remarks

Exceptions
InvalidCallException The method call is invalid. For example, a method's parameter might contain an invalid value.
NotImplementedException Leave Site Not implemented.
OutOfMemoryException Leave Site Microsoft® Direct3D® could not allocate sufficient memory to complete the call.


© 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