简体   繁体   English

Three.js和GIF动画

[英]Three.js and Animated GIF

I have been trying to work with http://slbkbs.org/jsgif/ the last few days in order to incorporate a 4 frame animated gif into the loadTexture function of a canvas-based, six-sided mesh. 最近几天,我一直在尝试使用http://slbkbs.org/jsgif/ ,以便将4帧动画gif合并到基于画布的六面网格的loadTexture函数中。

Any thoughts or direction would be much appreciated. 任何想法或方向将不胜感激。

I don't know much about Three.js, but all jsgif does is parse the animated GIF into frames and then display them on a canvas. 我对Three.js不太了解,但是jsgif所做的只是将动画GIF解析为帧,然后将它们显示在画布上。 This seems to be independent of that, and if you're dealing with your own animation, you're much better off splitting it into static frames in advance and then using whatever animation facility Three.js has using those frames. 这似乎与之无关,如果要处理自己的动画,最好先将其拆分成静态帧,然后再使用Three.js使用这些帧的任何动画工具。 You're not going to get anything for free from the browser's animated GIF support. 您不会从浏览器的动画GIF支持中免费获得任何东西。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM