ozRocker Posted July 15, 2017 Share Posted July 15, 2017 I'm trying to screenshot the canvas. I'm using this: BABYLON.Tools.CreateScreenshot(engine, camera, 512) and I just get a white image. Is it still working or do I need to set up the engine in a special way? Quote Link to comment Share on other sites More sharing options...
ozRocker Posted July 15, 2017 Author Share Posted July 15, 2017 ok, I got it working using engine options preserveDrawingBuffer: true But for some reason it is always using the active camera, not the other camera that I specified Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 17, 2017 Share Posted July 17, 2017 Do you mind creating a PG? Quote Link to comment Share on other sites More sharing options...
ozRocker Posted July 17, 2017 Author Share Posted July 17, 2017 Its all good. I'm using CreateScreenshotUsingRenderTarget now and that works with non-active camera. But I have to make sure alpha = 1 for materials. Transparent textures come out funny. GameMonetize 1 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.