最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Render a Three.Js scene to an animated GIF file with custom intervals - Stack Overflow

programmeradmin5浏览0评论

I am trying to render an animated Three.js scene (basically a dynamic mesh loader that rotates the object 360 degrees automatically) to a GIF file. Basically I would like the GIF to contain frames that would be "screenshoted" from the WebGL canvas every x seconds/ms.

I have been searching for a few hours but I didn't find any good ressources on this subject.

Thanks.

I am trying to render an animated Three.js scene (basically a dynamic mesh loader that rotates the object 360 degrees automatically) to a GIF file. Basically I would like the GIF to contain frames that would be "screenshoted" from the WebGL canvas every x seconds/ms.

I have been searching for a few hours but I didn't find any good ressources on this subject.

Thanks.

Share Improve this question asked Aug 15, 2014 at 14:48 jhagegejhagege 1,5863 gold badges23 silver badges37 bronze badges 1
  • it is not for gif but you can still add it on a web page. take a look at antimatter15.com/wp/2012/08/… – gaitat Commented Aug 15, 2014 at 15:16
Add a comment  | 

2 Answers 2

Reset to default 18

Some years ago I did exactly that. You can have a look at the code here:

https://mrdoob.github.io/omggif-example/

I've just found this repository that seems the right one!

Quickly and easily generate looping GIFs using WebGL

Or maybe have a look at this:

A library to capture canvas-based animations

发布评论

评论列表(0)

  1. 暂无评论