Description: 文章地址:http://www.cnblogs.com/syqking
实现地形的部分主要都是改ETM实现的。
场景环境和模型的载入时直接在Sample中用Tinyxml实现的。
修改的ETM源文件所在目录为.\dependency\ETM\src
Demo源文件所在目录为.\dependency\ETM\Sample
由于大小问题大部分资源文件,静态库都未包含,所以请自行添加Ogre自带的一些资源文件和TTLB的资源文件,并可能需要修改项目的一些路径设置。
TTLB资源文件可由提取工具从游戏中提取。访问http://www.cnitblog.com/sword/category/5167.htmlScene可获取。
bin/Release文件夹下有可执行文件及其所需的动态库,所需要的资源包含进去后应该就可以运行Demo
所需要的资源有:shaolin场景所需要的.mesh文件(media/TTLB/model)及其对应的纹理(media/TTLB/material/textures),地形贴图文件(media/TTLB/brush)。
Temp文件夹中有all.material文件,是所有模型的材质,现在的新版本TTLB中是加密的,建议不要加到资源目录中,不然载入很慢,可以挑要用到的新建一个材质文件。media/TTLB/material/scripts中已有少林场景要用到的材质文件。
2009-10
Shen Yuqing
HUST
syq.myth@gmail.com
To Search:
File list (Check if you may need any files):
TTLBSceneDemo\bin\Debug\media.cfg
.............\...\.....\ogre.cfg
.............\...\.....\Ogre.log
.............\...\.....\Plugins.cfg
.............\...\.....\quake3settings.cfg
.............\...\.....\resources.cfg
.............\...\Release\CEGUI.log
.............\...\.......\CEGUIBase.dll
.............\...\.......\CEGUIExpatParser.dll
.............\...\.......\CEGUIFalagardWRBase.dll
.............\...\.......\cg.dll
.............\...\.......\d3dx9_39.dll
.............\...\.......\Demo_ETSM.exe
.............\...\.......\EditableTerrainManager.dll
.............\...\.......\media.cfg
.............\...\.......\ogre.cfg
.............\...\.......\Ogre.log
.............\...\.......\OgreGUIRenderer.dll
.............\...\.......\OgreMain.dll
.............\...\.......\OIS.dll
.............\...\.......\Plugins.cfg
.............\...\.......\Plugin_BSPSceneManager.dll
.............\...\.......\Plugin_CgProgramManager.dll
.............\...\.......\Plugin_OctreeSceneManager.dll
.............\...\.......\Plugin_ParticleFX.dll
.............\...\.......\quake3settings.cfg
.............\...\.......\ReferenceAppLayer.dll
.............\...\.......\RenderSystem_Direct3D9.dll
.............\...\.......\RenderSystem_GL.dll
.............\...\.......\resources.cfg
.............\.uild\TTLBSceneDemo.sln
.............\.....\TTLBSceneDemo.suo
.............\dependency\ETM\EditableTerrain.vcproj
.............\..........\...\EditableTerrain.vcproj.KingMars.Administrator.user
.............\..........\...\include\ETBrush.h
.............\..........\...\.......\ETPrerequisites.h
.............\..........\...\.......\ETSplattingManager.h
.............\..........\...\.......\ETTerrainInfo.h
.............\..........\...\.......\ETTerrainManager.h
.............\..........\...\.......\Impl\ETIndexHandler.h
.............\..........\...\.......\....\ETOptions.h
.............\..........\...\.......\....\ETTerrainImpl.h
.............\..........\...\.......\....\ETTile.h
.............\..........\...\Sample\ETSample.cpp
.............\..........\...\......\Ogre.log
.............\..........\...\......\Sample.cbp
.............\..........\...\......\Sample.vcproj
.............\..........\...\......\Sample.vcproj.KingMars.Administrator.user
.............\..........\...\......\ve-AF.tmp
.............\..........\...\src\ETBrush.cpp
.............\..........\...\...\ETIndexHandler.cpp
.............\..........\...\...\ETLightmap.cpp
.............\..........\...\...\ETLoadSaveHeightmap.cpp
.............\..........\...\...\ETSplattingManager.cpp
.............\..........\...\...\ETTerrainInfo.cpp
.............\..........\...\...\ETTerrainManager.cpp
.............\..........\...\...\ETTile.cpp
.............\..........\include\cppunit\cppunit\AdditionalMessage.h
.............\..........\.......\.......\.......\Asserter.h
.............\..........\.......\.......\.......\BriefTestProgressListener.h
.............\..........\.......\.......\.......\CompilerOutputter.h
.............\..........\.......\.......\.......\config\config-bcb5.h
.............\..........\.......\.......\.......\......\config-evc4.h
.............\..........\.......\.......\.......\......\config-mac.h
.............\..........\.......\.......\.......\......\config-msvc6.h
.............\..........\.......\.......\.......\......\CppUnitApi.h
.............\..........\.......\.......\.......\......\Makefile.am
.............\..........\.......\.......\.......\......\Makefile.in
.............\..........\.......\.......\.......\......\SelectDllLoader.h
.............\..........\.......\.......\.......\......\SourcePrefix.h
.............\..........\.......\.......\.......\Exception.h
.............\..........\.......\.......\.......\extensions\AutoRegisterSuite.h
.............\..........\.......\.......\.......\..........\ExceptionTestCaseDecorator.h
.............\..........\.......\.......\.......\..........\HelperMacros.h
.............\..........\.......\.......\.......\..........\Makefile.am
.............\..........\.......\.......\.......\..........\Makefile.in
.............\..........\.......\.......\.......\..........\