Ogre -- 配置文件

  Ogre使用多个配置文件。这些配置文件的功能是控制加载的插件,指定程序资源所在的路径等等。这里,我们只是简单地介绍配置文件及他们各自的功能。


plugins.cfg: 这个配置文件指定应用程序所使用的插件。如果你想要添加或删除程序中的某个插件,你需要修改这个文件。移除某个插件,只要简单的删除对应的行,或通过在该行头添加个"#“来注释掉该行。添加某个插件,你将需要添加一行代码,代码如下”PlugIn=[PluginName]“。注意不需要扩展名dll。你还可以通过设定”PluginFolder"变量来指定程序寻找动态链接库的路径。PluginFolder的值可以设置为绝对路径和相对路径,但是不能使用环境变量。


resources.cfg: 这个配置文件指定程序需找资源的路径的列表。资源包过脚本, 网格,纹理等。同样这里的路径可以是绝对路径或相对路径,但不能使用环境变量。注意: 程序不会扫描子目录,故子目录如果包含资源,则需要添加该目录到路径列表中。


ogre.cfg: 这个配置文件由ogre的配置屏幕模块生成的。这个配置文件指定了你的个人电脑和图形硬件配置。


Ogre -- Demo框架的配置文件

plugins.cfg

# Defines plugins to load

# Define plugin folder
PluginFolder=D:\Project\OgreApplication\build\bin\Debug

##### Define plugins ############
# Define RenderSystem
 Plugin=RenderSystem_Direct3D9_d
# Plugin=RenderSystem_Direct3D11_d
 Plugin=RenderSystem_GL_d
# Plugin=RenderSystem_GLES_d
# Plugin=RenderSystem_GLES2_d


Plugin=Plugin_ParticleFX_d
# Plugin=Plugin_BSPSceneManager_d
# Plugin=Plugin_CgProgramManager_d
 Plugin=Plugin_PCZSceneManager_d
#Plugin=Plugin_OctreeZone_d
Plugin=Plugin_OctreeSceneManager_d

resoures.cfg

[Popular]
#ground->setMaterialName("Examples/BeachStones")需要
FileSystem=D:/Project/OgreApplication/build/Media/materials/scripts
FileSystem=D:/Project/OgreApplication/build/Media/materials/textures
#SinbadEnt = _sceneManager->createEntity("Sinbad.mesh")需要
Zip=D:/Project/OgreApplication/build/Media/packs/Sinbad.zip

ogre.cfg

Render System=Direct3D9 Rendering Subsystem

[Direct3D9 Rendering Subsystem]
Allow NVPerfHUD=No
FSAA=0
Fixed Pipeline Enabled=Yes #固定管线
Floating-point mode=Fastest
Full Screen=No
Multi device memory hint=Use minimum system memory
Rendering Device=Monitor-1-Intel(R) HD Graphics 4600 #集成显卡
Resource Creation Policy=Create on all devices
Use Multihead=Auto
VSync=No
VSync Interval=1
Video Mode=800 x 600 @ 32-bit colour
sRGB Gamma Conversion=No

[OpenGL Rendering Subsystem]
Colour Depth=32
Display Frequency=59
FSAA=0
Fixed Pipeline Enabled=Yes
Full Screen=Yes
RTT Preferred Mode=FBO
VSync=No
VSync Interval=1
Video Mode=1024 x 768
sRGB Gamma Conversion=No
参考:
Ogre Basic Tutorial 1 - http://www.ogre3d.org/tikiwiki/Basic+Tutorial+1
Ogre -- Demo框架 - http://blog.csdn.net/waitin2010/article/details/24800701



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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值