Photorealistic Videos Generated Purely from Code with Fable 5.2

X postMoritz KrembDemo

Moritz Kremb explores how Fable 5.2 uses Claude to create photorealistic video sequences entirely from code without standard video models or Blender. The entire environment is written in C++ and audio is generated in Python. It offers a new technical perspective for developers and creators.

Key points

  1. Fable 5.2 generates photorealistic video entirely through code without video models or Blender.
  2. The full 3D environment is written in C++, while accompanying audio is synthesised in Python.
  3. Camera properties such as lens, focus, motion blur, auto exposure, and grain are simulated.
  4. A single rug in the rendered scene consists of around 900,000 individual fibres.
  5. Rendering the video clip took approximately one hour on a Mac.

Why it matters

It demonstrates how generative models can produce fully deterministic, code-based 3D simulations rather than relying on pixel-based video diffusion models.

Analysis

Moritz Kremb examines how Fable 5.2 uses Claude to generate photorealistic videos entirely through code. Instead of relying on generative video models or 3D software such as Blender, the complete environment is written directly in C++. The implementation simulates physical camera properties, including lens characteristics, focus, motion blur, auto exposure, and grain. Concurrently, audio is synthesized using Python. A striking detail highlighted in the demonstration is a rug constructed from approximately 900,000 individual fibres directly within the code. Rendering the finished scene required around one hour on a Mac. This workflow demonstrates an alternative to diffusion-based video generation by focusing on deterministic geometric descriptions and code-driven simulation. Community feedback also raised questions regarding computational efficiency, noting that human creators typically apply rendering shortcuts for complex elements like carpets or hair, whereas the code generator invested substantial computation into modelling every fibre.

Original post

Moritz Kremb

@moritzkremb · 18 November 2026

How fable 5.2 creates photorealistic videos with only code I wanted to understand how this actually works. So I dug into how claude does it. Full breakdown: t.co/2TLmD76AV7 t.co/cfQreRckxY

347 likes20 replies664 bookmarks22.7k views

View on X
More posts in the thread (7)
  1. @deezeecodes did you try with fable too to compare? i haven’t fully tested the new gpt models yet
  2. @philwhln good point! really funny it decided the rug was so important
  3. @philwhln @grok how was hair solved?
  4. @koltregaskes 🙏
  5. @RichardsonDx 🙏 thank you!
  6. @mr_igor_sanz interesting. @grok what is metahuman?
  7. @BubbleBrain thanks for the original video that inspired this! great job
Selected replies (5)
  • @philwhln @moritzkremb Great explanation, Moritz! I think a human-in-the-loop may have questioned spending so much effort on the rug and dinosaur and found a cheaper way to do those parts. Maybe instructing Claude to analysis its plan and look for cost savings or short-cuts before entering the
  • @mr_igor_sanz @moritzkremb I believe that details like humans are just matter of time. Because MetaHuman exists so it’s definitely possible in future. Another cool thing that I think has benefit. If it’s code, Claude can build also UI for control. Like you showed for table.
  • @deezeecodes @moritzkremb those videos are so cool. I tried with Sol and Astra and the results are not even close (also limited by using only CPU) but still very impressive.
  • @philwhln @moritzkremb It makes sense. The rug is complex. Like hair, which has historically been a challenge in computer graphics. Computer animation has historically been full of tricks to get around the most expensive parts. With AI, we may be able to use computers to reason about those expensive
  • @BubbleBrain @moritzkremb Good video!

Summary generated by AI (Gemini 3.8 Flash, 20 November 2026). It may contain errors – the original source is authoritative.

Similar in content, found by the AI search.

  • X post:Eric Buess

    Code-Driven Video and 3D Visualisation with Opus 5.5

    Eric Buess curates a thread of community demonstrations showcasing how Opus 5.5 and Claude Code produce videos, 3D scenes, and interactive educational graphics, frequently relying entirely on programmatically generated code rather than traditional diffusion models.

    176bookmarks77.3kviews

    AI & LLMs· Demo

  • X post:Riley Brown

    AI Video Generation: The History of Writing with Claude Fable 5.2

    Riley Brown showcases 'The History of Writing', a video generated from a single prompt using Claude Fable 5.2. The project, prompt, and files were published on v2, described as 'GitHub for video editing'.

    74bookmarks5.8kviews

    AI & LLMs· Demo

  • X post:AmirMušić

    3D Video Generation Using Blender and Claude Code via Single Prompt

    Amir Mušić demonstrates a method for generating 3D animated videos without relying on generative video models. Users feed a structured prompt into Claude and edit a single object variable, enabling Claude Code to drive Blender directly.

    93bookmarks4.1kviews

    AI & LLMs· Demo

  • X post:Mia

    Claude Fable 5.1 Generates Single-File HTML with Audio in a One-Shot Prompt

    Mia (@MiaAI_lab) shared an experiment testing Claude Fable 5.1 via the Claude Code CLI in 'high effort' mode. The model was prompted to build a visually striking single-file HTML page with sound in a single pass. Discussion in the thread noted that the output closely resembles established fluid simulation code.

    142bookmarks17.4kviews

    AI & LLMs· Demo

  • Video

    Video:CURT

    Claude Fable 5.2: Capabilities in Robotics, Hardware Design, and Agentic Coding

    Anthropic has released Claude Fable 5.2 and Mythos 5.2, featuring a 1-million-token context window. Alongside gains in robotics and mathematics benchmarks, a real-world test demonstrates overnight reverse engineering of accounting software. The overview evaluates practical implications for developers and enterprises.

    AI & LLMs· News

Let's talk about your project

Locations

  • Mattersburg
    Johann Nepomuk Bergerstraße 7/2/14
    7210 Mattersburg, Austria
  • Vienna
    Ungargasse 64-66/3/404
    1030 Wien, Austria

Parts of this content were created with the assistance of AI.