Aller au contenu
Skillpedia
Montage vidéo7.2k · #13345

fire-smoke-skill-vfx

Ce qu’il fait

Cette compétence guide l'agent pour créer les effets de feu d'une compétence de jeu, y compris les flammes, la fumée et le sol brûlant. Elle s'adresse aux développeurs de jeux qui veulent un feu qui se lit comme du feu, et non comme un brouillard orange.

Quand l’utiliser

  • ✓Quand une compétence de jeu a besoin de flammes qui ressemblent à un vrai feu.
  • ✓Quand la fumée, les braises ou le sol brûlant doivent correspondre à un effet de feu.
  • ✓Quand les effets de feu ressemblent à un brouillard orange ou à des cônes plats et doivent être corrigés.

Lien du skill

https://github.com/MengTo/Skills/blob/main/agent-skills/game-combat/fire-smoke-skill-vfx/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/MengTo/Skills/blob/main/agent-skills/game-combat/fire-smoke-skill-vfx/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Fais en sorte que la compétence de feu de mon jeu ressemble à de vraies flammes, avec une fumée qui monte et des braises qui s'éloignent.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

L'agent construit des volumes de flammes avec une turbulence qui s'étire en montant, une gamme de couleurs allant du blanc incandescent au rouge, et une fumée et des braises assorties. Il garde tous les effets dans un même style visuel partagé.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis GitHub.

Fire and Smoke Skill VFX

Use this for the effect half of a fire skill: what the hand holds, what it throws, what burns and what the fire leaves. Reach for a sibling instead in these cases:

  • Lightning, an energy orb, black afterimage smoke and air bursts: lightning-energy-skill-vfx. This skill reuses its clock, composite, impact frames and flash limiter.
  • Readable, budgeted gameplay effects in general (telegraphs, status, cleanup rules): create-game-vfx. Its readability rules still apply here.
  • Scoring a skill out of 10, or polishing the caster's body and timing: game-dev-combat-skill-polish.

Source: a brief for elemental skill pages built to the Black Lightning demo's bar, with the notes its owner gave on that demo ("not as in-your-face", "more fine lines", "smooth transitions", "a more realistic floor", "no sliding textures", "more detail in the smoke"). There is no character: the flame is held by an implied hand at chest height. Then two rounds of a dream loop against GPT Image edits of the page's own frames (see references/scorecard.md).

Verified stack: Three.js r170, WebGL2, GLSL ShaderMaterials, HalfFloat render targets, a 96³ baked noise texture, and a hand-written bloom and composite. No post-processing library. The demo's floor is Poly Haven's Burned Ground 01 by Rob Tuytel (CC0), its 1k colour, normal and AO/roughness maps in demo/assets/ground/, embedded by demo/build.mjs as data URIs so the page opens from disk.

The mechanism

Fire is a field that rises, cools and lights the world; smoke is what the fire lights.

  • One flame shader, three shapes. Every flame is a ray march through a signed field: a profile (a plume from a source disc, a wall along an arc, a teardrop ball) minus the distance from its axis, pushed in and out by noise. Density is a narrow band of that field, so tongues have crisp edges and islands above the tips are detached licks.
  • Buoyancy, not scrolling. The noise's height coordinate is y0·ln(1 + h/y0) minus time, so features leave the root slowly and accelerate and stretch as they climb, and a slow warp drifting through the noise deforms them on the way. A scrolled texture (the Scrolled switch) slides over the flame.
  • Temperature drives everything. One temperature per sample picks the colour from a ramp, decides what hides the background (only hot gas does) and where soot absorbs (only a burst's cooling gas). The hottest gas along a ray shows through the cooler skin.
  • Detail is band-limited to the buffer. Flames march into their own reduced-resolution target. Every octave fades out before it gets finer than a few pixels of that target at the sample's distance, and the target comes up with a smooth B-spline. Detail the buffer cannot hold aliases into a mosaic.
  • One light set for everything. Eight firelights (one for flashes, seven claimed by flames and stage lights) light the ground, the smoke and the haze. They swell fast and settle slowly, so firelight breathes and never strobes.
  • One clock and one composite, as in lightning-energy-skill-vfx: holds freeze every layer at once, heat haze and pressure fronts write into one half-resolution distortion buffer, and the impact frame draws after tone mapping.

Reuse the working effect

Copy assets/fire-fx.mjs. You pass in your own THREE, and the module does not import a second copy. The demo runs this same module, inlined by demo/build.mjs because a page opened from disk cannot import modules.

import { createFireFX, FIRE_LIGHTS_GLSL, GROUND_HEAT_GLSL, TNOISE_GLSL } from './fire-fx.mjs';

const fx = createFireFX(THREE, { renderer, scene, camera, seed: 23 });   // bakes the 96³ noise texture
fx.setSize(width * dpr, height * dpr, dpr);       // drawing-buffer pixels, again on resize
fx.warmup();                                      // compile every effect before the first hit
fx.options.shake = 0.6; fx.options.fisheye = 0.65;   // felt, not thrown at the viewer

// A flame held in the hand: a teardrop that grows in.
const held = fx.flame({ mode: 'ball', pos: hand, radius: 0.11, height: 0.44, temp: 1.06, light: 3.2,
  embers: 0.9, smoke: 0.9, smokeKind: 'wisp', swirl: 3.5, spin: 2.2, ragged: 0.45 });

// A wall of fire rolling out: a fan of arc sectors you move with set().
const front = fx.flameArc({ center: origin, R: 0.7, w: 0.32, height: 0.6, a0: 
Questions fréquentes

Couvre-t-elle le mouvement du personnage ?

Non. Elle couvre uniquement les effets. Le corps du lanceur et son minutage relèvent d'une compétence de combat distincte.

Quel moteur utilise-t-elle ?

Three.js avec WebGL2 et des shaders personnalisés.

Utilise-t-elle une bibliothèque de post-traitement ?

Non. La compétence décrit une passe de bloom et de composition écrite à la main.

Détails

Description originale de l’auteur

Build the effects of a fire skill as one visual language in Three.js. Flames that read as fire, not as orange fog or cones: ray-marched flame volumes whose turbulence rises with buoyancy (slow at the root, accelerating and stretching as it climbs) instead of scrolling, a temperature ramp from a white-hot core a little above the fuel through yellow and orange to deep red tips, broad brighter licks inside, walls of fire broken into clumps of separate tongues of very different heights with notches between them and licks that detach and go out, a fire whirl wound in helical sheets with a waist and

repo: MengTo/Skills

Popularité

Étoiles GitHub
7.2k
Position au classement
#13345
Licence
MIT
Mis à jour
01/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires