OGRE运行期结构

OGRE运行期结构

江西理工  方声辉 2010年10月7日星期四

运行完DEMO之后,注意查看ogrenew\Samples\Common\bin\Debug文件夹中的内容,从这里可以看到OGRE程序的运行环境。

除了DEMO的可执行文件外,该文件夹中还包括如下动态链接库:

Debug:

OgreMain_d.dll

IOS_d.dll

OgrePlatform_d.dll

RenderSystem_Direct3D7_d.dll

RenderSystem_Direct3D8_d.dll

RenderSystem_SDL_d.dll

Plugin_GuiElements_d.dll

Plugin_BspSceneManager_d.dll

Plugin_OctreeSceneManager_d.dll

Plugin_FileSystem_d.dll

Plugin_ParticleFX_d.dll

Devil_d.dll

SDL_d.dll

 

Release:

OgreMain.dll

IOS.dll

OgrePlatform.dll

RenderSystem_Direct3D7.dll

RenderSystem_Direct3D8.dll

RenderSystem_SDL.dll

Plugin_GuiElements.dll

Plugin_BspSceneManager.dll

Plugin_OctreeSceneManager.dll

Plugin_FileSystem.dll

Plugin_ParticleFX.dll

Devil.dll

SDL.dll

其它:

你的机器上还必须包括DirectX 8.1(DirectX 9.0)和STLport的动态链接库,一般系统会将它们自动安装到Windows系统文件夹下,所以这里看不到,但它们也是必须的。

 

OGRE的运行还需要如下的配置文件:

Ogre.cfg :OGRE的显示模式配置文件

plugins.cfg :插件配置文件,在这里指定插件的路径和插件文件名。上一个表中以Plugin_开头的dll文件都是插件,它们可以放在其它文件夹里,但必须在本文件里指定路径。

Resources.cfg : 资源配置文件,设置资源搜索路径,Zip文件也作为搜索路径对待。

quake3settings.cfg : quake3地图配置文件。

Terrain.cfg : 室外地形场景配置文件。

Ogre要能找到"plugins.cfg", "resources.cfg", 和 "media.cfg",它才能正确运行

OGRE程序的运行当然少不了各种资源,资源路径在resources.cfg里指定。OGRE DEMO的资源都放在Samples\Media及其下的Zip文件里。资源文件包括以下内容:

.skeleton骨骼动画的骨骼定义文件

.particle粒子模板定义文件

.overlay二维及三维界面定义文件

.mesh模型文件

.material材质定义文件

.fontdef字体定义文件

.jpg图片文件

.png图片文件

posted @ 2010-10-09 17:16  xyecho  阅读(470)  评论(0编辑  收藏  举报