游戏开发论坛

 找回密码
 立即注册
搜索
查看: 2258|回复: 1

hydrax看不到水

[复制链接]

30

主题

227

帖子

232

积分

中级会员

Rank: 3Rank: 3

积分
232
发表于 2009-4-30 23:08:00 | 显示全部楼层 |阅读模式
用了hydrax这个插件,但是当摄像机在水面上时看不到水,摄像机移到水面下时,却有在水下的效果。
以下是使用代码,照着hydrax的例子用的,运行这个例子能看见水,但是自己的就是不行。OGRE社区问过了,说是禁用阴影,我用ogre时间不长,不知道要禁用哪个的阴影。求高人解答下。


////创建Hydrax对象
        mHydrax = new Hydrax::Hydrax(mSceneMgr,mCamera,mViewport);

        //创建网格单元
        mModule = new Hydrax::Module:rojectedGrid(// Hydrax parent pointer
                mHydrax,
                // Noise module,柏林噪声
                new Hydrax::Noise::Perlin(/*Generic one*/),
                // Base plane
                Ogre::Plane(Ogre::Vector3(0,1,0), Ogre::Vector3(0,0,0)),
                // Normal mode
                Hydrax::MaterialManager::NM_VERTEX,
                // Projected grid options
                Hydrax::Module::ProjectedGrid::Options(/*264 /*Generic one*/));

        // 设置我们的单元
        mHydrax->setModule(static_cast<Hydrax::Module::Module*>(mModule));

        // Load all parameters from config file
        // Remarks: The config file must be in Hydrax resource group.
        // All parameters can be set/updated directly by code(Like previous versions),
        // but due to the high number of customizable parameters, Hydrax 0.4 allows save/load config files.
        mHydrax->loadCfg("HydraxDemo.hdx");

        // Create water
        mHydrax->create();

2

主题

49

帖子

49

积分

注册会员

Rank: 2

积分
49
发表于 2009-5-7 20:06:00 | 显示全部楼层

Re:hydrax看不到水

?z查你的座?讼 是否是Y向上
不是的? 要做相???男拚
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

作品发布|文章投稿|广告合作|关于本站|游戏开发论坛 ( 闽ICP备17032699号-3 )

GMT+8, 2025-12-20 11:04

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表