DonnyV Posted September 18, 2016 Share Posted September 18, 2016 A couple questions with using BABYLON.Tools.CreateScreenshot() to create a video. Can CreateScreenshot() handle being called 60 fps to generate images? I noticed that there not antialiased. Why is that and how can I make it look like the way its rendered? Can I just hack the Tools.DumpFramebuffer() to make .bmp instead of .png? Thanks! Quote Link to comment Share on other sites More sharing options...
Wingnut Posted September 19, 2016 Share Posted September 19, 2016 Hi DonnyV... good to see you again. Can I ask... Do you use Windows? If so, there is a thing called Fraps. Last I knew, that puppy will make a video out of nearly any running application. I'm not sure if it would work for you... but what the heck, I thought I would mention it. I don't have any answers for your other questions, though. Sorry. Quote Link to comment Share on other sites More sharing options...
DonnyV Posted September 19, 2016 Author Share Posted September 19, 2016 I think I found a way to do it. I found this library called Ccapture.js. The nice thing is that it doesn't capture the frames in real time because it hijacks the requestAnimationFrame() method. Which lets it capture a smooth 60fps with no stutters. It even generates a webm video. I'll probably modify it so that it sends a bmp image to the server instead. All this will be running in a headless browser on the server anyway. I need large 1080 hd images and possibly 4K in the future. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted September 19, 2016 Share Posted September 19, 2016 Babylon.js 2.5 will feature a new Screencapture function which will support antialiasing DonnyV 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.