代码之家  ›  专栏  ›  技术社区  ›  paras

如何使用fbxtogltf从fbx导出具有透明材质(alpha)的glb?

  •  0
  • paras  · 技术社区  · 4 年前

    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/ 如下所示: enter image description here

    在搅拌机中,它用透明玻璃呈现,如下所示 enter image description here

    0 回复  |  直到 4 年前