Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Note
This method is available only when developing for Windows.
Normalizes the contents of the bone weights list.
Syntax
'Declaration
Public Sub NormalizeWeights ( _
maxWeights As Integer _
)
public void NormalizeWeights (
int maxWeights
)
public:
void NormalizeWeights(
int maxWeights
)
Parameters
- maxWeights
Type: Int32
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.
Requirements
Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics
Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)
See Also
Reference
BoneWeightCollection Class
BoneWeightCollection Members
NormalizeWeights
Microsoft.Xna.Framework.Content.Pipeline.Graphics Namespace
Platforms
Windows 7, Windows Vista, Windows XP