游戏开发论坛

 找回密码
 立即注册
搜索
查看: 2447|回复: 6

????OGRE???????

[复制链接]

12

主题

21

帖子

21

积分

注册会员

Rank: 2

积分
21
发表于 2007-8-29 11:18:00 | 显示全部楼层 |阅读模式
????OGRE????????

??OGRE????createPlane?????????????Ray?????????????????????
setWorldGeometry???????????????????????

42

主题

137

帖子

137

积分

注册会员

Rank: 2

积分
137
发表于 2007-8-29 17:47:00 | 显示全部楼层

Re:????OGRE???????

?plane??entity?????node?

12

主题

21

帖子

21

积分

注册会员

Rank: 2

积分
21
 楼主| 发表于 2007-8-29 18:31:00 | 显示全部楼层

Re: ????OGRE???????

Plane plane;
    plane.normal = Vector3::UNIT_Y;
    plane.d = 100;
    MeshManager::getSingleton().createPlane("Myplane",
        ResourceGroupManager:EFAULT_RESOURCE_GROUP_NAME, plane,
        1024,1024,32,32,true,1,60,60,Vector3::UNIT_Z);

    for(int i = 0;i < 2;i++)
    {
        for(int j = 0;j < 2;j++)
        {
            Entity* pPlaneEnt = mSceneMgr->createEntity( "plane" + StringConverter::toString(i) + "_" + StringConverter::toString(j), "Myplane" );
            pPlaneEnt->setMaterialName("Examples/Rockwall");
            pPlaneEnt->setCastShadows(false);

            SceneNode* pNode = mSceneMgr->getRootSceneNode()->createChildSceneNode(Vector3(0,0,0));
            pNode->attachObject(pPlaneEnt);
            pNode->setPosition(i * 1024 + 512, 0, j * 1024 + 512);
        }
    }

??????????Entity?SceneNode, ????????

4

主题

27

帖子

27

积分

注册会员

Rank: 2

积分
27
发表于 2007-8-30 09:54:00 | 显示全部楼层

Re:????OGRE???????

Lz????worldfragment??moveable??

12

主题

21

帖子

21

积分

注册会员

Rank: 2

积分
21
 楼主| 发表于 2007-8-30 10:09:00 | 显示全部楼层

Re:????OGRE???????

??????worldfragment???moveable????????

4

主题

27

帖子

27

积分

注册会员

Rank: 2

积分
27
发表于 2007-9-3 11:46:00 | 显示全部楼层

Re:????OGRE???????

??????????????

??Plane????SceneNode???????MoveAble list??
???????

3

主题

12

帖子

16

积分

新手上路

Rank: 1

积分
16
发表于 2007-9-18 21:46:00 | 显示全部楼层

Re:????OGRE???????

????
????????????
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2025-12-17 13:17

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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