Maya - Babylon Maya Exporter issues

Trying to import a skinned mesh exported from Maya.
I’m using BABYLON.SceneLoader.Append.

When I export to .babylon I get a funky mesh:

When I export to .gltf mesh looks fine but the animated skeleton gets funked up:

Any pointers are appreciated!

I think our exporter experts will need at least the .babylon / .gltf file produced, and probably the source asset too.

Also, have you tried to load your gltf file into another gltf viewer (for eg: https://gltf-viewer.donmccurdy.com/)? That could give a clue on the faulty part: the exporter or the player.

Sure, there they are.maya_export.zip (1.9 MB)

I did not try another gltf viewer. I should give that a try, thanks.

Edit: It seems like the Scale factor in the exporter does not work as expected with gltf. With .babylon the joints are scaled as expected. In this Maya file I grouped the joints and scaled the group 100x instead of using Scale factor: 100. arvid_rigging_merged_test.mb.zip (1.1 MB)

That does not explain the mesh issue with .babylon though, but perhaps .gltf will work just as well for me.

Hey we unfortunately are in desperate need of help on the exporter front. If someone from the community wants to help please say so :slight_smile:
In the meantime, do you mind capturing your issue on the exporters repo? Please provide as much repro as you can and we will make sure to get back to it asap

cc @thomlucc

1 Like

The model is appear to beeing so small ie - micrometer , that it need a 100 factor scaling. This made the json output format loosing information above the 4th digit…
Just fixed these behavior and raised a related issue about floating point rounding. However I have some question to the team before doing the PR, so expect some days before the release.
G.

2 Likes

Thanks G. I still have this issue though. Looking at the babylon file, vertices have only four digits beyond the decimal point.

Hey @reimund ,
I might missed something because here i can not reproduce, thanks to the fix we done. Could you send me a very simple sample wich reproduce this behavior?
G.

Here you go!

arvid_babylon_export_bug.mb.zip (601.4 KB)

Hey, this is intersting.
Could you lead me on where is the problem, in this babylon export ? Every float are 8 digits precision… and same for the gltf.
test.zip (492.5 KB)

Strange, not for me. I wonder if the installation failed somehow. In the exported file I get

 "producer": {
    "name": "Maya",
    "version": "2018",
    "exporter_version": "20210429.3",
    "file": "arvid1.babylon"
  },

Although I actually run Maya 2019.

EDIT: Could it be that the installer did not successfully replace one of the dlls?

EDIT 2: Did you use a scale factor of 100 in your test?

20210429.3 is the latest, and i run the same version (ie- custom has i update the code but i’ve done the last PR).
I run Maya 2020
I done both : scale at 1 and 100 with the same result.
Let me install Maya 2019 and run the test.
Keep u posted.

I got the point, 2019 and before use another set of duplicate code that we do not updated, (because it was not suppose to be duplicated). I will merge it and publish a PR.
Look for PR #953
Sorry for the inconvenience.
G.

1 Like

Nice, thank you!

Merged, you may download the last release.
Thank’s for your commitment.
G.