Sign in to follow this  
javalang

Simple glLTF bone example

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

Share this post


Link to post
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

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.