three.js所进口的Collada动画不能正常工作 [英] Three.js import Collada animation not working

查看:893
本文介绍了three.js所进口的Collada动画不能正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在想一个动画的Collada模型导出到三JS。

I've been trying to export a Collada animated model to three js.

下面是模型:

http://bayesianconspiracy.com/files/model.dae

这是正确导入(我可以看到模型),但我不能让它动画。我一直在使用这两个例子的Collada来与三JS。我试着只是路径我的模型替代路径,但它不工作。我也试着调整一些东西,但没有效果。

It is imported properly(I can see the model) but I can't get it to animate. I've been using the two Collada examples that come with Three js. I've tried just replacing the path with the path to my model but it doesn't work. I've also tried tweaking some stuff but to no avail.

在模型加载我检查了object.animations'对象,这似乎是装精(不能告诉是肯定的,但有很多的东西在里面)。

When the model is loaded I've checked the 'object.animations' object which seems to be loaded fine(can't tell for sure but there is lots of stuff in it).

我也试过three.js所编辑:

I've also tried the Three.js editor:

http://threejs.org/editor/

这再次正确加载模型,但我不能播放动画:(

which loads the model properly again but I can't play the animation : (

我用三个JS R62和搅拌机2.68。任何帮助AP preciated !!

I am using Three JS r62 and Blender 2.68. Any help appreciated!!

推荐答案

我的第一个猜测是,有您的文件中的一些错误禁用动画。

我已经打开搅拌器安迪您model.dae文件已经注意到至少有2个错误OMHO。

他们在下面的视频: http://youtu.be/BGnVVpMNY4E


因此,你可能工作多一点你的模型,如果你需要一步步的教程,你COLLADA模型动画到基于WebGL的three.js所视,那么你可以检查此教程:的 http://jiteshmulchandani.com/?p=122

My first guess is that there are some errors in your file that disable animation.
I have opened your model.dae file with blender andI have noticed at least 2 errors OMHO.
They are in the following video : http://youtu.be/BGnVVpMNY4E .

You therefore might work a bit more on your model and if you need a step by step tutorial to animate your collada model into a THREE.JS based webgl viewport, then you can check this tutorial : http://jiteshmulchandani.com/?p=122

由于此页面上提到的:

获取从 http://opencollada.org/ 最新的插件,使用下列选项选中导出模型:

  法线

  三角

  启用出口

  样品动画

  注意:当使用欧特克的Collada格式导出,它不玩骨骼动画

Get the latest plugin from http://opencollada.org/ and export the model using the following options checked :
Normals
Triangulate
Enable export
Sample animation
Note : When exported using the Autodesk Collada format, it doesn’t play skeletal animations.


相应的演示就在这里: http://jiteshmulchandani.com/zombie -outbreak / ColladaModelTest.html (控制模式,使用ASDW键)



希望这有助于


The corresponding demo is right here : http://jiteshmulchandani.com/zombie-outbreak/ColladaModelTest.html (to control the model, use ASDW keys)

Hope this helps

这篇关于three.js所进口的Collada动画不能正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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