Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render to Video? #279

Open
Choons opened this issue Oct 1, 2024 · 2 comments
Open

Render to Video? #279

Choons opened this issue Oct 1, 2024 · 2 comments
Labels
question Further information is requested

Comments

@Choons
Copy link

Choons commented Oct 1, 2024

Hi, I've been using threepp several days now and it's great! This is a question rather than an issue: does threepp have a way to render to video? If not, has anyone done this, or could give a suggestion how I could implement it? Something with GLFW + FFMPEG capturing frames, perhaps?

@markaren
Copy link
Owner

markaren commented Oct 2, 2024

I'm not sure what would be the more effective procedure here, but you do have the possibility to read the underlying pixel data from the GPU from the GLRenderer.

void readPixels(const Vector2& position, const WindowSize& size, Format format, unsigned char* data)

You may also copy the framebuffer into a texture. Demo

@markaren markaren added the question Further information is requested label Oct 2, 2024
@Choons
Copy link
Author

Choons commented Oct 2, 2024

Thanks for the leads, Mark! I'll experiment with those and report back how it goes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants