PrtEngine.ComputeSurfSamplesBounce Method

Language:

Computes precomputed radiance transfer (PRT) samples for an arbitrary point (and normal vector).

Definition

Visual Basic Public Sub ComputeSurfSamplesBounce( _
    ByVal bufferIn As PrtBuffer, _
    ByVal sampleLocations() As Vector3, _
    ByVal sampleNormals() As Vector3, _
    ByVal bufferOut As PrtBuffer, _
    ByVal dataComputed As PrtBuffer _
)
C# public void ComputeSurfSamplesBounce(
    PrtBuffer bufferIn,
    Vector3[] sampleLocations,
    Vector3[] sampleNormals,
    PrtBuffer bufferOut,
    PrtBuffer dataComputed
);
C++ public:
void ComputeSurfSamplesBounce(
    PrtBufferbufferIn,
    array<Vector3>^ sampleLocations,
    array<Vector3>^ sampleNormals,
    PrtBufferbufferOut,
    PrtBufferdataComputed
);
JScript public function ComputeSurfSamplesBounce(
    bufferIn : PrtBuffer,
    sampleLocations : Vector3[],
    sampleNormals : Vector3[],
    bufferOut : PrtBuffer,
    dataComputed : PrtBuffer
);

Parameters

bufferIn Microsoft.DirectX.Direct3D.PrtBuffer
A PrtBuffer object that represents the 3-D object from the previous light bounce. This input buffer must have the proper number of color channels allocated for the simulation.
sampleLocations Microsoft.DirectX.Vector3[]
Number of sample locations.
sampleNormals Microsoft.DirectX.Vector3[]
Position for each sample.
bufferOut Microsoft.DirectX.Direct3D.PrtBuffer
A PrtBuffer object that models the direct lighting contribution to the point, using the spherical harmonic (SH) approximation. This output buffer must have the proper number of color channels allocated for the simulation.
dataComputed Microsoft.DirectX.Direct3D.PrtBuffer
A PrtBuffer object that is the running sum of all previous bufferOut outputs.

Remarks

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


Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

Feedback? Please provide us with your comments on this topic.