Loading video...

Video Failed to Load

Go Home

We asked Gemini 4 Argon to make a realistic 3D scene in pure Python with zero external libraries. It wrote 5,000+ lines of code and built its own 3D ray-tracing engine, custom video tool, and audio mixer to render and document this sunlit library from scratch — producing, narrating,...

180,288 views • 18 days ago •via X (Twitter)

29 Comments

Google's profile picture
Google18 days ago

View the source code →

Pranav Kakde's profile picture
Pranav Kakde18 days ago

@antigravity The impressive part isn’t just the 5,000 lines of code. It’s that Gemini built the entire rendering pipeline from scratch. AI is moving beyond writing code to engineering complete systems.

Synapse keyboard's profile picture
Synapse keyboard18 days ago

@antigravity Not only did it take forever to arrive, but it's not even available for Plus and Pro users. We want this for Plus and Pro users too!

Michael Kaiser's profile picture
Michael Kaiser18 days ago

@antigravity 5,000 lines of pure Python, thats crazy

Irienꫂ❁'s profile picture
Irienꫂ❁18 days ago

@antigravity the impressive part is building the whole pipeline from scratch!!!

CC's profile picture
CC18 days ago

@antigravity pure python with no numpy has to be hours per frame from interpreter overhead alone. did it actually write an mp4 encoder from scratch too, or how did it get video out without ffmpeg?

Anderson's profile picture
Anderson18 days ago

@antigravity pure python 3d scenes is one way to avoid the backlog

Nazeem Ahmed's profile picture
Nazeem Ahmed18 days ago

@antigravity the underrated part is the demo choice. nobody can verify a benchmark, but anyone can look at a sunlit library and judge it in 2 seconds play for anyone launching an AI feature: lead with one output a stranger can judge at a glance, put the eval table SECOND

The Lunar Misfit's profile picture
The Lunar Misfit18 days ago

@antigravity Asked for toast. It built a toaster factory. The toast is admittedly quite good.

张思考者's profile picture
张思考者18 days ago

@antigravity Writing a ray tracer from zero dependencies is pure engineering craftsmanship. Software is moving from importing libraries to forging its own tools.

E.T. Loves The Alphabet's profile picture
E.T. Loves The Alphabet18 days ago

@antigravity 🤯⚡️

Toolglade's profile picture
Toolglade18 days ago

@antigravity Building a custom ray-tracing engine, video tool, and audio mixer from scratch in pure Python with zero external libraries is mind-blowing. The level of complexity achieved here is next-level!

İsmail Kestel's profile picture
İsmail Kestel18 days ago

@antigravity impressive demo, but how many months of user quota were burned to render this? meanwhile, normal users lose 10% of their limit just asking for a text outline

Benjamin's profile picture
Benjamin18 days ago

@antigravity Tell a developer 'no libraries' and they update their résumé. Tell Gemini and it builds a ray tracer.

John Zhong | AI & User Growth's profile picture
John Zhong | AI & User Growth18 days ago

@antigravity Okay, now give it a completely different scene and see how much of that engine it can reuse. That's the follow-up I'd love to see.

Gustavo Jesús 🪁's profile picture
Gustavo Jesús 🪁18 days ago

@antigravity Building its own ray tracing engine with zero libraries is genuinely wild work

Jerome's profile picture
Jerome18 days ago

@antigravity building its own video tool with zero libraries probably means hand-writing the encoder too. how many attempts before the first frame came out clean?

Tai Carol's profile picture
Tai Carol18 days ago

@antigravity Amazing

煎饼狗子's profile picture
煎饼狗子18 days ago

@antigravity Building a custom ray tracer just to avoid pip install is both insane and deeply relatable.

skinnyguinea's profile picture
skinnyguinea18 days ago

@antigravity argon also wrote the voiceover and lyria soundtrack for that library video in the same run

Jason 6 🇦🇺's profile picture
Jason 6 🇦🇺18 days ago

@antigravity Yeah but you need the ultra tier to use Gemini 4 in the IDE so most of us will never know how good it is.

Julian C's profile picture
Julian C18 days ago

@antigravity So it basically speedran a mini Blender, in Python, for fun? Now I’m curious how it handled textures.

Bruno Cordista's profile picture
Bruno Cordista18 days ago

@antigravity Great demo.

Charlie Grant's profile picture
Charlie Grant18 days ago

does numpy not count as an external library?

Laura R👀's profile picture
Laura R👀18 days ago

@antigravity the fact that it rendered the window light without a single external library is genuinely making me question every skill i have

PawOddity's profile picture
PawOddity18 days ago

@antigravity Okay, now ask it to move one bookshelf without changing the rest of the room 😂 I'd love to see that follow-up.

Little K's profile picture
Little K18 days ago

@antigravity tbh the 5000 lines is the part thats easy to film. it only worked because someone already knew what to ask, most ppl still cant name the task

Mohammad Vazin's profile picture
Mohammad Vazin18 days ago

@antigravity Building its own ray tracer instead of importing one is a great demo. The harder test is round two: can it find the bug when a shadow renders wrong in 5,000 lines it wrote itself? Writing from scratch is solved; maintaining it isn't yet.

hoang tu's profile picture
hoang tu18 days ago

@antigravity Wow, cool!

Related Videos