[Lite] Screenshot / Grab framebuffer

What is the intended public Babylon Lite API path for exporting a scene (or selected mesh) to an image at a fixed resolution?

My application has an interactive Lite scene already running. On export, I need to render one mesh with a separate orthographic camera into a 1024×1024 PNG, then read the pixels/download the image, without affecting the interactive canvas.

I first tried createSurface(engine, canvas), createSceneContext(surface), registerScene(scene), and captureScreenshot(surface). A minimal reproduction shows that registering the second surface makes the existing primary canvas turn black, while the new surface remains blank.

Playground: Babylon Lite Playground

Is an auxiliary createSurface the intended approach for this type of offscreen export? If not, which public Lite API should be used—e.g. a render target / one-shot render task / screenshot API with a temporary camera?

Thanks for the repro: this is a Babylon Lite bug, not an API misuse.

cc @Evgeni_Popov who should be able to take a stab at it next week!

Thanks for reporting, this PR will fix your PG: