虚弱0 度精华0阅读权限30在线时间71 小时
| 本帖最后由 psyche 于 2023-12-12 20:18 编辑
- import pybmd
- # 打开BMD文件
- bmd_file = pybmd.BMDFile("example.bmd")
- # 读取BMD文件中的所有模型数据
- models = bmd_file.get_models()
- # 遍历模型数据并打印模型名称和贴图路径
- for model in models:
- print("模型名称:", model.name)
- print("贴图路径:", model.texture_path)
- print("顶点数据:", model.vertices) print("三角形数据:", model.triangles)
复制代码 0x1 pybmd库读取BMD文件
|
|