一次通过Blender2Ogre将FBK转为Mesh的失败尝试

本文详细记录了在Windows环境下,从安装和配置OGRE SDK,到编译Blender2Ogre插件,解决Cmake过程中遇到的PkgConfig、DirectX和依赖库问题,再到最终因缺少文件导致Blender2Ogre导出失败的全过程。通过此过程,读者可以了解到OGRE开发环境的搭建以及Blender模型转换的复杂性。
摘要由CSDN通过智能技术生成

Ogre
https://www.ogre3d.org/
OGRE Dependencies依赖库源码:
https://bitbucket.org/cabalistic/ogredeps/downloads/
OGRECave
https://github.com/OGRECave
blender2ogre
https://github.com/OGRECave/blender2ogre
meshmagick
https://github.com/OGRECave/meshmagick
Cmake
https://cmake.org/download/
FTP站 Index of /binaries/win32/dependencies/
https://download.gnome.org/binaries/win32/dependencies/
FTP站 Index of /binaries/win32/glib/2.28/
https://download-fallback.gnome.org/binaries/win32/glib/2.28/
Tundra2
https://github.com/etradewind/Tundra2
Ogre Meshy
https://wiki.ogre3d.org/Ogre+Meshy
ImageMagick
https://imagemagick.org/
Orge SDK
https://wiki.ogre3d.org/Installing+the+Ogre+SDK
DirectX End-User Runtimes (June 2010)
https://www.microsoft.com/en-au/download/details.aspx?id=8109
DirectX End-User Runtime Web Installer
https://www.microsoft.com/en-us/download/details.aspx?id=35

从网上下载下来的模型文件大部分是 FBK 格式,需要通过建模软件将 FBK 文件解析导出 Mesh 文件和 Texture 文件(编辑器目前还不支持材质球,所以 Texture 要是一张图)

以 Blender 为例,需要使用插件 blender2ogre

官方文档:“Copy the io_ogre folder into the $BLENDER_DIR/scripts/addons folder”。

即把 io_ogre 文件夹放到 Blender 安装路径/scripts/addons。然后要在 io_ogre/config.py 中配置这个插件要用到的 ogre 的 sdk 的路径。其实在 Blender 的用户偏好里面设置一样的。
我在 SDK 里面没找到 meshmagick.exe,只能在 github 上找到未编译的版本的,但是这个插件又需要它的可执行文件,所以只能自己用 cmake 编译了
第一次使用 cmake 编译的时候,可能会被报错:Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) ,那就代表你还要配置一个 PkgConfig,流程如下

转到 https://download.gnome.org/binaries/win32/dependencies/
下载文件 pkg-config_0.26-1_win32.zip
将文件 bin / pkg-config.exe 解压缩到 MinGW根目录 \ bin
下载文件 gettext-runtime_0.18.1.1-2_win32.zip
将文件 bin / intl.dll 提取到 MinGW根目录 \ bin
转到 http://ftp.gnome.org/pub/gnome/binaries/wi

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值