Forge Pipeline Morph Animations logo

Forge Pipeline Morph Animations

Community
Nebulavenus
forge-pipeline-morph-animations

Add morph target (blend shape) animations with pipeline assets to an SDL GPU project using ForgeSceneMorphModel.

Overview

PublisherNebulavenus
Repositoryforge-gpu
Skill nameforge-pipeline-morph-animations
Stars
46
Forks
7
Bundled files
Instructions only
LicenseZlib
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by Nebulavenus on GitHub. Read the source before you install it.

Installation

Install the Forge Pipeline Morph Animations AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Nebulavenus/forge-gpu/tree/main/.claude/skills/forge-pipeline-morph-animations
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Nebulavenus/forge-gpu.git /tmp/forge-gpu
mkdir -p .claude/skills
cp -r /tmp/forge-gpu/.claude/skills/forge-pipeline-morph-animations .claude/skills/forge-pipeline-morph-animations
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Forge Pipeline Morph Animations in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Forge Pipeline Morph Animations on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Forge Pipeline Morph Animations is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Add morph target animation support to an SDL GPU project that already uses forge_scene.h. This skill covers loading .fmesh files with morph data, evaluating morph weight animation from .fanim channels, CPU-blending per-vertex deltas, and uploading to GPU storage buffers for vertex shader displacement.

Prerequisites

  • forge_scene.h with FORGE_SCENE_MODEL_SUPPORT enabled
  • forge_pipeline.h for .fmesh and .fanim loading
  • Pipeline-processed assets with FLAG_MORPHS set in .fmesh
  • Compiled morph shaders (scene_morph.vert.hlsl, scene_morph_shadow.vert.hlsl)

Asset processing

Process glTF models with morph targets using the pipeline tools:

bash
forge_mesh_tool model.gltf model.fmesh --verbose
forge_scene_tool model.gltf model.fscene --verbose
forge_anim_tool model.gltf model.fanim --verbose

The mesh tool detects morph targets and sets FLAG_MORPHS in the .fmesh header. It also disables vertex deduplication (morph deltas reference original vertex indices). The anim tool preserves MORPH_WEIGHTS channels (target_path = 3) with variable component counts.

Loading a morph model

c
#define FORGE_SCENE_MODEL_SUPPORT
#define FORGE_SCENE_IMPLEMENTATION
#include "scene/forge_scene.h"

ForgeSceneMorphModel morph_model;

/* fmat_path may be NULL if no materials; fanim_path may be NULL for manual weights */
if (!forge_scene_load_morph_model(&scene, &morph_model,
        fscene_path, fmesh_path, fmat_path, fanim_path, base_dir)) {
    SDL_Log("Failed to load morph model");
    return SDL_APP_FAILURE;
}

Updating morph animation each frame

c
/* After forge_scene_begin_frame(): */
morph_model.anim_speed = speed_slider_value;

/* Toggle manual_weights to override animation with direct control */
if (morph_model.manual_weights) {
    morph_model.morph_weights[0] = slider_w0;
    morph_model.morph_weights[1] = slider_w1;
}

forge_scene_update_morph_animation(&scene, &morph_model, dt);

forge_scene_update_morph_animation does three things:

  1. Evaluates morph weight channels from .fanim (unless manual_weights is set)
  2. CPU-blends position and normal deltas: blended[v] += weight * delta[v]
  3. Uploads blended deltas to GPU storage buffers via persistent transfer buffer

Drawing

c
mat4 placement = mat4_multiply(
    mat4_translate(vec3_create(x, y, z)),
    mat4_scale_uniform(scale));

/* Shadow pass */
forge_scene_begin_shadow_pass(&scene);
forge_scene_draw_morph_model_shadows(&scene, &morph_model, placement);
forge_scene_end_shadow_pass(&scene);

/* Main pass */
forge_scene_begin_main_pass(&scene);
forge_scene_draw_grid(&scene);
forge_scene_draw_morph_model(&scene, &morph_model, placement);
forge_scene_end_main_pass(&scene);

Cleanup

c
forge_scene_free_morph_model(&scene, &morph_model);

Shader approach

The morph vertex shader uses the standard 48-byte vertex layout (same as scene_model.vert.hlsl) plus two StructuredBuffer<float4> for position and normal deltas, indexed by SV_VertexID. The float4 type ensures a consistent 16-byte stride across SPIRV and DXIL backends:

hlsl
StructuredBuffer<float4> morph_pos_deltas : register(t0, space0);
StructuredBuffer<float4> morph_nrm_deltas : register(t1, space0);

float3 morphed_pos = input.position + morph_pos_deltas[input.vertex_id].xyz;
float3 morphed_nrm = normalize(input.normal + morph_nrm_deltas[input.vertex_id].xyz);

The shadow variant uses only position deltas (1 storage buffer).

Reference

Frequently asked questions

What does the Forge Pipeline Morph Animations AI skill do?

Add morph target (blend shape) animations with pipeline assets to an SDL GPU project using ForgeSceneMorphModel.

Why use Forge Pipeline Morph Animations on TypingMind?

Because you install it once and use it with any model. Forge Pipeline Morph Animations is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Forge Pipeline Morph Animations in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Nebulavenus/forge-gpu/tree/main/.claude/skills/forge-pipeline-morph-animations. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Forge Pipeline Morph Animations?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Forge Pipeline Morph Animations?

As many as you like. As long as a model supports skills, you can use Forge Pipeline Morph Animations with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Forge Pipeline Morph Animations AI skill free?

Yes. It is published on GitHub by Nebulavenus under the Zlib license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇