游戏开发论坛

 找回密码
 立即注册
搜索
查看: 1104|回复: 0

创建plane的问题

[复制链接]

63

主题

181

帖子

181

积分

注册会员

Rank: 2

积分
181
发表于 2008-8-4 02:50:00 | 显示全部楼层 |阅读模式
Plane plane;
        plane.normal=Vector3::NEGATIVE_UNIT_X;

    int width= mpApp->mWindow->getViewport(0)->getActualWidth();
        int height=mpApp->mWindow->getViewport(0)->getActualHeight();
     MeshPtr pViewMesh = MeshManager::getSingleton().createPlane(
                "viewMesh",         //Name
                ResourceGroupManager:EFAULT_RESOURCE_GROUP_NAME,
                plane,              //The plane create previously
                width,              //Width
                height,             //Height
                1,
                1,
                true,
                1,                  //the number of layer of texture
                1,                  //the number of texure on U
                1,                  //the number of texure on V
                Vector3::NEGATIVE_UNIT_X
                );

上面code会报错平面的upvector和法线重合,所以无效。是什么原因呢?
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-1-21 19:15

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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