2009-05-17
2009-01-02
全部评论112
材质设置完了以后就可以导出oxx格式的文件了 把模型文件都放的D:\OgreSDK\media\models(我的路径是D盘)文件夹下 材质放到D:\OgreSDK\media\materials\textures 材质脚本放到:D:\OgreSDK\media\materials\scripts 然后从ofusion官网上下载这两个文件 http://www.ofusiontechnologies.com/downloads.html 1.oScene loader library source code 2.oScene loader demo application source code 然后解压开,打开E:\oSceneLoader_demo_dagon\scripts里面的文件(路径自己随便,我是放在了E盘), 然后打开oSceneLibDemo.h文件, 修改这个行 oScene.initialise("scene.oxx", &oe_Callback); 为 oScene.initialise("shinei001.oxx", &oe_Callback); 其实就是自己导出,oxx文件的名字 编译一下,看看。。。。。。。。。 |
1>e:\osceneloader_demo_dagon\include\ogreoxxscene.h(24) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory 1>e:\osceneloader_demo_dagon\include\oscenelibdemo.h(16) : fatal error C1083: Cannot open include file: 'ExampleApplication.h': No such file or directory 如果不出意外会出现这两个错误 不要着急,修改一下重新添加下路径就行了(如图,注意debug和release都需要改一下) |
接着编译一下看看。。。。。。。。。 1>..\include\oSceneLibDemo.h(59) : error C2065: 'mInputDevice' : undeclared identifier 1>..\include\oSceneLibDemo.h(59) : error C2227: left of '->isKeyDown' must point to class/struct/union/generic type 1> type is ''unknown-type'' 1>..\include\oSceneLibDemo.h(59) : error C2065: 'KC_C' : undeclared identifier 如果不出意外话,会出现三个错误,这里的坚决办法是 修改if (mInputDevice->isKeyDown(KC_C) && timeDelay <= 0) { 为 if (mKeyboard->isKeyDown(OIS::KC_C) && timeDelay <= 0) { 再编译一下,我祈祷。。。。。。。 如果不出意外(汗。。。。。总是这句话),还会出现个错误 1>LINK : fatal error LNK1181: 无法打开输入文件“OgreMain.lib” 很好解决这个问题看图 |
原帖由 xiaomage 于 2009-4-29 0:43:00 发表 我也要demo包 xiaomagezh@sina.com 在这先谢谢楼主了,最近对这个特感兴趣 |
你可能喜欢
回复: 谈谈自己做游戏demo的心得!(新手)