|
软件标签: ogre引擎 游戏引擎
ogre引擎开发的游戏还是很不错的,在众多游戏开发引擎中此种引擎能够更好的渲染游戏的世界,同时支持c++进行游戏编程操作,其内的各项窗口设置以及渲染效果将让你快速的制作出拥有真实视觉的游戏世界,快来绿色资源网下载吧!
ogre引擎官方介绍
ogre是一个用c++开发的面向场景、非常灵活的3d引擎,它旨在让开发人员更容易、更直接地利用硬件加速的3d图形系统开发应用。这个类库隐藏了底层系统库(如:direct3d和opengl)的所有细节,提供了一个基于世界对象和其他直观类的接口。

ogre游戏引擎软件特色
译者注 gre在英文中意为:食人魔鬼, 怪物, 象鬼的人,故其logo是一个怪物头。
ogre引擎中文版功能介绍
◆ 简单易用的面向对象接口
◆ 最小化渲染3d场景
◆ 自动完成功能
◆ 类设计简洁
◆ 支持全范围的固定功能操作
◆ 多通路效果
◆ 支持多材质技术
◆ 支持windows,linux和mac osx
◆ 强大的材质声明语言
◆ 接受灵活的网格数据格式
◆ 可从许多建模工具导出模型
◆ 骨骼动画
◆ 二次贝塞尔曲面
◆ 完全的面向对象
◆ 支持direct3d和opengl
◆ 高度用户定义
◆ 基于bsp的插件
◆ 结构化场景图
◆ 粒子系统
◆ 灵活的雾控制
◆ 支持顶点和片断程序
◆ 易于扩展
◆ 支持材质lod
◆ 从其他文件中装载纹理
◆ 支持动态纹理
◆ 调试内存管理器
使用说明
ogre使用说明:
首先是正确安装了ogersdk,然后再照下面的步骤来配置。
1.新建
win32空项目ogre2.
2.工具
1. ->选项->项目和解决方案->vc++目录 显示以下内容的目录->包含文件
2. 添加:c greogresdksamplesinclude
3.添加:c greogresdkinclude 显示以下内容的目录->库文件
4. 添加:c greogresdklib3.项目->属性->配置属性
工作目录:c greogresdkindebug4.项目->属性->配置属性->链接器->输入 附加依赖项:ogremain_d.lib ois_d.lib ceguibase_d.lib ogreguirenderer_d.lib (_d表示debug版本的lib)
5.新建一个cpp文件,拷贝下面的代码到里面
6.运行结果如下图:
他将显示ogre安装对话框,并开始一个包含fps的深黑的屏幕(在左边)和ogre loge(右边的图标)。
我在这里没有添加任何东西,当按esc键退出。
代码:
--------------------------------------------------------------------------------------------------------------------------------------------
#include "exampleapplication.h" class tutorialapplication : public exampleapplication
{
protected:
public:
tutorialapplication()
{
}
~tutorialapplication()
{
}
protected:
void createscene(void)
{
}
};
#if ogre_platform == ogre_platform_win32
#define win32_lean_and_mean
#include "windows.h"
int winapi winmain( hinstance hinst, hinstance, lpstr strcmdline, int )
#else
int main(int argc, char **argv)
#endif
{
// create application object
tutorialapplication app;
try {
app.go();
} catch( exception& e ) {
#if ogre_platform == ogre_platform_win32
messageboxa( null, e.what(), "an exception has occurred!", mb_ok | mb_iconerror | mb_taskmodal);
#else
fprintf(stderr, "an exception has occurred: %s
",
e.what());
#endif
}
return 0;
}

|
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|