Jump to content

[SOLVED] importmesh with morph targets


ozRocker
 Share

Recommended Posts

I can't get importmesh to acknowledge my morph targets.  They turn out as NULL.

But if I use BABYLON.SceneLoader.Load the morph target is there.  Am I doing something wrong or is the morph target code missing from importmesh?

Here is the playground I'm working on:

https://playground.babylonjs.com/#BDG7ME#7

 

I should have a pouting morph target for the girl's face.

Link to comment
Share on other sites

1 hour ago, Dad72 said:

ImportMesh loads only one mesh, morph contains several meshs.

I think that's why.

Use Append that does like ImportMesh rather than Load that only loads a scene

You're right!!

Ok, I used Append and that fixed it.

https://playground.babylonjs.com/#BDG7ME#8

(yep, there are still some other problems I'm fixing)

Link to comment
Share on other sites

  • ozRocker changed the title to [SOLVED] importmesh with morph targets

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...