BabylonJS / Exporters

Exporters for Babylon.js and gltf file formats
Other
613 stars 313 forks source link

A question about using a morpher in 3dmax and loading glb files in ThreeJS. #1108

Closed baipiaoguaiisme closed 10 months ago

baipiaoguaiisme commented 1 year ago

When I use BabylonJS in 3dmax modeling software to export a mesh with a morpher as a glb file, and load the glb file in ThreeJS, I find that the vertex position data of the first morph target and the second morph target are the same, which means that the data of the first morph target overwrites the data of the second morph target. Or the data of the second morph target overwrites the data of the first morph target,for example, when there are four different morph targets, the first and the second morph targets are the same, and the fourth morph target disappears!So the fourth morph target animation doesn't show up. Seems like it's BabylonJS's problem and not ThreeJS's problem?

3dmax screen

export1

export2

code

https://github.com/BabylonJS/Babylon.js/assets/105282871/e9f78eb5-4993-49f4-8025-d7af482c363f

bghgary commented 1 year ago

Can you provide a repro scene?

baipiaoguaiisme commented 1 year ago

Can you download this zip file? The zip file contains the relevant code and models. Instructions are in the README file. scene.zip

Can you provide a repro scene?

bghgary commented 12 months ago

@SergioRZMasson Can you investigate when you get the chance?

SergioRZMasson commented 10 months ago

@baipiaoguaiisme This was fixed in the latest version of the exporters. If you use the latest version it should work fine.