您的位置:首页 > 其它

ogre demo集成了caelum、hydrax

2011-06-20 15:19 357 查看
在原来 demo 的基础上集成了 caelum 、hydrax。

hydrax的demo中波浪很大,和我demo里的terrain很不协调。

在 hydrax demo 中 main.cpp 中将如下代码:

view plaincopy to clipboardprint?

// Create our projected grid module

Hydrax::Module::PerlinPG *mModule

= new Hydrax::Module::PerlinPG(mHydrax,

Ogre::Plane(Ogre::Vector3(0,1,0),

Ogre::Vector3(0,0,0)),

Hydrax::Module::PerlinPG::Options(_def_PGComplexity));

替换为

view plaincopy to clipboardprint?

Hydrax::Module::PerlinPG *mModule

= new Hydrax::Module::PerlinPG(mHydrax,

Ogre::Plane(Ogre::Vector3(0,1,0),

Ogre::Vector3(0,0,0)),

perlinOption1);

其中perlinOption1是自定义变量:

view plaincopy to clipboardprint?

Hydrax::Module::PerlinPG::Options perlinOption1( _def_PGComplexity, 1.8f, true,10, 0.3f, 1.0f 1.0f, 1.285f, 7.0f, false );

//主要是更改了perlinPG的一些参数。

截图:
1.



2.



3.



4.



5.



转自:http://blog.csdn.net/yaoyansi/archive/2008/07/06/2616587.aspx
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: