Skip to content

Character animation, VAT and material state ​

The 0.3.0 examples use a shared infantry, heavy and spellcaster kit. Skeletal and VAT presentations observe gameplay state; neither animation nor a material owns Health, damage or entity death.

Original Arcane Sentinel measurements and reference-machine results remain in 0.2.0 · Published. They describe that asset and run only, not the new castle characters.

Compare the same game ​

Open L_MF_CastleHordeDefense, then L_MF_CastleHordeDefenseVAT from the library. Both use the same defense scenario. The first bounds nearby skeletal enemies and uses VAT farther away; the second renders its enemies through VAT. The player remains skeletal in both.

Skeletal-near castle horde defense during combat using the shared character and gameplay configuration

VAT castle horde defense during the paired scenario with the same player and environment

These are separate game captures, not a synchronized benchmark. Use actual backend counts and a repeatable camera/run to measure cost on your hardware.

Start with the assigned profile ​

Select the saved stage, expand Character Profiles or Hero Profile, and open the referenced Character Presentation Profile. Use assigned assets, not an older experiment with a similar filename.

UMFCharacterPresentationProfile maps:

  • Skeletal: rigged mesh, animation class and relative mesh transform;
  • Equipment: the separate equipment definition;
  • VAT: fixed-topology mesh, material, position/normal textures and atlas rows per frame;
  • Playback: sample rate, clip ranges, blend duration and locomotion speeds; and
  • Clip events: release/contact time to align an attack with gameplay.

The public sample implementation is in Source/MassForgeSamples/Public/CharacterAnimation. Blueprint helpers include Can Transition, Resolve Material Flags, Build Instance Custom Data and Build Temporal Instance Custom Data. These are sample presentation utilities, separate from the core entity/ability APIs.

Make an attack readable ​

  1. Gameplay chooses a target and starts an action.
  2. Presentation enters its attack/cast clip and faces the target.
  3. The authored release marker starts projectile flight or contact.
  4. The Mass projectile processor advances flight; presentation reads snapshots.
  5. Impact resolves damage/effects in the safe gameplay phase.
  6. Committed Health/state drives hit feedback or death. The body retires after death presentation, not on attack start.

Do not apply damage on input and animate a disconnected projectile afterward. See Projectiles.

Skeletal and VAT share state, not vertex processing ​

The skeletal path plays rigged animation sequences. VAT samples baked positions and normals for fixed mesh topology. Replacing a VAT mesh without rebaking textures and lookup is invalid, even if its shape is similar.

The base states are Idle, Move, Attack, Cast, Hit, Jump and Death. Appended castle states include Walk, Strafe Left/Right, Ranged Attack, Stun, Jump Takeoff and Landing; existing enum ordinals remain intact.

Loop endpoints and release times are explicit profile data. bLoopEndpointDuplicatesStart distinguishes a duplicated endpoint from a unique final frame. In-place locomotion cadence follows gameplay speed; animation does not move authoritative collision.

Instance payload and material states ​

The legacy material contract has 12 floats: phase, play rate, current/previous frame ranges, transition alpha, animation state, health ratio, palette, material flags and effect intensity. The castle extension supports 16-float playback data and optional previous-frame data for motion vectors. Read Custom Data Float Count and Use Previous Frame Custom Data from the assigned profile; do not hard-code 12 for every character.

Use Build Temporal Instance Custom Data with the last successful per-instance payload when requested. History follows stable instance identity, not whichever enemy occupies an array index this frame.

Material flags are Damage Flash, Frozen, Burning, Shielded, Selected and Dissolving. Combine them through the helper rules. Use per-instance data rather than a dynamic material instance per enemy. Palette/state visuals report gameplay; they do not themselves apply a status effect.

Replacing a character ​

  1. Import and validate skeleton, weights and animation sequences.
  2. Check facing, scale, root offset, equipment and loops in the skeletal path first.
  3. Bake position/normal VAT from the same final topology and motion; preserve lookup/atlas conventions.
  4. Create a project-owned presentation profile with matching assets, ranges, sample rate and release markers.
  5. Validate the profile for its backend before assignment.
  6. Assign it on the saved stage. Test idle, movement, turns, attacks, hits, jumps and death near and far.
  7. Check material flags, bounds, temporal history, pause/restart and cooked content. Look for clipping, split meshes, backwards facing and false death poses.

Evidence boundaries ​

The current geometry revision has rendered UE 5.8 captures and separate horde outcome/collision probes. A screenshot is not proof of animation quality over time, throughput or every engine version. Final visual acceptance and the refreshed native-content matrix remain release gates.

Never equate allocated, simulated, represented, skeletal and VAT animated counts. One million allocated entities does not imply one million animated bodies or a universal FPS guarantee. Profile your content, hardware and active workload.

MassForge v0.3.0 · Blueprint and C++ documentation.