Microsoft DirectX 8.1 (Visual Basic)

D3DXSkinMesh.SetBoneInfluence

Sets the bone influence for a bone in the skin mesh.

object.SetBoneInfluence( _ 
    Bone As Long, _ 
    NumInfluences As Long, _ 
    Vertices As Long, _ 
    Weights As Single)

Parts

object
Object expression that resolves to a D3DXSkinMesh object.
Bone
Bone for which to set the influences.
NumInfluences
Number of influences to set for the bone.
Vertices
The list of vertices used to set the influences (weights).
Weights
The list of weights to set for the provided vertices. These values are used to programmatically fill in the skinning information for the skin mesh.

Error Codes

If the method fails, an error is raised and Err.Number can be set to E_OUTOFMEMORY.

For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.

Remarks

Using this method provides a mechanism to indicate how the given bone effects the given vertices. This method should be called for each bone that effects the mesh.