forge-pipeline-morph-animations

Load .fmesh and .fanim morph assets and apply per-vertex deltas in SDL GPU scenes.

Updated Mar 17, 2026
One-click install
npx skills add https://github.com/code-review-benchmark/coderabbit_prs2__forge-gpu__coderabbit__PR323__20260317 --skill forge-pipeline-morph-animations
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: forge-pipeline-morph-animations
Source: https://github.com/code-review-benchmark/coderabbit_prs2__forge-gpu__coderabbit__PR323__20260317/tree/main/.claude/skills/forge-pipeline-morph-animations
Command: npx skills add https://github.com/code-review-benchmark/coderabbit_prs2__forge-gpu__coderabbit__PR323__20260317 --skill forge-pipeline-morph-animations

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enable real-time morph target animation in SDL GPU projects by integrating morph data, evaluating weights, and applying per-vertex deltas via a ForgeSceneMorphModel. This solves the lack of vertex-level animation capability for deformable meshes in real-time graphics pipelines.

Core Features & Use Cases

  • Morph loading and parsing: Load .fmesh and .fanim assets and decode morph targets with the Forge pipeline tools.
  • CPU-based delta blending: Compute per-vertex position and normal deltas on the CPU and blend according to animation weights.
  • GPU upload & shading: Upload blended deltas to GPU storage buffers and apply in the vertex shader for displaced rendering.
  • Use Case: Add expressive facial or character morph animations to a real-time SDL GPU scene with shadow and main passes using ForgeSceneMorphModel.

Quick Start

Load a morph model with forge_scene_load_morph_model and advance animation each frame with forge_scene_update_morph_animation.

Frequently Asked Questions about forge-pipeline-morph-animations

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add morph target animation to an SDL GPU pipeline?

To add morph target animation to an SDL GPU pipeline, load .fmesh and .fanim assets, compute per-vertex deltas on the CPU, and upload them to GPU storage buffers for vertex shader displacement using ForgeSceneMorphModel.

What are morph target animations and how do they work in real-time rendering?

Morph target animations work by blending per-vertex position and normal deltas computed on the CPU according to animation weights, then uploading these blended deltas to the GPU for real-time displaced rendering of deformable meshes.

What do I need to set up morph animations with ForgeSceneMorphModel?

You need FORGE_SCENE_MODEL_SUPPORT enabled, forge_pipeline.h for loading .fmesh and .fanim files, FLAG_MORPHS enabled, and compiled morph shaders scene_morph.vert.hlsl and scene_morph_shadow.vert.hlsl.

Can I use morph targets for facial expressions in an SDL GPU scene?

Yes, morph targets can be used for facial expressions in an SDL GPU scene by evaluating animation weights and applying per-vertex deltas via ForgeSceneMorphModel for real-time character animation.

How do I load and update a morph animation each frame?

Load a morph model using forge_scene_load_morph_model and advance the animation each frame with forge_scene_update_morph_animation to apply real-time per-vertex delta blending.

Does morph target rendering support shadow passes in SDL GPU?

Yes, morph target rendering supports shadow passes in SDL GPU by utilizing the compiled scene_morph_shadow.vert.hlsl shader alongside the main scene_morph.vert.hlsl shader for displaced rendering.