首页 > 解决方案 > 如何使用 fbxtogltf 从 fbx 导出具有透明材料(alpha)的 glb?

问题描述

我尝试使用以下代码段将 fbx 模型导出到 glb

const convert = require('fbx2gltf');
   convert('/home/user/Desktop/projecta/ADELoID/Mercedes_Benz_GLE_class.FBX', 
   '/home/user/Desktop/projecta/ADELoID/enzo.glb').then(
   destPath => {
   },
   error => {
       console.log(error);
      }
   );

这是生成的文件:https ://drive.google.com/file/d/16Xw03HRlZzjUrIUFzjsiNDwafK9eMJAr/view

当我在https://gltf-viewer.donmccurdy.com/https://sandbox.babylonjs.com/中查看它时,它显示如下在此处输入图像描述

在搅拌机中,它带有透明眼镜。如下在此处输入图像描述

标签: three.jswebglgltfbabylonjs

解决方案


推荐阅读