将搅拌机混合文件转换为panda3d bam文件的工具
panda3d-blend2bam的Python项目详细描述
混合2 bam
blend2bam
是一个cli工具,用于将blender混合文件转换为panda3d bam文件
安装
使用pip安装panda3d-blend2bam包:
pip install panda3d-blend2bam
用法
usage: blend2bam [-h] [--version] [-m {legacy,pbr}]
[--physics-engine {builtin,bullet}] [--srcdir SRCDIR]
[--blender-dir BLENDER_DIR] [--append-ext]
[--pipeline {gltf,egg}]
src [src ...] dst
positional arguments:
src source path
dst destination path
optional arguments:
-h, --help show this help message and exit
--version show program's version number and exit
-m {legacy,pbr}, --material-mode {legacy,pbr}
control how materials are exported
--physics-engine {builtin,bullet}
the physics engine to build collision solids for
--srcdir SRCDIR a common source directory to use when specifying
multiple source files
--blender-dir BLENDER_DIR
directory that contains the blender binary
--append-ext append extension on the destination instead of
replacing it (batch mode only)
--pipeline {gltf,egg,gltf28}
the backend pipeline used to convert files
管道
blend2bam
支持多个后端“管道”。目前,支持gltf
和egg
。
gltf
使用blendergltf和panda3d-gltf,而egg
使用来自panda3d sdk的YABEE和egg2bam
。
对于Blender 2.80+,只有gltf通过使用Blender 2.80+内置的gltf导出器的gltf28
管道受支持。
下表显示了一些差异。
Feature | glTF | EGG | glTF28 |
---|---|---|---|
Static Meshes | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |
Textures | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |
Multiple Diffuse Textures | :x: | :heavy_check_mark: | :x: |
Legacy Materials | :heavy_check_mark: | :heavy_check_mark: | :x: |
PBR Materials | :heavy_check_mark: | :x: | :heavy_check_mark: |
Lights | :heavy_check_mark: | :x: | :x: |
Skinned Meshes | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |
Skeletal Animations | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |
Shape Keys | :x: | :heavy_check_mark: | :x: |
Shape Key Animations | :x: | :heavy_check_mark: | :x: |
CollisionSolids | :heavy_check_mark: | :heavy_check_mark: | :x: |
Bullet Shapes | :heavy_check_mark: | :x: | :x: |
Tags from Game Properties | :heavy_check_mark: | :heavy_check_mark: | :x: |
Tags from Custom Properties | :heavy_check_mark: | :x: | :heavy_check_mark: |