Dev Noise Texture logo

Dev Noise Texture

Community
Nebulavenus
dev-noise-texture

Add procedural noise texture generation to the asset pipeline — C tool, Python plugin, web UI with live preview

Overview

PublisherNebulavenus
Repositoryforge-gpu
Skill namedev-noise-texture
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 Dev Noise Texture 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/dev-noise-texture
  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/dev-noise-texture .claude/skills/dev-noise-texture
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Dev Noise Texture 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 Dev Noise Texture 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 Dev Noise Texture 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.

Noise Texture Generation

Add procedural noise texture generation to the forge-gpu asset pipeline. A C tool samples noise functions from forge_math.h across a pixel grid and writes grayscale BMP heightmaps. A Python pipeline plugin invokes the tool as a subprocess, and the web UI provides interactive parameter tuning with live preview.

When to use

  • Generating procedural heightmaps for terrain
  • Creating tileable noise textures (fBm, Worley, ridged multi-fractal)
  • Deriving normal maps from heightmaps
  • Adding procedural texture generation to the pipeline

Key API calls

C noise functions (forge_math.h)

FunctionOutputUse case
forge_noise_perlin2d[-1, 1]Basic gradient noise
forge_noise_simplex2d[-1, 1]Less axis-aligned than Perlin
forge_noise_fbm2d[-1, 1]Multi-scale terrain, clouds
forge_noise_ridged_fbm2d[0, 1]Mountain ridges, rivers
forge_noise_worley2dF1, F2 distancesVoronoi cells, edges
forge_noise_domain_warp2d[-1, 1]Organic distortion

Pipeline plugin (pipeline/plugins/noise.py)

FunctionPurpose
find_noise_tool()Locate forge_noise_tool binary
run_noise_tool()Invoke tool as subprocess with CLI args
generate_noise_textures()Batch generation from pipeline.toml config
NoisePlugin.process()Plugin entry point for pipeline integration

Server endpoints (pipeline/server.py)

EndpointMethodPurpose
/api/generate/noisePOSTGenerate full-resolution texture
/api/generate/noise/previewGETStream a 256×256 BMP preview

Correct order

Adding a new noise type

  1. Implement the noise function in common/math/forge_math.h with full documentation (parameters, output range, usage example)
  2. Add tests in tests/math/test_math.c (determinism, range, edge cases)
  3. Add a NOISE_* enum value and parse_type case in tools/noise/main.c
  4. Add the type to VALID_TYPES in pipeline/plugins/noise.py
  5. Add it to the NOISE_TYPES array in pipeline/web/src/routes/generate/noise.tsx
  6. Add it to the NoiseGenerateRequest type dropdown and server endpoint

Setting up noise generation in a project

  1. Build the tool: cmake --build build --target forge_noise_tool

  2. Add [noise] config to pipeline.toml:

    toml
    [noise]
    noise_enabled = true
    output_dir = "generated"
    
    [[noise.textures]]
    name = "terrain_height"
    type = "fbm"
    width = 1024
    height = 1024
    seed = 42
    tiling = true
  3. Generate: uv run python -m pipeline generate-noise

  4. Or use the web UI: uv run python -m pipeline serve --reload

Seamless tiling

Map 2D coordinates onto a 4D torus — each axis traces a circle in a separate 2D plane:

c
float angle_u = u * 2.0f * FORGE_PI;
float angle_v = v * 2.0f * FORGE_PI;
float r = frequency / (2.0f * FORGE_PI);
/* Noise sees (r*cos(u) + r*cos(v), r*sin(u) + r*sin(v)) — continuous
 * across the tile boundary because each circle closes on itself. */

Normal map derivation

Central differences on the heightmap with wrapping:

c
float dx = (heightmap[y*w + xp] - heightmap[y*w + xm]) * strength;
float dy = (heightmap[yp*w + x] - heightmap[ym*w + x]) * strength;
/* Normal = normalize(-dx, -dy, 1), mapped to [0, 255] RGB */

Common mistakes

  • Forgetting to normalize output. Perlin/Simplex/fBm return [-1, 1], ridged returns [0, 1], Worley returns [0, ~1.5]. The tool normalizes via min/max scan before writing BMP pixels.

  • Tool not found on MSVC. Multi-config generators put binaries in build/tools/noise/Debug/. The tool_finder.py searches config subdirectories automatically.

  • Normal map source ordering. In pipeline.toml, the heightmap entry must appear before the normal map entry that references it (the plugin processes entries in order).

  • Tiling with Worley noise. The 4D torus approximation works well for gradient-based noise but can produce visible seams with Worley at low frequencies. Increase frequency or use fBm/ridged for seamless tiles.

Ready-to-use template

C tool invocation

bash
forge_noise_tool heightmap.bmp fbm \
    --width 1024 --height 1024 --seed 42 \
    --octaves 6 --frequency 4.0 --persistence 0.5 --tiling

forge_noise_tool normals.bmp fbm \
    --width 1024 --height 1024 --seed 42 \
    --octaves 6 --frequency 4.0 --normal-map --normal-strength 2.0

Python one-off generation

python
from pathlib import Path
from pipeline.plugins.noise import find_noise_tool, run_noise_tool

tool = find_noise_tool()
if tool is None:
    raise RuntimeError("forge_noise_tool not found — build it first")
run_noise_tool(
    Path("output.bmp"), "ridged",
    width=512, height=512, seed=42,
    frequency=4.0, octaves=6, tiling=True,
    tool=tool,
)

Web UI preview URL

typescript
import { noisePreviewUrl } from "@/lib/api"

const url = noisePreviewUrl({
  noise_type: "worley-edge",
  width: 256, height: 256,
  seed: 42, frequency: 8.0,
})
// -> "/api/generate/noise/preview?noise_type=worley-edge&..."

Reference

Frequently asked questions

What does the Dev Noise Texture AI skill do?

Add procedural noise texture generation to the asset pipeline — C tool, Python plugin, web UI with live preview

Why use Dev Noise Texture on TypingMind?

Because you install it once and use it with any model. Dev Noise Texture 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 Dev Noise Texture in TypingMind?

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

Which AI models can use Dev Noise Texture?

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 Dev Noise Texture?

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

Is the Dev Noise Texture 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 👇