Morpher animation not supported on Three.js?

16th October 2017 - 10:32:50 AM
I got this warning in Three.js:
SEA3D: Unknown format "mpha" of file "Teapot001". Add a module referring for this format.

Morpher animation working good in Studio but I can't make it play in 3JS. Does that warning mean morph animation not supported yet for Three.js? Can you update it?
Download teapot.tjs.sea 16.42 kB | Open with SEA3D Studio
16th October 2017 - 11:14:04 PM
17th October 2017 - 01:56:54 AM
Wow, lightspeed! :D It's working now, thank you!
17th October 2017 - 12:36:48 PM
You are welcome! :)
22nd November 2017 - 12:34:58 PM
Hello, I have this test file. I am able to play skeleton animations on play(), but morph animations are not executing. I tried to find an example on poonya on how to trigger morph animations, but no luck. Any idea?
Download TEST.tjs.sea 239.76 kB | Open with SEA3D Studio
22nd November 2017 - 01:08:46 PM
Hi Spec.

This problem is performed in SEA3D Studio or in Three.JS(Preview)?
23rd November 2017 - 08:08:29 PM
To weigh in a bit more on the problem Speculees and I have - we're trying to play skeletal and keyed (animated) morpher animations at the same time in Three.JS... WE'd like to be able to play character animations with complex facial animation done using morpher in 3ds Max. In the given .gif example that speculees gave- play was hit on both Skeleton Animation [Player] and Morph Animation [Player1] to show what we'd like final animation to look like in Three.JS.
24th November 2017 - 01:03:15 PM
Oh and here is .sea file (.tjs.sea breaks completely when loaded in sea3d studio)
Download TEST.sea 167.18 kB | Open with SEA3D Studio
26th November 2017 - 12:58:18 AM
Hmmm Ok! I will do some tests.
28th November 2017 - 01:24:51 AM

I just upload an commit that add support to morph in SEA3DLegacy.js

It was the only problem I found.

I am attaching the files used is tests.
legacy morph support.rar - 623.03 kB
28th November 2017 - 01:43:17 AM
Note: Facial animation done using morpher is not recommended using the same mesh of body in head. Instead of this attach(link) the Head in neck Bone and use Edit Normals in 3ds Max to fix the normals in Head and Body. The result will look like this:
30th November 2017 - 04:10:04 PM
hello seem a error on last build sea3d.js line 6211

uMorphNormal can't call morpher.attribs if morpher not exist so maybe

var uMorph = morpher != undefined || vertexAnimation != undefined;
var uMorphNormal = morpher ?
( morpher.attribs.normal != undefined ) ||
( vertexAnimation && vertexAnimation.tag.attribs.normal != undefined ) : false;
1st December 2017 - 12:20:43 AM
Ops! Fixed thanks Loth