Jump to content

Bug screenShot in 2.5


Recommended Posts


Tools.CreateScreenshotUsingRenderTarget() returns a texture with a download error. 
Tools.CreateScreenshot()  returns an error with a black texture.

This produces if I leave the camera as is is loading the scene. If I look at the sky, it works for one, but the other always has a black texture.


Link to comment
Share on other sites

In fact I have the impression that it works when the camera is horizontal. If it looks down, it does not work anymore. This works with Chrome, but depending on the orientation of the camera. 

 Or another idea, the camera must look at an object. If there is only the sky, it does not work :

On the other hand, there is a new error now with document is undefined



Link to comment
Share on other sites


It is not working to take screenshot any more with the v2.5!

I checked with v2.3 and v2.4 and there it works.

This is the code i use to take screenshots with.

BABYLON.Tools.CreateScreenshot(engine, scene.activeCamera,{width: canvas.width,height: canvas.height});


@Dad72 command BABYLON.Tools.CreateScreenshot(engine, scene.activeCamera, { precision: 2 }); works however in v 2.5

   Edit again:

New PG:http://www.babylonjs-playground.com/#1WQSPX#6

BABYLON.Tools.CreateScreenshot(engine, scene.activeCamera, { precision: 1 }); DOES not work either!

Link to comment
Share on other sites

  • 7 months later...

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...