Export Screenshot using render targed & Edges share with instances

Hi, I have been trying to get CreateScreenshotUsingRenderTarget to render edges with instances, but cannot seem to get it working.

I have set the following on the mesh:
poly.edgesWidth = 10.0;
poly.edgesShareWithInstances = true;
poly.edgesColor = new BABYLON.Color4(0, 0, 0, 1);

Playground Example (will export two images, one using CreateScreenshotUsingRenderTarget and one using CreateScreenshot):

I assume this is due to: mesh._postActivate(); not getting called? see:



Has anyone else had this issue? Or know of a way to resolve it?

Thanks :+1:

The edge renderer is not supported in CreateScreenshotUsingRenderTarget but you can use the camera.outputRenderTarget property to generate a screenshot like CreateScreenshot but with the possibility to define the width/height. Here’s how to do it:


Ahh, legend :+1:Thanks a lot :slightly_smiling_face: