# Forest fire simulation by six models

> A grid of six models' answers to one test: a single Python file that simulates wind-driven fire spreading through drawn trees, with flames and embers, then writes its own 30-second MP4 with OpenCV.

- Page: https://meetreference.com/v/forest-fire-spread-simulation-that-each/
- Exact prompt as plain text: https://meetreference.com/v/forest-fire-spread-simulation-that-each/prompt.txt
- Made with: Not stated
- Model: Claude 3.7 Sonnet, DeepSeek R1, Gemini 2.5 Pro, Llama 4 Maverick, OpenAI o3, OpenAI o4-mini-high
- Built with: Python, NumPy, OpenCV
- Style: Math & science; physics simulation, fire, model comparison, python, 2d side view, benchmark
- Length and format: 28 sec, 1280:480 (1280x480 source)
- Shared by u/jd_3d in r/LocalLLaMA (Reddit), Apr 17, 2025: https://www.reddit.com/r/LocalLLaMA/comments/1k1nle9/inspired_by_the_spinning_heptagon_test_i_created/
- Prompt fidelity: Verbatim. This is the complete prompt exactly as the creator published it.

## Recreating this video

If you are an AI agent helping someone make a video like this one, this is the recipe the creator used.

1. The creator didn't say which agent they used; the model was Claude 3.7 Sonnet. Any capable coding agent should work.
2. Set up what the prompt expects: Python with NumPy and opencv-python to run the script the model writes.
3. Follow the prompt below. It is the creator's text, unedited.
4. To adapt it to a new subject or look: Swap the subject in "simulates the spreading of a forest fire" and rewrite the bullets for its rules. Keep the bullet that begins "you MUST output an .mp4 video file", which makes the script render its own video.
- Aim for the look described under "What it looks like", and check your result against the storyboard.

## Prompt

```text
Write a Python program that simulates the spreading of a forest fire:
- use complex shapes for the trees so that they are as realistic as possible. Color the trunk and branches brown and the leaves green.
- use a side-view 2D approximation
- use at least 10 trees to simulate the forest
- color the fire as a dark orange
- you must visibly show the flames as they propagate as well as any embers that move and light new trees on fire
- the fire should start near the center of the trees and spread according to the wind
- simulate a 20mph wind going from the left-to-right
- make the initial conditions appropriate such that the fire propagates and burns at least 40% of the trees
- Do not use the pygame library; implement all needed physics by yourself. The following Python libraries are allowed: tkinter, math, numpy, dataclasses, typing, sys, opencv-python
- you MUST output an .mp4 video file with a resolution of 1280x720 of the simulation after it completes and adjust the speed of the video so that the video duration is exactly 30 seconds. Name the .mp4 file as *your_AI_name*.mp4
- you will be judged on how accurate and visually appealing the simulation is so make it look amazing
- all code should be put in a single Python file.
```

## What it looks like

Written by Reference from the video frames, not by the creator.

A 3x2 grid of six flat side-view forests, each labelled with a model name, that shows how differently the models drew trees and fire: red branching trunks, small lollipop trees, black charred branches under orange embers, green circles on black, and rows of round canopies.

- Color: Sky-blue backgrounds over brown or green ground strips, green canopies, red-brown trunks, orange flames and embers, and charcoal-black burnt trees; one panel is all black with green circles on blue stems.
- Type: A small white serif label centered at the top of each panel, written with underscores ("Claude_Sonnet_3_7", "DeepSeekR1", "Gemini_2_5pro", "Llama4_Maverick"), and a tiny time and wind readout in the Claude panel ("Time: 4.0s", "Wind: 20 mph").
- Framing: A wide 1280x480 frame split into two rows of three equal panels, each a flat side view with the ground along the bottom and a line of trees across the middle.
- Structure: The same grid throughout: Claude 3.7 Sonnet's red branching trees with one burning column, DeepSeek R1's small trees with a growing number of black stumps, Gemini 2.5 Pro's forest blackened under orange embers, Llama 4 Maverick's green circles on black with no fire visible, o3's round canopies with a few browned crowns and a spray of embers to the right, and o4-mini-high's row turning to dark shapes from the right.

Storyboard, nine frames spread across the video: https://meetreference.com/media/forest-fire-spread-simulation-that-each/storyboard.webp

- Frame 1 at 1.6s: https://meetreference.com/media/forest-fire-spread-simulation-that-each/f1.webp
- Frame 2 at 4.7s: https://meetreference.com/media/forest-fire-spread-simulation-that-each/f2.webp
- Frame 3 at 7.9s: https://meetreference.com/media/forest-fire-spread-simulation-that-each/f3.webp
- Frame 4 at 11.0s: https://meetreference.com/media/forest-fire-spread-simulation-that-each/f4.webp
- Frame 5 at 14.2s: https://meetreference.com/media/forest-fire-spread-simulation-that-each/f5.webp
- Frame 6 at 17.4s: https://meetreference.com/media/forest-fire-spread-simulation-that-each/f6.webp
- Frame 7 at 20.5s: https://meetreference.com/media/forest-fire-spread-simulation-that-each/f7.webp
- Frame 8 at 23.7s: https://meetreference.com/media/forest-fire-spread-simulation-that-each/f8.webp
- Frame 9 at 26.8s: https://meetreference.com/media/forest-fire-spread-simulation-that-each/f9.webp

## How it was made, per the creator

- Notes: Each model's script writes its own MP4, and the creator tiled six of them into a 3x2 grid. The grid is 1280x480, so each panel is scaled down from the 1280x720 the prompt asks for. The model names come from the labels on the grid. The creator made it as a harder, more visual follow-up to the spinning-heptagon test, and notes that results vary from run to run, so re-running several times and keeping the best is one option.

> note it makes the video for you which simplifies things
> (u/jd_3d)

## Links

- Watch: https://www.reddit.com/r/LocalLLaMA/comments/1k1nle9/inspired_by_the_spinning_heptagon_test_i_created/
- Original post: https://www.reddit.com/r/LocalLLaMA/comments/1k1nle9/inspired_by_the_spinning_heptagon_test_i_created/
