TEST 033

No game studio: Claude builds real-time 3D effects from a reference picture

3DClaude

Short answer

Attach a reference picture of an effect to Claude Code with the starter prompt below. Claude writes one index.html that loads Three.js, three.quarks and Postprocessing from a CDN, with custom shaders for the main shapes, an orbit camera and a control panel for colour, glow, speed and camera angle. Open the file in your browser; expect a round or two of feedback.

The fire, the tornadoes and the black holes in the reel are not game footage or a video generator. Each one is a real-time 3D scene that Claude wrote: one web page that draws the effect live in your browser. Because it's real 3D, you can drag the camera around it, change its colours, or speed it up and slow it down, and you get a new shot without starting over.

Three free libraries do the heavy lifting, and Claude writes the rest:

  • Three.js, the 3D engine for the web (MIT).
  • three.quarks, a particle and VFX engine for Three.js: sparks, embers and flying debris (MIT).
  • Postprocessing, which adds bloom (the glow), tone mapping and the cinematic finish (Zlib).

Installing the libraries on their own doesn't produce these effects. Most of each effect is custom GLSL shader code that Claude writes for it, so the prompt asks for that explicitly.

The starter prompt

Find an effect you like (a Pinterest search for "VFX", "spell effect" or "anime magic" is a good start), save the picture, and paste this into Claude with the picture attached.

PromptVFX starter prompt
I've attached a reference image of a visual effect. Build me a real-time 3D version of it that runs in the browser.

Use these three free libraries:
- Three.js (https://github.com/mrdoob/three.js) for the 3D scene
- three.quarks (https://github.com/Alchemist0823/three.quarks) for particles like sparks, embers and debris
- postprocessing (https://github.com/pmndrs/postprocessing) for bloom and the cinematic finish

How to build it:
1. Start by describing what you see in the reference: the shapes, colours, motion and lighting. Then decide which parts should be custom GLSL shaders, which should be three.quarks particles, and which should be post effects.
2. Build the main shapes (flames, energy, smoke, swirls, trails) with custom shaders. Don't make the whole effect out of flat sprites.
3. Put everything in one index.html that loads the libraries from a CDN with an import map, so it opens without installing anything or running a build step.
4. Make it a true 3D scene. I should be able to drag the camera around (OrbitControls), and there should be a small control panel (lil-gui) for the main colour, glow strength, animation speed and camera angle.
5. Frame it for a phone screen (9:16), on a dark background, and keep it smooth on a laptop.
6. When you're done, tell me how to open it. Then compare your result with the reference and list the three biggest differences, so we can improve it in the next round.

How do you run it?

  1. Open Claude Code in an empty folder. (It works best there; the test below ran in Claude Code, not in the claude.ai chat.)
  2. Paste the prompt and attach your reference picture.
  3. Open the index.html it writes in Chrome. Nothing to install: the libraries load from a CDN.
  4. Drag to orbit the camera, and use the panel to change the colour, the glow, the speed and the angle.

What happened in the test?

A fresh Claude Code session got only the prompt and one reference picture: a red, comic-style energy arrow with a rune circle.

  • Round 1 wrote one 849-line file with no install and no build step. It was recognisably the same spell: the rune circle, the arrow, a twisting ribbon, cream shock rings and molten debris. Two things were off. The control panel drew below the window, so you couldn't see it, and the big cream flame burst from the reference was missing.
  • Round 2 got those two notes, written the way a viewer would write them ("I can't see the control panel", "it's missing the big cream-white flame burst"). It fixed the panel and added the flame crown. Turning the colour to blue turned the whole spell blue, and the camera sliders gave a top-down view.

So expect a round or two. The lab effects in the reel each took several rounds.

How do you get it closer to your reference?

  • Ask for the list of differences every round (step 6 does this), then answer it in plain words: what's missing, what's too soft, what's too bright.
  • Name the look: "flat, hard-edged comic style" or "soft, glowing, realistic".
  • If it looks like flat sprites, ask for custom shaders for that part.
  • Keep one file and one conversation, so each round builds on the last.

The catch

  • It's code, not a video. You open it in a browser. To post it, screen-record it or ask Claude to add a recorder.
  • It takes a few rounds. Round 1 is rarely the finished look.
  • Claude Code is the tested path. The claude.ai chat alone wasn't tested.
  • The quarks.art online editor has paid plans. You don't need it; the three libraries are free.
  • Licences: MIT and Zlib let you use the effects in your own projects, commercial ones included, as long as you keep the licence notices.

If you want to build scenes instead of effects, Claude can also build 3D scenes in Blender for free.

Sources

  1. Three.js on GitHub (mrdoob/three.js)
  2. three.quarks on GitHub (Alchemist0823/three.quarks)
  3. Postprocessing on GitHub (pmndrs/postprocessing)
  4. Claude: images as input (vision docs)