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.enableEdgesRendering();
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:
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: