DonnyV

Creating video using BABYLON.Tools.CreateScreenshot?

Recommended Posts

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!

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
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...

  • Recently Browsing   0 members

    No registered users viewing this page.