摘要: LoadScene: COFSSceneSerializer()->Import(FileName); OgitorsSystem->UpdateProcess(...); if not finished print "Loading x% ..." update(); else print "OK" update();COFSSceneSerializer()->Import(FileName): loadmsg = mSystem->Translate("Parsing Scene File"); mSys 阅读全文
posted @ 2012-07-09 22:17 jinfengswust 阅读(262) 评论(0) 推荐(0) 编辑
摘要: 今天的却是令人振奋不已!上图: 阅读全文
posted @ 2012-07-09 20:07 jinfengswust 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 确实挺后悔没有早点在github上学习,没有用到git工具,亡羊补牢吧,先记录一下简单的步骤:1、下载 Git for Windows,安装后到你的D盘创建一个Git文件夹;2、创建 D:/Git/Hello 文件夹,然后进入 Hello,点击右键选择 gitbash;3、在 github 上注册免费账号,新建容器 Hello,设置ssh值(用git gui很容易生成,粘贴过去)4、 git config --global user.name 'jinfeng' git config --global user.email 'jinfengswust@163.com&# 阅读全文
posted @ 2012-07-08 11:48 jinfengswust 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 1、打开VS2008,新建空Win32工程,命名为 test;2、使用Ogre Wiki 上的基础教程六(因为它完全基于Ogre,而不是Framework),注意文件名与文件中定义的相同;3、将拷贝的文件添加到工程中;4、设置项目属性: 1、所有配置-常规-输出目录:bin\$(ConfigurationName); 中间目录:obj\$(ConfigurationName); 字符集:使用多字符集 2、所有配置-调试-命令:bin\$(ConfigurationName)\$(ProjectName).exe -工作目录:bin\$... 阅读全文
posted @ 2012-07-08 10:06 jinfengswust 阅读(797) 评论(0) 推荐(0) 编辑
摘要: 官方教程:https://bitbucket.org/jacmoe/ogitor/wiki/Building_Ogitor_-_Windows1、下载安装DirectX9.02、下载解压OgreSDK,内包含部分Boost内容,并添加到环境变量:OGRE_HOME=..., OGRE_BYATIS=...3、下载解压Qt(有编译好的VS2008版本的),并添加到环境变量:QTDIR=..., QTBIN=....4、下载Boost库(有编译好了的,也可以自己从源码生成),添加到环境中:BOOST_ROOT=....5、下载安装TortoiseHg,打开命令行窗口,执行hgclonehttps: 阅读全文
posted @ 2012-07-07 14:29 jinfengswust 阅读(1012) 评论(0) 推荐(0) 编辑
摘要: View Code 1 [bits 32] 2 start_32: 3 mov ax,0x10 4 mov ds,ax 5 mov word [gdtr],gdt_end-gdt 6 mov dword [gdtr+2],gdt 7 mov word [idtr],idt_end-idt 8 mov dword [idtr+2],idt 9 lgdt [gdtr]10 lidt [idtr]11 mov ax,0x1012 mov ds,ax13 mov es,ax14 mov ss,ax ... 阅读全文
posted @ 2012-07-03 13:29 jinfengswust 阅读(124) 评论(0) 推荐(0) 编辑
摘要: View Code 1 ; 2012.6.30, Jinfeng @ SWUST 2 ; nasm boot.asm -o boot.bin 3 4 org 07c00h ; cs:ip = 07c00h 5 entry: 6 ; set env 7 mov ax,cs 8 mov ds,ax 9 mov es,ax10 mov ss,ax11 mov sp,0x40012 13 load_system:14 mov dx,0x000015 mov cx,0x000216 17 mov a... 阅读全文
posted @ 2012-07-03 13:28 jinfengswust 阅读(148) 评论(0) 推荐(0) 编辑
摘要: View Code 1 FLAG BIT 00H 2 PULSE DATA 40H 3 4 ORG 0000H 5 AJMP RESET 6 ORG 0013H 7 AJMP EINT1 8 ORG 001BH 9 AJMP TINT110 11 ORG 0040H12 RESET:13 MOV TMOD,#010H14 SETB PX1 ; 一定要设外部中断优先15 SETB IT116 SETB EX117 SETB ET118 SET... 阅读全文
posted @ 2012-06-11 16:55 jinfengswust 阅读(190) 评论(0) 推荐(0) 编辑
摘要: View Code 1 /* Basic Ogre life cycle: 2 * 1. Create Root Object. 3 * 2. Define the resources that Ogre will use. 4 * 3. Choose and setup the RenderSystem. 5 * 4. Create the RenderWindow. 6 * 5. Initialise the resources that you are going to use. 7 * 6. Create a scene using those resources. 8 ... 阅读全文
posted @ 2012-05-13 13:30 jinfengswust 阅读(230) 评论(0) 推荐(0) 编辑
摘要: View Code 1 /* 使用OGRE默认的资源文件语法分析器得到所有的资源 */ 2 mResourceCfg = "plugins_d.cfg"; 3 Ogre::ConfigFile cf; 4 cf.load(mResourceCfg); 5 6 Ogre::ConfigFile::SectionInterator seci; 7 seci = cf.getSectionInterator(); 8 Ogre::ConfigFile::SettingsMultiMap *settings; 9 Ogre::ConfigFile::SettingsMultiMa. 阅读全文
posted @ 2012-05-13 12:21 jinfengswust 阅读(289) 评论(0) 推荐(0) 编辑