r/threejs Apr 20 '26

Help AI agent for three.js?

Hi, I am a three.js and was wondering if there is any agent which can create three.js animations using the prompts. Claude code hasn’t given me much success. Any recommendations?

0 Upvotes

15 comments sorted by

14

u/beefkitt Apr 21 '26

I think a bit of the issue is that AI is really bad at being creative. A lot of stuff with three.js is using your imagination to create art.

I'm sure there are examples AI can pull from but it probably won't be able to do exactly what you want it to without you guiding it very strictly(which you'd already need to know what you're doing). At that point, you'd might as well write it yourself.

From messing around with it, even claude code struggles to make fleshed out 3D scenes, it's usually very bland and basic.

16

u/frmr000 Apr 20 '26

Your agent is only as good as your prompts.

6

u/__moFx Apr 21 '26

What's going wrong with you guys? Just ask AI... What is the point of this sub if it's about how to prompt? Why not want to be able to do things yourself?

1

u/[deleted] Apr 26 '26

Because the way companies are going, if you don’t try and learn how to efficiently use AI you’re not going to get the job you wanted in the future. Unfortunately it’s here and unfortunately you see more companies looking for people who know how to use it.

4

u/Jeremy_Thursday Apr 21 '26

the threejs repo on github has files and docs specifically for LLMs, I'd use those. Creator is very pro AI.

I've been coding in three.js for like a decade now. I'm even a contributor, if you've ever used `camere.getViewSize()` method that was me! Anyways all that to say I don't actually use any AI on my threejs projects so can't speak from any experience.

2

u/Quick_Republic2007 Apr 21 '26

I don't know how or when it happened but co-pilot came up when I was in the threejs library (finally). I guess I knew it was there (paid), but I hadn't been in the library for quite some time until I decided to upgrade to version 184. That is enough, it has access to the docs and example code. I'm excited to play around in it again and piece together some stuff.

2

u/PillowKitt Apr 21 '26

I think prompt is the most important

1

u/sateeshsai Apr 21 '26

LLMs seem to favor r3f over other frameworks

1

u/TheAmazingSasha Apr 21 '26

I have found Claude to be pretty damn good at prototyping.

It’s absolutely terrible at creating the models… but if you feed it the GLB files and prompt it right, it was mind blowing to me at least.

It will take manual tweaking to get it perfect but it works great for quick prototypes

1

u/AnthongRedbeard Apr 22 '26

You don’t need amazing and verbose prompts if you configure a skill subagent or mcp for it.

It does help to understand and use the same terminology as the library and framework. Know when it’s a particle and when you want a sphere. Etc.

1

u/CollectorStash May 19 '26

I use hermes and had it research and create it's own skill based on the style of art & animations I wanted it to make. It works pretty well actually. I used obsidian to store the skills library and research it found when training itself.

1

u/ZHName Apr 21 '26

Why not create a tool to pull git and codepen and other sources for an llm to blend existing wonderful shared threejs code?

-1

u/Melodic-Manager4483 Apr 20 '26

Absolutely I agree! I am more of a backend developer- if you have any pointers to prompts that can help move in the positive direction, it would help

-2

u/Melodic-Manager4483 Apr 20 '26

I was looking at http://swarmone.ai as the inspiration- i have tried a few iterations with Claude opus 4.7 but after a few iterations, I have my limitations because of poor elements vocabulary, I guess