r/claude • • 2d ago

Showcase 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.

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 markdown 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.

276 Upvotes

37 comments sorted by

19

u/Macaroon-Guilty 2d ago

The challenge was to create something like that, now the challenge is to make it interesting

11

u/BalterBlack 2d ago

Well. It already looks interesting. It's a programming project. He didn't say it's a game.

2

u/romansamurai 1d ago

I don’t think he’s knocking what he did. I took it as that was the challenge for us as a whole. To be able to create something like this and now we can. Next step is to be able to make it interesting. Or maybe I’m just naive thinking that’s what he meant lol

1

u/PHNTMS_exe 2d ago

right like what lol

-3

u/dota2nub 1d ago

He also didn't do any programming.

1

u/VesperQuest 1d ago

The classic "open world game" problem haha. Though, that only matters if the intention is for it to be interesting beyond a learning/programming project/showcase of technology.

This is really cool alone!

1

u/Witty-Silver-7216 2d ago

Grass level?

1

u/imlo2 2d ago

20-30cm from surface, it will eventually have more than just grass/reed, undergrowth system is in rudimentary state/I can borrow from my other project.

2

u/NFN25 2d ago

Looks great!

2

u/slowgojoe 2d ago

Looks great man!

2

u/Flat_Barber_1602 1d ago

Looks awesome! Bravo

2

u/Evening_Chair3570 1d ago

Does it have the common places on Earth? Is it walkable, like if I need a cutscene for my game at a specific location, can I "shoot" it there? Have you open sourced the repo?

1

u/Usual_Ad8236 1d ago

next month onwards you can buy a house there and start living ;p

1

u/Evening_Chair3570 1d ago

ಠ⁠﹏⁠ಠ

1

u/Frenascena 1d ago

Turns out it's easier to generate and populate our own planets rather than visiting the ones near us.

2

u/aysengurev 1d ago

WoW is a real good job

2

u/camracks 1d ago

Open source it!! I would love to see how others move it forward

2

u/Life_Pen_5561 1d ago

Owesome!

2

u/Crafty-Run-6559 1d ago

Looks good, but do you have any plans for the clouds?

I built a very similar project in unreal and really struggled with 3D clouds that look decent but also perform well.

Yours seem to just be flat 2D sheets?

1

u/dirtyhole2 23h ago

They are clearly volumetric clouds. Unreal default clouds suck ass, not to mention lighting… I think I might move my project to Unity too…

1

u/Crafty-Run-6559 22h ago

I was referring to the ones at about 20 seconds in. They dont look like volumetric clouds there at all.

1

u/ApprehensiveLoan7715 18h ago

yeah, didn't notice that. The volumetric clouds and the plane ones seem to overlap. One was probably just to be visible from far away. But they forgot to stop rendering it once camera got close, probably

1

u/sunsan05 1d ago

非常好的项目,希望可以在fable6之前推出,并且做好一定的反编译防护。

1

u/dirtyhole2 23h ago

Hey bro, I am too building a space sim with landable habitable planets. Can you share with me the code for your clouds? Is it a plugin or claude built it? You can DM me if you prefer

1

u/Dry_Tie_9731 1d ago

The sun is too big; at this size, the planet lies in a zone that causes considerable sunburn.

0

u/Medium-Rub-308 1d ago

Why so defensive? Do you just expect blind praise? It feels like the main issue here is do you have a plan or are you just spending huge amounts of compute on a tech demo?

Give us some back story, or a future vision, or something that makes it look like you're not just wanting everyone to go oh wow.

It honestly seems like even your post is generated by Claude. I'm not sure why it's unreasonable to critique your post. "Show us what you made" is kind of irrelevant as a response, considering most people aren't showing is a whopping great tech demo with almost no context.

0

u/emkoemko 1d ago

hahah can't even be bothered to write up your project description your self? jfc lazy

-1

u/dota2nub 1d ago

Couldn't get away from Claude making that fucking bloom sun, huh?

3

u/imlo2 1d ago

It didn't "make it" - there was absolutely no bloom for months; I tweaked the atmosphere settings a few days ago. But I guess there's nothing positive to say?

-2

u/dota2nub 1d ago

I mean I know what things look like that took a lot of effort at this point. Tech demos don't qualify anymore. The goalposts have moved.

4

u/imlo2 1d ago • Heartwarming

Yes, well thanks for telling where the goalposts are now, and knowing what qualifies or not. I've been in game dev for 30 years and I do follow what's happening quite closely and I'm perfectly aware where this is, if I compare it to something that's further ahead when it comes to rendering, shading, pushing millions of polys to screen etc. But as I'm trying to advance this and put effort in, your input really doesn't help at all - there's no substance or actionable feedback, you just basically say it's "not good". I have a roadmap of updates planned, and what I want to achieve, but I thought it's worth sharing at this point. Seems like some people appreciate seeing it, and it's still very early in development.

-1

u/dota2nub 1d ago

You put this here, not your roadmap of updates

-3

u/Nothing_from_void 1d ago edited 1d ago

The criticism he's giving you is it looks like generic Claude output. The demo and reddit post also look like generic Claude output. You might not like it, but saying there's no substance or actionable feedback is false; it looks like you aren't really doing anything, Claude is doing almost everything, and it shows

How am I supposed to show you what I made if you just block me, you didn't think it through huh

3

u/imlo2 1d ago

Thanks. Let's see what you made.