NasimiAsl Posted July 9, 2018 Share Posted July 9, 2018 hi how can i make this Render 8192 x8192 px one frame and save @Wingnut find something (you have a lot link) for me pleaseeeeeee Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted July 9, 2018 Share Posted July 9, 2018 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. Quote Link to comment Share on other sites More sharing options...
Guest Posted July 9, 2018 Share Posted July 9, 2018 Do you want to use Tools.CreateScreenshot ? Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted July 11, 2018 Author Share Posted July 11, 2018 hey @Deltakosh https://www.babylonjs-playground.com/#UXCB15#54 that just scaled result to 8192 x 8192 i need render 8192 x 8192 quality Quote Link to comment Share on other sites More sharing options...
babbleon Posted July 11, 2018 Share Posted July 11, 2018 (edited) Here: https://www.babylonjs-playground.com/#UXCB15#55 correction... its 4096x4096 on Chrome, 8192x8192 on Firefox. Edited July 11, 2018 by babbleon correction Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted July 11, 2018 Author Share Posted July 11, 2018 may be i need write some tools for make very large pic but but before that i wanna be sure we have limitation because canvas in chrome can render 16k x 16k Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted July 11, 2018 Author Share Posted July 11, 2018 @Deltakosh plz help Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted July 12, 2018 Author Share Posted July 12, 2018 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 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 Quote Link to comment Share on other sites More sharing options...
Guest Posted July 12, 2018 Share Posted July 12, 2018 Yep this is why we have two techniques to help depending on the use case 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.