无法从 Blender 2.93.4 导出 babylonjs 文件

Can't export babylonjs file from Blender 2.93.4

大家好,我真的需要你们的帮助,所以我刚从 Steam 安装了 Blender,因为我想要最新的 Blender 软件 (2.93.4),我想将它导入 Babylon.js,所以,我只想像这样导入简单的立方体进行测试 cube image

如您所见,我已经下载了 zip 文件 https://github.com/BabylonJS/BlenderExporter 我使用的是最新版本,当我尝试将其导入 babylon 文件时也遇到了这个错误

Exporter version: 2.93.4, Blender version: 2.93.4
========= Conversion from Blender to Babylon.js =========
    Scene settings used :
        Inline textures     :  false
        Material Type       :  PBR
        Positions Precision :  4
        Normals Precision   :  3
        UVs Precision       :  3
        Vert Color Precision:  3
        Mat Weight Precision:  2
        Keep Z-up r-handed  :  no
        Texture directory   :  /home/muhammadfathur/
    Python World class constructor completed
    WARNING: No active camera has been assigned, or is not in a currently enabled collection
    processing begun of mesh:  Cube
        processing begun of material:  Material
========= An error was encountered =========
  File "/home/muhammadfathur/.config/blender/2.93/scripts/addons/babylon_js/json_exporter.py", line 116, in execute
    mesh = Mesh(object, scene, self)
  File "/home/muhammadfathur/.config/blender/2.93/scripts/addons/babylon_js/mesh.py", line 150, in __init__
    recipe = BakingRecipe(bpyMesh, exporter)
  File "/home/muhammadfathur/.config/blender/2.93/scripts/addons/babylon_js/materials/baking_recipe.py", line 43, in __init__
    bjsMaterial = BJSMaterial(bpyMaterial, exporter)
  File "/home/muhammadfathur/.config/blender/2.93/scripts/addons/babylon_js/materials/material.py", line 63, in __init__
    self.textures = {}
ERROR:  readMaterialNodeTree() missing 1 required positional argument: 'overloadChannels'
========= end of processing =========
elapsed time:  0 min, 0.008 secs

请帮帮我,我真的很需要它,谢谢。

这不是您要求的,但将 Blender 内容导入 babylon 的另一种方法是导出为 .glb(GLTF 二进制)格式。

GLTF 得到广泛支持,在 babylon 中运行良好。

我创建了一个基于 vite(超快速打包器)的简单启动器,其中包含加载 .glb 文件的最少代码。

https://github.com/leon/starter-babylonjs

如果这不是您要找的,也许其他人会发现它有用:)