CNA Samples

CPU Skinning

Ported from Microsoft's XNA 4.0 CPU Skinning Demo.

Source for this sample on GitHub ↗

An animated armored character against a black background, with FPS and GPU skinning labels. Play ▸

Opens in a new tab.

About this sample

The same animated character is processed into two model assets. The GPU path uses a SkinnedEffect; the CPU path blends four bone transforms per vertex, uploads the resulting vertices each frame and draws them with BasicEffect. The sample displays the active mode and frame rate.

Controls

ActionControl
Switch CPU and GPU skinningRight click or tap
Rotate the cameraLeft mouse button and drag, or touch drag