Create Screenshot with hidden camera


I would like to use a “hidden” camera for creating screenshots.
So there is a main Camera which the user actually sees, but I would like to use other cameras to create screenshots of various other parts of the scene without showing the ViewPort of those hidden cameras. So the user will only see the created screenshots.

Is it possible?

See this playground Babylon.js Playground

If you change the passed to CreateScreenshotUsingRenderTarget it should work even if the camera isn’t active.