【问题标题】:Can't export babylonjs file from Blender 2.93.4无法从 Blender 2.93.4 导出 babylonjs 文件
【发布时间】:2021-11-26 12:59:38
【问题描述】:

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

如您所见,我已经下载了 zip 文件 https://github.com/BabylonJS/BlenderExporter 我正在使用最新版本,当我尝试将其导入巴比伦文件时出现此错误

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

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

【问题讨论】:

    标签: javascript python 3d blender babylonjs


    【解决方案1】:

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

    GLTF 得到了广泛的支持,并且在巴比伦工作得很好。

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

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

    如果这不是您想要的,也许其他人会觉得它有用:)

    【讨论】:

    • .glb 文件是否与 .babylon 文件相同?巴比伦团队制作这个进口商包应该是有原因的
    • no .glb 更像是 jpeg,它是一个独立的 3D 模型,在一个文件中包含几何、纹理和动画。巴比伦文件是专有的 json,这是巴比伦人早在发明 gltf (glb) 文件之前就提出的东西。你可以在这里阅读更多关于 gltf 的信息khronos.org/gltf
    • 非常感谢你真的很棒
    猜你喜欢
    • 2017-01-31
    • 2021-12-13
    • 2019-02-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-03-26
    • 2014-03-24
    • 2018-05-01
    相关资源
    最近更新 更多