如何处理动画模型在three.js所? [英] How do I handle animated models in Three.js?

查看:253
本文介绍了如何处理动画模型在three.js所?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对three.js所的一个基本问题。我GOOGLE了,但没有发现任何有用的东西......
如何处理动画模型在three.js所?我知道如何导入.js文件,我有一个动画立方体从搅拌机出口到.js文件格式。我已经与JSONLoader进口,但动画不会自行发挥。所以这就是我在哪里,我不知道怎么玩了。

I have a basic question about Three.js. I've googled but didn't find anything useful... How do I handle animated models in Three.js? I know how to import .js files, and I have an animated cube exported from blender to .js format. I've imported it with the JSONLoader, but the animation wont play by itself. So that's where I am, I don't know how to play it.

我检查的文件,但我不知道我应该用什么?
试过MorphAnimationMesh,当我登录的长度,发现250帧。所以我猜这个出口很顺利。

I've checked the documentation but I don't know what I should use... Tried the MorphAnimationMesh, and when I log the length, it finds 250 frames. So I guess the export went well.

我使用WebMatrix中,它似乎并没有认识到DAE-文件,所以我还没有跟他们还没试过。而对于他们以及我不知道如何处理的动画。

I'm using WebMatrix and it doesn't seem to recognize dae-files, so I haven't tried with them yet. And for them as well I do not know how to handle animations.

请帮帮忙!

推荐答案

有大量的,从而three.js所>例子。您也可以在线查看它们,例如

There are plenty of examples in the three.js sources. You can also view them online, e.g.

  • http://threejs.org/examples/webgl_morphnormals.html
  • http://threejs.org/examples/webgl_morphtargets_horse.html

还有动画的另一种风格,被称为骨骼动画或剥皮。但是,如果您发现变种的250帧,那么你就需要在这一点不用担心它,但它是很好的意识到这一点。搅拌机可以同时导出 - 摇身一变更万无一失,但换肤占用较少的空间。

There's also another style of animation, called skeleton animation or "skinning". However, if you found 250 frames of morphs, then you don't need to worry about it at this point, but it's good to be aware of it. Blender can export both - morphs are more foolproof but skinning takes less space.

这篇关于如何处理动画模型在three.js所?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆