简体   繁体   English

WebGL(Three.js)蒙皮动画基本概念

[英]WebGL (Three.js) Skinning Animation Basic Concept

I came across many demos regarding skinning in Three.js however I cannot understand that does the model that we import, itself should be animating one like, it is already made animating in modeling software and you just import the dummy model and manipulate it ? 我在Three.js中遇到了很多有关蒙皮的演示,但是我不明白我们导入的模型是否应该像一个动画一样,它已经在建模软件中进行了动画处理,您只是导入了虚拟模型并对其进行了操作?

If you look at this exmaple: http://threejs.org/examples/webgl_morphnormals.html 如果您看以下示例: http : //threejs.org/examples/webgl_morphnormals.html

Does the model here flamingo.js, already made animating and then exported to js format and the javascript is just playing through the frames? 这里的flamingo.js模型是否已经进行了动画处理,然后导出为js格式,而javascript只是在框架中播放?

Please can any one elaborate me the concept here, i am brand new to all this 3D world and WebGl stuffs I just can't figure out how can I animate any model that is imported in js format. 请任何人在这里详细说明这个概念,我对这3D世界和WebGl都是陌生的,我只是想不出该如何为以js格式导入的任何模型制作动画。

Basically you want your model animated before exporting. 基本上,您希望在导出之前对模型进行动画处理。 There is not really a wrong or a right way about doing this. 这样做并没有错误或正确的方法。

Probably the easiest way is through Morph Target Animation . 可能最简单的方法是通过“ 变形目标动画” The other method is called skinning, an example of which you can find here . 另一种方法称为蒙皮,其中你可以找到一个例子在这里

Most of the 3-D software supports exporting for both formats. 大多数3-D软件都支持两种格式的导出。 If you are not sure that your model is properly exported just check the three js examples . 如果不确定模型是否正确导出,请检查以下三个js示例

For instance here is what a morphs animated model looks like: animated horse . 例如,以下是变形动画模型的外观: 动画马

In my personal example I've animated the model through pure javascript rotation and move effects. 在我的个人示例中,我通过纯JavaScript旋转和移动效果为模型制作了动画。

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

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