How to build a 3D website with AI: prompts that work in Lovable, Claude and Cursor
· 7 min read
What goes wrong when you ask an AI tool for a 3D website, what your prompt has to say, and how to start from a working Vibran 3D template, either by pasting the prompt or by asking Lovable directly through MCP.
Why “make me a 3D website” goes wrong
Type “make me a 3D website” into Lovable, Claude or Cursor and you tend to get the same problems back.
- The AI makes up the scene. With no subject to work from, it reaches for a spinning cube or a starfield that says nothing about your business.
- It gets heavy. Shadows on every object, full pixel ratio on Retina screens, thousands of particles with no cap. A laptop copes. A phone heats up and drops frames.
- It breaks on phones. The controls assume a mouse and scrolling locks up.
- The text disappears. Headlines and prices end up inside the scene, where screen readers and Google cannot read them.
- It mixes three.js versions. Old code shows up, such as
THREE.Geometry, which was removed from the library in r125. The page loads blank and the console fills with red.
The AI can write three.js. The trouble is that a one-line request leaves every decision to it.
What a 3D website prompt needs
A good three.js website prompt answers six questions before the AI writes a single line.
| Part | What to say |
|---|---|
| Scene | What is in it, what it is made of, how it is lit. Tie it to the subject: a print shop can be a gallery corridor, a builder can be a hillside with the house going up. |
| Camera and scroll | What scrolling does to the camera (walk, descend, loop) and what the mouse does (turn the head, push objects). |
| Weight | A pinned three.js version, a pixel ratio cap, where shadows are worth it and a maximum particle count. |
| Phones | What changes on touch or narrow screens: fewer particles, no shadows, which gesture walks and which one turns. |
| Reduced motion | What happens when the system asks for prefers-reduced-motion: no easing on scroll, hard cuts between scenes. |
| Text | Where it lives. In HTML over the canvas, never baked into a texture, with a list version if the 3D fails to load. |
A prompt that covers all six, ready to adapt:
Build the home page for [business name] in HTML, CSS and JS,
with three.js 0.169.0 loaded through an importmap.
Scene: [describe the place, the materials and the light, tied to the business].
Camera: scrolling moves through the scene from start to end; the mouse
turns the camera slightly. Products sit inside the scene and open on click.
Weight: pixel ratio up to 2 on desktop and 1.5 on phones.
Shadows only from the main light. At most [N] particles.
Phones (touch or screens under 760px): no shadows, half the
particles, drag up to walk.
prefers-reduced-motion: no scroll easing, hard cuts between scenes.
Text in HTML over the canvas. Give the canvas an aria-label and let
the arrow keys walk. If WebGL fails, show the products as a list.
Do not make up testimonials or numbers.
Even so, the AI still invents the scene from nothing, and a good 3D scene takes many rounds. The shortcut is to start from a scene that already works.
Step by step with a Vibran 3D template
Vibran website templates run live on the page before you copy anything. The 3D ones carry their full code inside the prompt, so the AI swaps the content and leaves the scene alone.
To see the six parts in a real template, look at Basalto. It loads three.js 0.169.0 from a CDN with the version pinned. On touch screens or under 760 px it switches to a light mode: shadows off, pixel ratio capped at 1.5 (2 on desktop) and the particle volcano cut from 15,000 to 7,000 particles. With reduced motion on, scrolling loses its easing and scene changes become hard cuts. The canvas has a screen reader description and the arrow keys move through it.
1. Pick the template and test it
Open the template page and run it live. Try it on your laptop and your phone. If the scene stutters on yours, it will stutter on your visitors’ phones too.
2. Copy the prompt
A template prompt asks for a page in plain HTML, CSS and JavaScript and contains the template’s full HTML. It tells the AI to keep the structure, the section rhythm, the fonts and the effects, to replace the text, names, prices and colors, and not to make up testimonials or numbers. It ends by asking for prefers-reduced-motion support and a page that works at 400 px wide. The prompt is written in Portuguese. AI tools read it fine; write your details in English and ask for English copy.
3. Describe your business and what changes in the scene
On the “Meu negócio” (my business) line of the prompt, write what you sell, who it is for, your city, your prices and how to reach you. Then say what changes in the 3D. In Sala Curva, for example, the prints on the wall become your photos and each collection gets your own name.
4. Paste it into your AI tool
In Lovable, paste it into the project chat. In Claude Code or Cursor, paste it with the project open and say which folder the files go in. If your project uses React, say so and ask for the scene to live in a component that starts the canvas on mount and cleans it up on unmount.
Doing it through MCP, straight from Lovable
If you would rather skip the copy and paste, connect your account through the Vibran MCP server. In Lovable, open Connectors, click Add custom and choose MCP server. Then ask in the chat, for example:
Use the Vibran connector, find a 3D website template for a shop,
get the full prompt and build the site with my shop's details.
The AI calls buscar_itens to find the template and pegar_prompt to fetch the code. Neither one uses a prompt from your plan. If the item is not unlocked on your account yet, it calls liberar_item, which uses 1 prompt (Studio is never charged), and Lovable asks for your approval first. We tested it in Lovable on November 28, 2026: the request was “gym website template” and it built the Galpão 12 template. MCP works on every plan, Free included, and also in Claude Code and Cursor.
3D website checklist: performance, phones and accessibility
- Performance. Shadows and pixel ratio cost the most. Ask for a cap and a light mode. Pause the scene when the tab is hidden.
- A real phone. Browser device emulation does not show heat or dropped frames. Test on a mid-range phone, scroll top to bottom and make sure the text stays readable over the scene.
- A fallback. If WebGL fails, visitors still need to see something. When the Sala Curva scene cannot start, it falls back to a list view with the same prints.
- Accessibility. Text in HTML, a described canvas, working keyboard controls and respect for reduced motion. There is more in how to keep animation light and accessible.
- A clean console. No red errors before you publish.
3D templates to start your website
- Basalto: a studio site built entirely in three.js, travelled in an endless loop, with projects trapped inside obsidian crystals.
- Sala Curva: a print shop inside a 3D gallery corridor, with a toggle that swaps the scene for a list.
- Gravidade: glossy 3D spheres with spring physics that change shape and color as you scroll, and the mouse pushes them around.
- Alísio: a resort told in chapters, with lagoon water rippling in WebGL wherever the mouse goes.
- Alicerce: a home builder with a scroll-driven film from the clouds down to the finished house. It uses video instead of WebGL, which keeps it lighter.
FAQ
Can I build a 3D website in Lovable?
Yes. Lovable runs three.js fine. What usually fails is a vague request. A prompt that describes the scene, the camera, the weight budget and the phone version, or a template that already carries the code, gets you much closer to what you pictured.
Do I need to know three.js?
Not to get started. You need to describe what you want to see and check the result on a laptop and a phone. With a Vibran template the 3D code is already in the prompt, so the AI only swaps the text, photos and colors.
Will 3D make my website slow?
It can, if nobody watches the weight. Shadows, a high pixel ratio and large particle counts cost the most. Ask for a light mode on phones and a pixel ratio cap, then test on a real phone before you publish.
How much does a Vibran 3D template cost?
Basalto, Sala Curva, Alicerce and Alísio are Studio templates. Studio is US$ 24 a month or US$ 180 a year, with unlimited prompts. Gravidade is marked as a Pro item, and Pro is US$ 17 a month. International card payments are under maintenance right now, so if you are outside Brazil, message us on WhatsApp to subscribe.
Does it work in Claude Code and Cursor?
Yes. The prompt is the same: paste it into the chat and the AI creates the files in your project. The Vibran MCP server also connects to Claude Code and Cursor, not only Lovable.
Open the 3D templates, run them on your phone and pick your scene before you spend a prompt.
See the website templates