BabylonJS / Editor

Community managed visual editor for Babylon.js
http://editor.babylonjs.com/
813 stars 232 forks source link

Blender rigify unable to recognized by babylonjs editor after exporting as gltf "character animation" #197

Closed rvnosa closed 3 years ago

rvnosa commented 3 years ago

Hi, I am trying to export an animated character using blender rigify to babylon js edtor using gltf file format. When imported and drag to the preview, I can see the animation playing in the editor, I'm trying to play the animation via code however I found out that the object is converted into transform node instead of mesh. Do you have any suggestions on how to fix it.

julien-moreau commented 3 years ago

Hey @rvnosa and welcome! :) Thanks for reporting that. To help me debugging, is that possible to share the 3d animated model or at least a minimal-repro of a 3d model? Thanks a lot

rvnosa commented 3 years ago

---------- Forwarded message --------- From: Chad VN rver.nosa@gmail.com Date: Fri, Jul 24, 2020 at 11:19 PM Subject: Re: Delivery Status Notification (Failure) To: Mail Delivery Subsystem mailer-daemon@googlemail.com

I zipped in rar file

On Fri, Jul 24, 2020 at 11:12 PM Mail Delivery Subsystem < mailer-daemon@googlemail.com> wrote:

[image: Error Icon] Message too large Your message couldn't be delivered to reply@reply.github.com because it exceeds the size limit. Try reducing the message size and resending. The response from the remote server was:

552 5.3.4 Message size exceeds fixed limit

---------- Forwarded message ---------- From: Chad VN rver.nosa@gmail.com To: "BabylonJS/Editor" < reply@reply.github.com> Cc: Bcc: Date: Fri, 24 Jul 2020 23:12:43 +0800 Subject: Re: [BabylonJS/Editor] Blender rigify unable to recognized by babylonjs editor after exporting as gltf "character animation" (#197) ----- Message truncated -----

julien-moreau commented 3 years ago

Hi @rvnosa It looks your message failed, I can't see any file to download :(

rvnosa commented 3 years ago

where can I send the gltf file? it is 3mb

On Mon, Jul 27, 2020 at 5:25 AM Julien Moreau-Mathis < notifications@github.com> wrote:

Hi @rvnosa https://github.com/rvnosa It looks your message failed, I can't see any file to download :(

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/BabylonJS/Editor/issues/197#issuecomment-664042442, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQGKKGDQCXQZE2KJYMXGDSDR5SNK3ANCNFSM4PGYRN5Q .

julien-moreau commented 3 years ago

Can you try one driver or google drive and share a link to the file ?

rvnosa commented 3 years ago

you can get the file at https://drive.google.com/file/d/1EcHlJXdD4_3moKKqK4qFoSUC_nt4nUlZ/view?usp=sharing

julien-moreau commented 3 years ago

@rvnosa thanks for sharing, Just asked for an access, I think you received a mail :)

julien-moreau commented 3 years ago

Hey @rvnosa Just tried the model. The model is empty on its right is that normal? I have to same result in the Editor and in the Babylon.JS Sandbox (https://sandbox.babylonjs.com/). So this more a problem with the model or (i doubt) a problem with the GLTF loader of Babylon.JS itself.

I attached a script to the root mesh "root" and it is still a "Mesh" class (see the informations in the console): image

Where have you attached the script exactly? On the root mesh too? Also I can see that the mesh is composed of multiple meshes that share the same skeleton. The Editor doesn't merge these meshes, it keeps the mesh as it is.

rvnosa commented 3 years ago

Good day, sorry for late reply, yes the mesh is half is not there, yes the mesh are composited of meshes same what I experienced

On Wed, Jul 29, 2020 at 1:27 AM Julien Moreau-Mathis < notifications@github.com> wrote:

Hey @rvnosa https://github.com/rvnosa Just tried the model. The model is empty on its right is that normal? I have to same result in the Editor and in the Babylon.JS Sandbox ( https://sandbox.babylonjs.com/). So this more a problem with the model or (i doubt) a problem with the GLTF loader of Babylon.JS itself.

I attached a script to the root mesh "root" and it is still a "Mesh" class (see the informations in the console): [image: image] https://user-images.githubusercontent.com/2620127/88699897-30fc3500-d108-11ea-9857-c3bfdedd8d0d.png

Where have you attached the script exactly? On the root mesh too? Also I can see that the mesh is composed of multiple meshes that share the same skeleton. The Editor doesn't merge these meshes, it keeps the mesh as it is.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/BabylonJS/Editor/issues/197#issuecomment-665172343, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQGKKGDLKNPYRAFBMG2HNB3R54DBLANCNFSM4PGYRN5Q .

rvnosa commented 3 years ago

I tried a manual bone setup and if I am right the total of bones I did is 20, still there is error when exporting to .babylon file

On Wed, Jul 29, 2020 at 8:38 AM Chad VN rver.nosa@gmail.com wrote:

Good day, sorry for late reply, yes the mesh is half is not there, yes the mesh are composited of meshes same what I experienced

On Wed, Jul 29, 2020 at 1:27 AM Julien Moreau-Mathis < notifications@github.com> wrote:

Hey @rvnosa https://github.com/rvnosa Just tried the model. The model is empty on its right is that normal? I have to same result in the Editor and in the Babylon.JS Sandbox ( https://sandbox.babylonjs.com/). So this more a problem with the model or (i doubt) a problem with the GLTF loader of Babylon.JS itself.

I attached a script to the root mesh "root" and it is still a "Mesh" class (see the informations in the console): [image: image] https://user-images.githubusercontent.com/2620127/88699897-30fc3500-d108-11ea-9857-c3bfdedd8d0d.png

Where have you attached the script exactly? On the root mesh too? Also I can see that the mesh is composed of multiple meshes that share the same skeleton. The Editor doesn't merge these meshes, it keeps the mesh as it is.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/BabylonJS/Editor/issues/197#issuecomment-665172343, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQGKKGDLKNPYRAFBMG2HNB3R54DBLANCNFSM4PGYRN5Q .

julien-moreau commented 3 years ago

Would it be possible that you show me each step and focus on the errors you have ? For example using a video to show me what you are doing. I'm unfortunately not sure to understand how to reproduce :(

julien-moreau commented 3 years ago

@rvnosa any news?

rvnosa commented 3 years ago

I stop converting it, loose hope on rigify to babylon, but I did a manual bone rig setup and export as gltf and it is successful 😆👍

On Wed, 19 Aug 2020, 8:07 pm Julien Moreau-Mathis, notifications@github.com wrote:

@rvnosa https://github.com/rvnosa any news?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/BabylonJS/Editor/issues/197#issuecomment-676240007, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQGKKGDFRQHMDFOOJZU7TELSBO56NANCNFSM4PGYRN5Q .

julien-moreau commented 3 years ago

Yeaaaaah that rox! Closing the issue then :)