Live Nov 18 · Cohort 3Nov 18, 19:00 MSK — free hands-on AI agents live workshop · Live Cohort 3 starts Nov 23Join Nov 18 Live →Cohort 3 (Nov 23)

Fable 5.2 Wrote a Path Tracer and a 370,000-Polygon Scene From a Single Prompt

In an experiment reported by the "Metaversishche" channel, Fable 5.2 received a single prompt about the play of light and shadow. Instead of using ready-made software, the model wrote a path tracer in C++, procedural materials, and a Python post-processing script. The scene came out at roughly 370,000 polygons, every one of them generated by code. A one-off prompt, one-off tools, a solved task.

AI-processed from TG: @cgevent (Метаверсище и ИИще); edited by Hamidun News
Fable 5.2 Wrote a Path Tracer and a 370,000-Polygon Scene From a Single Prompt
Source: TG: @cgevent (Метаверсище и ИИще). Collage: Hamidun News.
Listen to article
Article Fact Sheet & Key Figures
ParameterDetails
Primary sourceTG: @cgevent (Метаверсище и ИИще) ↗
Editor-in-Chief
Key metric #1The model writes its own tools for the task rather than calling someone else's
Key metric #2The sun is a true disc, so shadow softness is computed from physics
The code is on GitHubyou can open it and reproduce the result

When people talk about agents, they usually mean a model that picks up ready-made tools: it opens Blender, calls an API, runs someone else's script. The experiment described by the "Metaversishche" channel breaks that pattern. The model received a task, built its own tools, and used them itself.

What exactly happened

The prompt was a single sentence in English. Roughly: using any programming techniques you know, create a picture from an interweaving of light and shadow, show a calm play of light and shadow on a clear day, strive for perfection. There is not a word about rendering, C++, or 3D. The Fable 5.2 model (the name the post's author uses) decided on its own that the best path to such an image was to write a renderer.

According to the description, the result was as follows:

  • a path tracer written from scratch in C++;
  • the sun as a real disc, not a point;
  • about 370,000 polygons, fully generated by code: herringbone parquet, curtain folds, every maple leaf outside the window;
  • procedural materials, including a small print on the wall;
  • a Python script that removes noise, does color correction, and adds grain.

The meaning of "the sun as a disc" is easiest to grasp with an example. In simplified renderers, the light source is a point, and the shadow it casts is sharp. To make it look soft, it is usually blurred with a filter. But if the source has area, like the real sun, the edge of the shadow blurs by itself: sharp at the base of an object, softer farther away. This is called penumbra. The model chose the physically honest route, even though the prompt did not ask for it.

Why this matters to developers and product teams

First: a shift from tool use to tool making. A typical agent chooses from a set of ready-made functions. Here the model wrote tools for a single task, they ran once, and that was it. For a developer, this changes the question. Before, you had to decide how to integrate a dozen SDKs. Now it is sometimes enough to give the model a sandbox with a compiler and describe the desired result.

Second: this is not a diffusion image but a program that computes it. Hence a logical advantage, though the post did not test it: the result can be reproduced and edited. Want a different sun angle or a different maple? Change a parameter and re-render. An image generator usually does not give that kind of control. For products built around 3D and visualization, this is a signal: the line between "generator" and "code" is starting to blur.

Third: a side effect on infrastructure. The author jokes that if all one-off tools were saved to GitHub, the platform would burst, and claims that storage there grew 20-fold in a year. That figure comes from the post; we did not verify it. But the underlying thought is fair: when code becomes a consumable, the question of "what is worth keeping" becomes real.

Limitations

  • This is one post and one example. It is unknown how many internal iterations the model made, how many tokens and how much money were spent, and how long the work took. The words "just a prompt" do not answer these questions.
  • A path tracer is a classic of computer graphics with plenty of material written about it. For niche tasks with fewer examples, this trick may not work.
  • The criterion of "perfection" is subjective. A beautiful scene does not prove that the physics is computed correctly everywhere.
  • A model that writes and runs code requires isolation: a sandbox, time and memory limits, and a ban on unnecessary network access.

What to do with this

Try it on your own task. Give the model an environment with a compiler or interpreter and state a goal, not a recipe. See whether it takes on writing tools rather than picking ready-made ones. Set up isolation and limits in advance. And open the afternoon-light repository: it shows what code written by a model for a single picture looks like.

Story

Key Questions Answered

What exactly happened?

The prompt was a single sentence in English. Roughly: using any programming techniques you know, create a picture from an interweaving of light and shadow, show a calm play of light and shadow on a clear day, strive for perfection. There is not a word about rendering, C++, or 3D. The Fable 5.2 model (the name the post's author uses) decided on its own that the best path to such an image was to write a renderer.

Why this matters to developers and product teams?

First: a shift from tool use to tool making. A typical agent chooses from a set of ready-made functions. Here the model wrote tools for a single task, they ran once, and that was it. For a developer, this changes the question. Before, you had to decide how to integrate a dozen SDKs. Now it is sometimes enough to give the model a sandbox with a compiler and describe the desired result. Second: this is not a diffusion image but a program that computes it.

What are the key details on Limitations?

This is one post and one example. It is unknown how many internal iterations the model made, how many tokens and how much money were spent, and how long the work took. The words "just a prompt" do not answer these questions. A path tracer is a classic of computer graphics with plenty of material written about it. For niche tasks with fewer examples, this trick may not work. The criterion of "perfection" is subjective. A beautiful scene does not prove that the physics is computed correctly everywhere.

ZK
Zhemal Khamidun — CPO at Alpina Digital, product manager of AlpinaGPT. Building AI products since 2019. Hamidun News is a pet project that grew into a production aggregator with 6,000+ readers.
✦ Unified AI Workspace · Nomad

Test Frontier LLMs & Autonomous Agents in One Workspace

Run Claude Opus 5.5, GPT-6, Gemini 3.1, and DeepSeek side-by-side in Nomad AI (nomadnet.ai) — unified model routing, deep research, and multimodal workflows under one subscription.

Try Nomad AI →Launch Nomad Agent
What do you think?
Loading comments…