Jump to content

Simple glLTF bone example


javalang
 Share

Recommended Posts

Hello,

I'd like to import a blender animation (a simple plane skinned to a single bone) via glTF into BJS-sandbox, but it looks weird, I get a black animated triangle. To keep it simplest as possible, I removed the texture in the attached GLTF-file.

Please can someone help or provide a functional sample (gltf or ideally in blender format)

Thanks in advance

armature.gltf

Link to comment
Share on other sites

@bghgary thank you for the response, yes I know all this examples, maybe my scenario is too far OFF from the glTF-reality, I'd like to bend a single mesh (with weighted vertices) only.

In most of the examples I've seen so far  the bones are connecting different meshes with full weight I think (even RiggedSimple.gltf seems to be using several meshes)

Let me tell what I found out so far:

Mesh1 (all vertices full weighted) ---bone--> Mesh2 (all vertices full weighted)  : OK works. (blender glTF-exporter -> BJS-Sandbox)

Mesh1 (from some vertices with no weight) --bone--> Mesh1(to other vertices full weighted) : NOT OK, vertices which are NOT full weighted are dropped. (blender glTF-exporter -> BJS-Sandbox)

Also there is a difference between BJS-Sandbox and threejsviewer (https://gltf-viewer.donmccurdy.com/), which doesn't drop vertices bot also doesn't bend.

Conclusion: it seems in glTF weighted skinning is NOT supported, but maybe I'm wrong???  A functional blender-file would be very hepful if I'm wrong.

Cheers

 

Link to comment
Share on other sites

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...