BoneWeightCollection.NormalizeWeights Method (Int32)

Normalizes the contents of the bone weights list.

Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics
Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)

Syntax

public void NormalizeWeights (
         int maxWeights
)

Parameters

  • maxWeights
    Maximum number of weights allowed.

Remarks

Normalization does the following:

  • Sorts weights such that the most significant weight is first.
  • Removes zero-value entries.
  • Discards weights with the smallest value until there are maxWeights or less in the list.
  • Adjusts values so the sum equals one.

Throws InvalidContentException if all weights are zero.

See Also

Reference

BoneWeightCollection Class
BoneWeightCollection Members
NormalizeWeights
Microsoft.Xna.Framework.Content.Pipeline.Graphics Namespace

Platforms

Windows XP SP2, Windows Vista