
This is the first of three devlogs for people who like to know how things work. No new features to play this time, but the tools I have been building behind the scenes, all of them around Blender.
Hangar Valley is made in Godot. Almost everything you see in it starts in Blender: the planes, the hangars, the trees, the people. Usually those two programs live apart. You model something in Blender, export it, import it into the game, start the game, walk to the spot, look, and go back to Blender. Over the last weeks I tore down that wall. The picture above is not a render and not a second window laid over Blender. It is Hangar Valley itself, running inside Blender and drawing into Blender's own 3D viewport.
How it works
- Godot as a library. Godot can be built as a shared library (libgodot) instead of a program. I built Godot 4.6.2 that way and added a small "hosted" layer for macOS. Godot does not open a window of its own: it renders with Metal into a layer that sits exactly on top of Blender's viewport.
- Data by pointer, not by file. A small Blender add-on talks to that library directly. A mesh goes from Blender's memory into Godot's memory as a pointer to its vertices. No export, no files, no network socket and no second program. Only the axes need a turn on the way, because Blender is Z-up and Godot is Y-up.
- One clock. Blender drives the frames. On every tick, Godot runs one step on Blender's own thread, so nothing has to be locked or copied between the two.
- 0files or sockets between Blender and the game
- 22 sfirst start of the whole game inside Blender
- 1 processBlender and the game share memory, thread and window
Two views of one world

- Scene view. Godot draws offscreen, the picture is read back into a Blender texture, and Blender draws its own gizmos, outlines and selection on top. You select, move and edit as in any Blender scene, but what you see is the game's real lighting, shaders, sky and grass.
- Game view. The game's own picture, full speed. Press Play and your keys and mouse go to the game: walk, fly, open the menu. Move the mouse out of the view and the game pauses, so Blender keeps its keys.
- Or both. Scene, Both or Game, at the top of the window. Blender remembers where you left it.
The story, playing in Blender
In the cockpit, inside the hangarBoth ways
- The game world in Blender. One button pulls the game's meshes, materials, textures and UVs around you into Blender, linked to the live objects in the game. Move a tree in Blender and it moves in the game. Move it in the game and it moves in Blender.
- A workbench. New props are built in their own small Blender file. Link it once, and every save shows up in the running game within seconds. That is how the wooden signpost and the four plane wrecks west of the runway were made.
- A remote for the game. A side panel in Blender sets the hour, the sky and the wind, jumps to a story moment, and takes you to any spot you click. It talks to the game through a tiny bridge object: Blender writes a command, the game writes its answer.
- A tree row. For work on trees and flowers there is a smaller scene: all 20 painted tree kinds in a row under the game's own sky, with buttons for spring, summer, autumn, leaf fall and winter.
Snow on the spruces, in the tree row
Season buttons above the lakeWhat fought back
- The game restarted Blender. The game reloads itself when its code changes, by starting its own program again. Inside Blender, "its own program" is Blender, so a code change opened a second Blender. Hosted Godot now refuses to start its host.
- The whole world in one frame. On the Mac the world is built in a single frame. A full reload (8.2 seconds: 2.2 for the terrain, 2.1 for the plane and its cockpit) froze Blender for all of it. The fix rebuilds only the part of the world you touched, in place: 20 to 250 milliseconds per part.
- Who owns Escape. Esc opens the game's menu, and Esc is also Blender's key to stop playing. The window now has its own Esc button for the game, and Shift+Esc while playing.
- A plane that fell over. After a restart the plane was placed level on its wheels and tipped back onto its tail within a second. It is only stable in its resting attitude, nose 3.4 degrees up, so that is how it is put down now.
It is a prototype, Mac only for now. Blender's overlays sit under the game's layer in the Game view, and there is one game viewport at a time.
Why
Because this is how I want to make the game: shape the world while you see the real game, with its light, its weather and its season, and walk into it a second later. The next two devlogs are about two things that took a lot of Blender's help: clothes that are sewn, and hair that is combed.
Feedback welcome
- Do you use Blender or Godot yourself? What would you do with the game running inside Blender?
- Is a peek behind the scenes like this interesting, or do you prefer the update posts?
Behind the scenes, in three parts: 1. The game runs inside Blender · 2. Clothes cut from real patterns · 3. Hair, from a comb to a game
Come say hi on Discord. The game also streams live on Twitch, every night at 20:00 CET.