Gemini 4 Argon wrote 5,000 lines of Python, building a 3D ray tracer from scratch

fofrAI · x · 2026-10-14

Creator fofrAI casually asked Argon to render a realistic scene in pure Python; the model wrote 5,000 lines of code and built its own 3D ray-tracing engine from first principles. The accompanying video, TTS voiceover, and background music (via Lyria) were also produced by Argon.

The code is open-sourced as gemini-4-demo-vanilla-3D on GitHub: a Python+NumPy offline ray tracer rendering a sunlit concrete-and-walnut library, plus a real-time vanilla JavaScript+WebGL2 browser engine that reshapes the room as you resize the frame.

Related event: Gemini Argon writes 5,000 lines of Python to build a ray tracer from scratch(2 posts)→

Original post →

More from Fun

Fun channel →