mrdoob / three.js

JavaScript 3D Library.
https://threejs.org/
MIT License
102.58k stars 35.36k forks source link

Transition skin animations? #2702

Closed MKHenson closed 11 years ago

MKHenson commented 11 years ago

Hi guys

Are there any examples of how to use and transition between multiple skin animations? It's not clear from all the searching I've done if this is possible yet. I noticed there was some work being done on morph targets being mixed with skin animation and transitions between the morph targets... but I can't seem to find anything on skin transitions.

Is the expectation that when exporting skin animations its one long animation and the individual animations are played between frames? Because it seems to me that the system is only allowing for one skin animation...?

Thanks guys

alteredq commented 11 years ago

No transitions or blending yet, in this morph animation implementation is further along than skinning animation implementation.

MKHenson commented 11 years ago

Ah ok great. Would you happen to know if its something that's being explored?

As an aside... I was curious about morph targets in general. I've never really used them before and I was just wondering if you think they would be suitable for a character with multiple animation states? I kind of figured that morphing would be best suited for things like facial gestures, but skinning seemed to be more in line with character based animation. Is this a correct assumption, or do you think that morphs are as good? I guess the reason I'm asking is because if they are, then I might try to create my animation system using morphs. If not, I'll just wait for a more complete skinning solution?

Thanks guys

alteredq commented 11 years ago

Ah ok great. Would you happen to know if its something that's being explored?

I think it will come eventually, that's kinda a natural next step (skinning has potential to be more flexible and have much smaller file sizes), but as far as I'm aware nobody is working on this actively at this moment.

So if you want something usable now, morphs would have to do. See for example MD2 examples:

http://mrdoob.github.com/three.js/examples/webgl_morphtargets_md2.html http://mrdoob.github.com/three.js/examples/webgl_morphtargets_md2_control.html

MKHenson commented 11 years ago

Ok great, I'll get onto morphs then and see what I can do :)

Thanks alteredq