Jump to content

Render 8192 x8192 px one frame and save


NasimiAsl
 Share

Recommended Posts

Maybe try something like this.  I do something like this to make WEBM videos of arbitrary resolution via canvas.toDataUrl('image/webp', quality).  toDataUrl works with 'image/jpeg' too.

In the playground, I could not get my canvas sizing to obey, but this does work outside of PG.  I also do not know how to write the .jpg file correctly.  It is commented out.  If you un-comment the afterrender registration, it takes the capture & puts it on a new page.

Link to comment
Share on other sites

solved  

**. it is depend to Graphic card too

use this method 

 BABYLON.Tools.CreateScreenshotUsingRenderTarget(engine, camera, 1024 * 16);

more than 4096 have some download error in chrome 

image.png.ef04a2fe982a3ad522ab4885964d7788.png  network error  that not happen in Firefox

for use BABYLON.Tools.CreateScreenshot method you most change resolution  and manage fps for stop live rendering

(that not good at all )

 

https://demos.5kb.me/Revival/index6.html

 

 

Link to comment
Share on other sites

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.

Guest
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.

Loading...
 Share

  • Recently Browsing   0 members

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