Interactive 3D demos are the latest thing people build to test a new coding model. On November 24, Google showed five builder projects made with Gemini 4 Neon: a glowing 3D Earth, Three.js butterflies, a hexagon flame shader, an interactive black hole with lensing sliders and a 3D pendulum wave. The facts below come from that post and our Gemini 4 Neon launch summary. All the prompts are our own.
What Google says
- Builders ran Neon at the
highandxhighthinking levels for complex coding and interactive 3D work.highis the default. - Several projects were built in Google Antigravity. One builder used the
/swarmcommand there to make an interactive flame shader in under five minutes, according to Google. - Where it runs: the paid Gemini API in Google AI Studio and Android Studio, Antigravity for Google AI Pro and Ultra subscribers, AI Studio and the Gemini app model drop-down for Pro and Ultra subscribers, and Gemini for business.
- Google lists $3 per million input tokens and $15 per million output tokens in the API, with a 1 million token context window.
How to write a 3D demo prompt
- Name the stack and the file layout. “One HTML file, Three.js from a CDN” stops the model guessing.
- Describe what you see, then what you can do. Look first (colours, light, motion), then the controls (sliders, drag, click).
- Give numbers. Particle counts, frame rate, slider ranges. They make the result testable.
- Ask for performance limits. “Keep 60 fps on a laptop” and “pause when the tab is hidden” save a second round.
- Ask it to check its own work. End with a short list of what to test, so you know where to look when something breaks.
Start at high. Move to xhigh only for shaders or physics that fail at high, since more thinking means more output tokens (see our thinking level guide, which uses the same four levels).
Glowing planet
Build a single HTML file that uses Three.js from a CDN. Show a slowly rotating planet with a night side covered in small glowing city lights and a soft blue atmosphere glow at the edge. Add a starfield of 3,000 points. Let me drag to orbit and scroll to zoom, with limits so I can't go inside the planet. Keep it at 60 fps on a laptop. Generate all textures in code; no external image files. End with a 5-point checklist of things I should test.
Particle creatures
Create a Three.js scene in one HTML file: 40 small paper-lantern creatures float upward through a dark forest clearing, each with a soft warm glow and a gentle wobble. Clicking one makes it spin and release a burst of sparks. Add a slider for creature count (10 to 100) and a toggle for fog. Use instanced meshes so 100 creatures stay smooth. Comment each section of the code in one line.
Fragment shader
Write a full-screen WebGL fragment shader in one HTML file, with no libraries. The effect: a hexagon grid where each cell pulses with a flame-like gradient from deep red to gold, rippling out from the mouse position. Add sliders for ripple speed, cell size and glow strength. Pass time and mouse position as uniforms. Explain the main maths of the shader in 4 short bullet points after the code.
Physics simulation
Build an interactive pendulum wave in one HTML file with Three.js: 18 spheres on strings, where each pendulum's length is set so the row drifts in and out of sync and repeats every 60 seconds. Add buttons for play, pause and reset, and a slider for gravity (1 to 20 m/s²). Show the elapsed time. Use a fixed time step so the motion is stable, and tell me which formula you used for each pendulum's length.
Space scene with controls
Make a stylised black hole demo in one HTML file using Three.js and a custom shader. Show a glowing accretion disk and a background star field that bends around the black hole. Add three camera presets (side view, top view, close orbit) as buttons, and sliders for disk brightness and lensing strength. This does not need to be physically accurate; say clearly in a comment which parts are artistic approximations.
Fix-it prompt (for the second round)
The scene works but runs at about 25 fps on my laptop and the sliders do nothing on mobile. Find the main performance cost, fix it without changing how the scene looks, and make the sliders work with touch. Show only the changed parts of the code, then the full file.
Using several agents at once
In Antigravity, Google describes Neon working as an Orchestrator that directs parallel Gemini 4 Hydrogen subagents. For a bigger demo, split the work in your prompt: one part for the scene, one for the controls panel, one for performance testing. Ask the orchestrator to merge them into one file and list any conflicts it fixed. Read our agent permissions checklist before you let agents run commands on your machine.
Tips that save time
- Ask for one file first. Split it into modules only when it works.
- Name the library version if you have one in your project, so the code matches your imports.
- Check the result in two browsers. WebGL support differs, especially on phones.
- Keep your own prompt log. When a demo works, save the prompt next to the code so you can rerun it on the next model.
Contribute your creativity