#webgl
11 tutorials, projects and news items tagged webgl.
Total
11
Use when the user sees an animation on a web page, in a screen recording, video or gif (hover, loader, page transition, scroll effect, marquee, 3D or WebGL scene) and wants the same motion in their own project. Built on the open-source reanimate: it films the original frame by frame in a headless browser, measures timing and easing into a motion spec, rebuilds it in the project's existing stack, films the copy the same way and compares them until they match, usually in 2 to 5 rounds, then reports compare sheets and numbers. Needs Bun on macOS or Linux. Use case: Can't describe an animation you like? Record it and let your AI agent rebuild it frame by frame
Use when the user has a short looping effect clip (a beam, shock ring, splash, sparks, dust) of about a dozen frames and wants it as a live effect for a game or web page whose colours and timing can still be changed: the AI agent uses the open-source AnyVFX (MIT) to measure every frame, paint the static scene from the reference and fit its lighting, rebuild the effect from per-frame keys, then report the error against the original with a side-by-side page. It is not a pixel copy and says so; not for long videos or clips with a moving camera. Use case: Hand your AI agent an effect GIF and it rebuilds it as a live game or web effect, with the error measured
Use when the user needs procedural effects or materials for a game, a website or a 3D scene (spells, explosions, shock waves, water, clouds, terrain, fur, rust) without writing a shader from scratch: the AI agent searches the 454 WebGL2 shaders of the open-source GLSL Studies (MIT), bundled with an index, screenshots the closest few in a headless browser with the included viewer, then adapts colours, speed and loop and wires the result into plain WebGL, three.js or Shadertoy, or ports it to Godot or Unity. Everything is drawn in math: no textures, no meshes. Use case: Describe the effect you want; your AI agent picks it from hundreds of ready shaders, tunes it and wires it in
Use when the user wants an ink-wash (shan shui) animation, intro, interlude or wallpaper, or a new Chinese landscape painted in code. Built on the open-source shanshui project (MIT): ten landscapes drawn entirely with WebGL2 and Canvas2D plus a synthesized guzheng-and-flute score. The agent renders the one-minute film, cuts a shorter version from chosen paintings, exports single high-res stills, or paints a new scene with the same rules. Not a photo-to-ink filter. Use case: Your AI agent renders ink-wash landscape animations in code, cut to your needs or painted anew
Use when the user wants animated gradient backgrounds for websites, wallpapers, posters, slides or video (liquid metal, flowing silk, frosted glass, holographic, halftone and other abstract looks), or wants to keep changing one background's colors, glass or speed without regenerating it: start the open-source Halation render service locally, roll random directions or use one of 41 built-in looks, edit the look settings and re-render, export high-res stills, and render frame by frame into a seamless looping MP4. Putting a photo behind the glass is out of scope (that needs the web editor). Use case: Have your AI agent make tweakable animated gradient backgrounds as high-res stills and seamless video loops
Use when the user wants AI to build a 3D scene, product shots or a short 3D animation, place and light GLB models, or render a 3D scene to images, path-traced stills or MP4: drives the MCP server of the open-source Crucible (formerly 67.js, MIT, npm @codepawlhq/crucible) in local Chrome, checks a PNG preview after every step, compares angles, and renders a small draft estimate before the real job. Needs Node 20.19+ and local Chrome; no API keys. Use case: Have your AI agent build a 3D scene while checking previews, then export images and video
Use when the user gives a game screenshot, key art, concept art or gameplay video and wants a playable browser 2D game prototype, slice or asset pack in the same style: uses the open-source ref2game (MIT; Claude Code and Codex editions) to generate the art piece by piece, write rigs, wind, light, particles, camera and game feel in a tiny WebGL2 engine, play it live on a self-reloading local page, measure motion with qa.mjs and fidelity with compare.py, and pack a static playable build. 2D only. Use case: Give the AI agent one reference image and get a playable 2D game prototype in that style
Use when the user wants to turn a gameplay clip (AI-generated or any footage) or a game idea into a 3D game playable in the browser: study the video frame by frame to write a design spec, generate all images, 3D models, sound effects and music with fal from the video's frames, write it as one index.html with Three.js, check the visuals against side-by-side comparison images, and have your AI agent playtest with the keyboard and record the best moments. Not for Unity, Unreal or Godot projects, or for copying commercial games. Use case: Have your AI agent rebuild an AI-generated gameplay video as a 3D game playable in the browser
Use when the user wants colorful smoke or ink that follows the mouse as a web background or decoration, or a clip of flowing fluid smoke: tune color, fade, swirl and glow in the open-source WebGL-Fluid-Simulation, embed it as a page background, or record it in the browser and export an MP4. Use case: Have your AI agent add smoke that follows the mouse to your page
Use when the user wants to show a rotatable, clickable 3D model or scene on a web page (product showcases, portfolios, 3D landing pages, game prototypes), or wants to put a .glb or .gltf model on a web page. Builds the scene with Three.js, adds lights, interaction, and animation, adds extra libraries for text, effects, and faster picking when needed, and can record the scene as a video. Use case: Hand your AI agent a 3D model or idea; it turns it into a web scene visitors can spin and click
Use when the user wants to export a web animation or 3D scene (Canvas, WebGL, WebGPU) and wants to export it as MP4, WebM, GIF or an image sequence. Uses canvas-record to capture frame by frame in the browser, with no dropped frames and no mouse in the picture. Very large sizes export an image sequence that FFmpeg then assembles. Use case: When your web animation is ready, your AI agent records it frame by frame as a clean MP4 or GIF
