Photo: Vulkan offscreen snapshots (arbitrary resolution, depth, 360, simpleSnapshot) #110

Closed
opened 2026-09-27 17:16:16 +00:00 by backspace119 · 2 comments
Owner

Prerequisite for the photography epic. VK snapshots today are one swapchain capture at window size, upscaled beyond that (llviewerwindow.cpp ~5473–5550). Depth snapshots, 360 capture and simpleSnapshot are unsupported under VK (~5848).

Scope:

  • Render the world + UI to an offscreen target of arbitrary size (tiled if it exceeds device limits), matching LL's max (7680; BD goes to 12228).
  • Depth readback, for the depth layer and the Depth24 format from upstream Alchemy develop (902e75e7db).
  • 360 capture (6 faces) and simpleSnapshot (thumbnails, outfit/profile).
  • Hooks: LLVulkanContext::requestCapture/readCapture (vkgfx/llvulkancontext.h).

Size: M

**Prerequisite for the photography epic.** VK snapshots today are one swapchain capture at window size, upscaled beyond that (`llviewerwindow.cpp` ~5473–5550). Depth snapshots, 360 capture and `simpleSnapshot` are unsupported under VK (~5848). Scope: - Render the world + UI to an offscreen target of arbitrary size (tiled if it exceeds device limits), matching LL's max (7680; BD goes to 12228). - Depth readback, for the depth layer and the Depth24 format from upstream Alchemy `develop` (`902e75e7db`). - 360 capture (6 faces) and `simpleSnapshot` (thumbnails, outfit/profile). - Hooks: `LLVulkanContext::requestCapture`/`readCapture` (`vkgfx/llvulkancontext.h`). Size: M
Author
Owner

Part of epic #119.

Part of epic #119.
Author
Owner

Done in dba061e4de: offscreen World / World+HUD snapshots at the requested size (clamped to device limit and ~80% free VRAM), depth snapshots, simpleSnapshot and 360 capture (also fixed the 360 preview/save page path). Verified in world: large world, depth and 360 all work; the resize hitch per shot is acceptable.

Done in dba061e4de: offscreen World / World+HUD snapshots at the requested size (clamped to device limit and ~80% free VRAM), depth snapshots, simpleSnapshot and 360 capture (also fixed the 360 preview/save page path). Verified in world: large world, depth and 360 all work; the resize hitch per shot is acceptable.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
backspace119/Slipstream#110
No description provided.