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

Export animated models #89

Open
polotto opened this issue Nov 20, 2019 · 3 comments
Open

Export animated models #89

polotto opened this issue Nov 20, 2019 · 3 comments
Labels
How do I? Question to be answered

Comments

@polotto
Copy link

polotto commented Nov 20, 2019

Hi,
Congratulation for the project, is amazing how simple and effective this technic is.
The only problem that I found is the difficult is export animated model to use in other game engines, like Phaser 3 JS. A export helper that save all the animation in PNG frames would be very helpful for that job.
For while, I having a lot of pain saving my model using right click and save as... .

One again, great project, I'm very excited to try draw new things.

@oganm
Copy link

oganm commented Dec 13, 2019

My R port of zdog does this by using headless chrome to record images and merging them into a gif. It is not perfect but it works:

The relevant code is here. I assume it can be ported to the language of your choice if someone implented the chrome devtools protocol. Frame rate control is an issue though. You might come up with a better way to record. Making all animations slower than they should be and speeding up the output manually might be a poor man's solution.

@polotto
Copy link
Author

polotto commented Dec 13, 2019

Awesome port @oganm . I will study your export code, this can be a good start point for the problem that I related.

@desandro
Copy link
Member

Add a 👍 reaction to this issue if you would like to see this feature added. Do not add +1 comments — They will be deleted.

Thanks for this feature suggestion!

I should also point out that you can control how you want to render. You can render multiple frames in separate <canvas> elements. See multiple canvas demo on CodePen.

image

@desandro desandro added the How do I? Question to be answered label Mar 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
How do I? Question to be answered
Development

No branches or pull requests

3 participants