Web editor Slice 3: real Godot render preview button #59
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-up to #57. Add a "Render preview" button that shows an actual Godot screenshot of the area.
render_preview.py <area>: generate the descriptor intoweb_editor/scratch/preview.tscn(gitignored, deletes its own old output), then run the configured Godot binary with--write-movie <png> --quit-after N. No--headless: headless mode's dummy renderer crashes on frame capture, while a normal run uses the machine's real GPU.local_config.json(with a committed example) or$GODOT_BIN; fail with a clear message if missing.POST /api/renderstreams the PNG to the page.--write-moviePNG filename pattern first (glob rather than hardcode). This can be checked in the sandbox with Xvfb + llvmpipe, which already produced a correct Treasury frame.Verification: Claude checks the subprocess plumbing and error paths, plus one end-to-end capture via Xvfb. How it looks on a real GPU needs a check on the user's machine.