Chimpana Posted November 4, 2018 Share Posted November 4, 2018 Hello, I'm having some trouble getting a 2D layer included in CreateScreenshotUsingRenderTarget. CreateScreenshot includes a BABYLON.Layer background texture when a screenshot is created, however CreateScreenshotUsingRenderTarget leaves it as transparent. Is there a way to get the background to draw for CreateScreenshotUsingRenderTarget? I've created a playground to demonstrate: https://playground.babylonjs.com/#P70R9J#3 Thanks! Quote Link to comment Share on other sites More sharing options...
Guest Posted November 5, 2018 Share Posted November 5, 2018 Hello! Because CreateScreenshotUsingRenderTarget use render targets, you cannot capture features not rendered in the RT. As you mentioned, you can use the CreateScreenshot function for that (and use the successCallback function to get the data back and why not store it into your own dynamic texture?) Quote Link to comment Share on other sites More sharing options...
Chimpana Posted November 8, 2018 Author Share Posted November 8, 2018 Thanks Delta – I'll play around with dynamic textures... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.