Microsoft DirectX 8.1 (Visual Basic)

D3DXSkinMesh.GetMaxVertexInfluences

Returns the maximum number of vertex influences.

object.GetMaxVertexInfluences() As Long

Parts

object
Object expression that resolves to a D3DXSkinMesh object.

Return Values

Maximum number of influences effecting any single vertex in the skin mesh.

Error Codes

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

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

Remarks

Each vertex can be affected by n bones. If this method returns a value of 17, up to 17 bones effect a single vertex of the skin mesh. So, there are 17 separate weights on that vertex which add up to 1.