r/ClaudeAI • • 1d ago

Built with Claude Claude Code graphics programming project - an Earth-sized procedural planet in Unity, from orbit to grass level

Claude Code wrote most of the code for this over about four months: one Earth-sized planet, all procedural, rendered live in Unity 6 (URP).

After a short intro of other places, the video is one continuous flight from 4,600km in orbit down to a few metres over a meadow and back out.

It's a personal R&D project that may become the base for a game, so there's nothing to download or try yet.

How Claude Code works on it

  • It drives the Unity Editor itself through an MCP server. It recompiles, reads the console, starts and stops Play Mode, and runs C# snippets inside the running editor to move the camera, switch features on and off, and take captures.
  • It judges by renders, not just numbers. Early on, the project drifted for a while by passing numeric checks while never looking right. Now every change is followed by a capture round: fixed viewpoints, my saved views, and before/after sheets with difference images. Claude looks at them, and numbers only back up what the pictures show. A full review round is currently 47 shots in about four minutes.
  • The repository is its memory. CLAUDE.md holds my defined standing rules. A handoff document says where the work stopped and what's next, so a new session, or one that ran out of context, picks up from there. There's also a development log, decision records, a tech note per subsystem, and a dead-ends file listing every failed approach, what happened, and what it might still be good for, so nothing gets tried twice by accident.
  • My screenshots carry a location line with the position, view and time of day. When I say something looks wrong, Claude goes to that exact view, reproduces it and measures it.
  • It works from papers and documents I keep in the project, and notes where it departs from them: in this case Ulrich's chunked LOD for picking tiles, Bruneton, Neyret and Holzschuch 2010 for the sea, and the RPV model for how deserts reflect the sun.
  • It writes its own measuring tools: frame times logged in motion, a hunt that flies a six-minute route counting one-frame flashes, push-in sequences that count what pops in, sheets comparing rounds, tests for motion and region seam artifacts etc.
  • Outside Unity, it scripts Blender through another MCP server for tree parts and other objects. Textures come from Codex's image model, cut and processed by scripts Claude wrote.
  • Even the video: Claude wrote the route recorder, it found the song's tempo, cut the intro on its beats, and sped up the descent with a ramp. And then the video post-processing, watermarking and compression is also handled automatically by Claude.

Who does what

I've done 3D environment art, shaders and tech art for a long time. I set the direction and the look, bring the references and papers, and judge every change by eye. Claude Code writes most of the code and all the tools. Codex did the first tests, and now makes textures and reviews subtle changes. That's about 270 commits since late July.

Claude will happily finish something technically right that looks wrong, so references and my eye decide. Unity's traps also had to be learned once and written into the rules.

The renderer, briefly

  • A cube-sphere quadtree. Every tile is the same 32×32 grid, generated on the GPU as you fly, from 25 octaves of 3D noise between 16,000km and about 1m. At the finest level, vertices are about 1.5m apart.
  • The camera stays at the origin, with its position kept in doubles. URP's TAA never sees the camera travel, so the travel is fed into it.
  • Hillaire's atmosphere and volumetric clouds from a global weather map. A climate model carries rain inland on the winds and decides where clouds, snow, forests and grass go.
  • The sea is currently the terrain clamped to sea level. Trees are grown after Palubicki et al. in the tree lab from my previous project, with impostors past about 100m. About 100,000 GPU grass blades a frame reach 250m.
  • It runs at 9-13 ms a frame at 1080p in the Editor on an RTX 3090.

Music made with Suno.

66 Upvotes

32 comments sorted by

•

u/ClaudeAI-mod-bot Wilson, lead ClaudeAI modbot 17h ago

TL;DR of the discussion generated automatically after 30 comments.

The consensus is that this is an absolutely stellar project. The community is overwhelmingly impressed by the visuals and the technical achievement of having Claude Code build a procedural planet of this scale.

However, the thread's not just a love-in. Here's the breakdown:

  • The Clouds: The most common critique is that the clouds look like a flat layer, which breaks the immersion. OP is aware and says improving the volumetric clouds is a work-in-progress, explaining it's a tricky custom job in Unity's URP.
  • "Wen release?": Lots of people are asking what it's for and when they can play with it. For now, it's a personal R&D project that might become a game, but there's nothing to download yet.
  • The Drama: Things got a little spicy. One user got downvoted for calling it "slop." More seriously, another user accused OP of stealing code from Star Citizen's Planet Tech. OP came back with receipts, denying the claim, pointing to a documented dev history, and threatening to call their lawyer. The mods had to pop in and remind everyone to play nice.

7

u/MrCalista 1d ago

Impressive!

The clouds disturb me though - the cloud layer appears like a plane, instead of the clouds being volumetric. I've never used Unity though, so unsure of what its engine can do.

One of my elec eng subjects....back in the 80s! .... was writing the microcode for a shading chip. often wondered what my EE course would be like today.

2

u/imlo2 21h ago

This is still very much work in progress. The cirrus clouds high up are a thin layer, and the volumetric cumulus cloud shading could also be improved a lot, I know there's much more photorealistic ones out there, but one thing at a time. It's not really a Unity thing - there's no built-in volumetrics in URP (the renderer), HDRP (the other renderer in Unity) does have volumetric sky but it's designed for planar areas, and mostly to be viewed from ground, not for flight simulators and definitely not for planets. So that means that the spherical sky systems need to be written from scratch with a raymarcher.

2

u/RenderSlaver 1d ago

It's cool. What's it for?

1

u/imlo2 21h ago

Technical research currently, to see if this could be used for a game concept.

2

u/war4peace79 Vibe coder 1d ago

Looks awesome. The zero-height cloud cover is what breaks the immersion a bit, but, as far as I'm concerned, it's not a big issue.

Have you tried having Claude use Unity and Blender directly, instead of via MCP?

I have it access Blender and Godot directly (headless) and it works very well. I found the MCP interface slows it down a bit.

1

u/imlo2 21h ago

Thanks. It's still very much work in progress, like I've replied to a few other people, I'm going to try to improve the cloud rendering realism.

I have not really used directly Unity, I do know that many people claim that using directly saves a ton of tokens in long work sessions, but MCP also has its many benefits, which direct access doesn't have, and it saves Claude/Codex from building tools and such support mechanism quite often. And I haven't ran out of usage in full day work, 7 days a week, so I haven't looked into that from savings perspective yet. I have already now optimized sub-agent behavior etc. to use cheaper agents for some savings on reading and summarization etc.

But definitely I could do a test in next test projects to see how well it works. I have no doubt that Claude couldn't figure out things easily as it can reverse engineer and do many more complex things too. Thanks for the heads up.

1

u/cagonima69 1d ago

This is stunning !

1

u/imlo2 21h ago

Thanks!

1

u/joachim_s 1d ago

And when and where can we run it?

1

u/imlo2 21h ago

Nowhere yet, it's a tech research and development project, which might eventually end up to being a game, or a product.

1

u/[deleted] 19h ago

[removed] — view removed comment

1

u/imlo2 18h ago

Your allegation that I decompiled or copied CIG's proprietary technology is entirely false.

This is an independently developed research project in Unity, with a documented development history, source code, and hundreds of commits dating back to July.

If you're making an accusation of copyright infringement, please provide concrete evidence rather than presenting speculation as fact.

I take this kind of allegations seriously. Screenshot is already saved so no need to try to edit your message. This sounds really misinformed, and quite defamatory. I'll pass on that to my lawyer if you continue this behavior.

1

u/ClaudeAI-ModTeam 17h ago

This subreddit does not permit personal attacks on other Reddit users.

1

u/ClaudeAI-ModTeam 17h ago

This subreddit does not permit personal attacks on other Reddit users.

1

u/vibecodeme 23h ago

I have to say this is most realistic I’ve seen so far

1

u/imlo2 22h ago

Thanks. It's still work in progress, I'll improve the clouds and a few other things next, like import more of the undergrowth system from my other project which is smaller scale focused (square kilometres:)

1

u/vibecodeme 22h ago

A lot of dev teams could benefit from such a project. Just as a food for thought: allow it to be purchased by people to be used in their project (once it reaches “maturity” level you define for yourself). Good luck!

1

u/Govoleo 20h ago

do you thing something similar can be done in unreal engine5?

1

u/imlo2 20h ago

Definitely, or at least I would assume so. But I could be wrong too as plantetary rendering adds it's own complexity for transforms, moving objects around etc. and setting up the whole thing can have some obstacles. And what works for contained, relatively small areas on flat surface, might not easily translate (or at all) as an technique to different scale and requirements.

1

u/Content_Ad5430 22h ago

This could be such an excellent piece of educational software! If it included a timeline slider—allowing users to explore every major era of the geological timescale, complete with its respective wildlife (such as the Cambrian, Silurian, Devonian, etc.)—and offered a fully explorable environment, children would never want to stop playing. This is exactly what AI should be used for—bravo!

1

u/Luna-_-Luna 19h ago

I am really loving all these visual projects with Claude

-6

u/[deleted] 1d ago

[removed] — view removed comment

1

u/ClaudeAI-ModTeam 17h ago

Please be constructive on r/ClaudeAI. Simply calling a work "AI slop" is often less constructive than the work being criticized itself.

1

u/FriskyFingerFunker 1d ago

I absolutely would love to check it out. What do you even mean? It’s a neat project even if it’s done by AI.

0

u/FrostFromGrimbo 23h ago

What I’m trying to say is, the two or three people from this sub who will check it out won’t see the overwhelming majority of it because it is, after all, earth sized, and it’s practically impossible for one person to explore all that much of it in depth. So most of it will simply never be seen. Simple as that. No malice in that statement, just thought it was interesting.

1

u/war4peace79 Vibe coder 23h ago

No man's sky, a pretty popular game, has 18 quintillion star systems. Just saying.

And while at it, check out their upcoming "Light no fire" game.

1

u/FriskyFingerFunker 21h ago

Oh ok lol so more of a 3am/shower thoughts kinda thing. I read it as malice but i got ya now

1

u/war4peace79 Vibe coder 1d ago

Are you angry by default, or just today?

0

u/FrostFromGrimbo 23h ago

Filled with rage, my friend. Filled with rage.