Ogre

kreapt 2008-11-14 01:23:18
怎样配置Ogre1.6的开发环境。
我用的是Ogre1.6sdk和vs2003,安装好sdk后,我还需要怎么做才能进行Ogre的编程?
...全文
199 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
Show_Mike 2008-11-14
  • 打赏
  • 举报
回复
给你一段使用应用向导的说明吧~~~enjoy it!
Introduction
This is a brief, but detailed guide to use the OGRE SDK and the OGRE SDK AppWizard.

Remember: you don't need anything but Visual C++, the OGRE SDK and the AppWizard.

And you don't need to configure any project options. The wizard takes care of that.

Get It
Get the OGRE SDK for your compiler .


Get the OGRE SDK AppWizard for your compiler .

Make sure that the AppWizard matches the version of the OGRE SDK!

Install It
OGRE SDK
Very important!

Do not install this into a directory name with spaces in it, like "My Documents" or the like. You are only asking for trouble.

Choose a sensible no-spaces-in-it name, like C:\OgreSDK.




Install the OGRE SDK.

After installation, we are checking that everything is alright. We want the OGRE_HOME environment present,
and we want it to point to where the OgreSDK is installed.

It happens by default, but we are checking anyway.

Right-Click the "My Computer" icon, go to the Advanced tab and click on the Environment Varibles button.




You should see an OGRE_HOME environment variable pointing to your newly installed OGRE SDK.

OGRE AppWizard
OK. Now unzip the OGRE AppWizard to somewhere safe. Jump into the folder, and find the installation script:




Double-click on it. Hopefully it is succesful:
Forget about this directory! You don't need to see it again, nor use it. Just leave it where it is, alright? :-)
You will create new projects from Visual Studio, not from here.

Use it
Now, it is time to fire up Visual Studio.

Create a New Project
Create a new project:




Locate the OGRE SDK Application Icon, and don't forget to give your project a name and a place to stay!

Again, you are advised to choose a no-spaces-in-it-path. :-)




[edit]
Follow the Wizard
Click OK and watch the first page of the OGRE SDK Application Wizard:




Go to the next page - make sure that the post-build copy is checked:




Click on "Finish" - and watch your new project:



Build your Project
Build your project:




Watch the output window for success:



Notice that the exe is copied to the OgreSDK/bin/debug directory.

Run it
Go to your OgreSDK/bin/debug directory and find your creation:


zhucde 2008-11-14
  • 打赏
  • 举报
回复
你最好下载Ogre1.6('Shoggoth')的源代码,
因为如果你进行应用程序的开发, 有些会用到源码里的头(Sample\Common)中的,
另外还有Dependence.
palmax 2008-11-14
  • 打赏
  • 举报
回复
在vs2003里设置ogre的头文件和库文件包含路径
sdk可以直接用开始菜单里的 register sdk directories with visual studio 来添加路径包含

19,468

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 图形处理/算法
社区管理员
  • 图形处理/算法社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧