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

Recording canvas on WebGL - all is black #40

Closed
Fujicsso opened this issue Jul 11, 2024 · 3 comments
Closed

Recording canvas on WebGL - all is black #40

Fujicsso opened this issue Jul 11, 2024 · 3 comments

Comments

@Fujicsso
Copy link

Hey! I implemented this like you have it in the demo folder, but to record a canvas that is displaying 3D stuff with WebGL. But the resulting video, while having the correct length, is plain black. Any clue what might be causing that?

@Vanilagy
Copy link
Owner

I'd need to see more of your code to be able to judge! But this usecase definitely works, given that this library was born out of my need to render a 3D game to video.

@Fujicsso
Copy link
Author

Theres nothing specific going on with the code persay, its just a model in a canvas rotating for now. Are there any specific settings needed in the webgl renderer for example? The issue, I would guess, is that whenever we go about taking the image, the canvas has already been reset.

@Vanilagy
Copy link
Owner

It should work, so there's something wrong in your code. Perhaps try disabling alpha, or setting desynchronized to false, if that's true? But yes, definitely an error in the code as I know this works from my game.

I'll close this issue as it's not related to a bug in my library.

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

No branches or pull requests

2 participants