How to capture image from needle-engine canvas?

I was trying to capture the canvas. but it is returning transparent image.
How can I set preserveDrawingBuffer or is there an easy solution?

Original Post on Discord

by user 943472469057077261

You can use @needle-tools/engine/engine/engine_utils_screenshot for that (it is what we use to capture the poster image)

Right now you can just set the renderer on the context (or a new renderer). Hope that helps

Thanks @marcel :cactus: : gonna try it out :slightly_smiling_face:

by user 943472469057077261