• Ogre中的阴影(Ogre Shadow)


    有关Ogre的shadow的一些基本的东西。

    http://blog.csdn.net/eplaylity/article/details/4706404

    忽然发现自己的模型没有阴影,本来以为是OGRE默认是没有,结果是有的。。

    原文:

    Stencil shadows can only be calculated when an 'edge list' has been built for all the geometry in a mesh. The official exporters and tools automatically build this for you (or have an option to do so), but if you create your own meshes, you must remember to build edge lists for them before using them with stencil shadows - you can do that by using OgreMeshUpgrade or OgreXmlConverter, or by calling Mesh::buildEdgeList before you export or use the mesh. If a mesh doesn't have edge lists, OGRE assumes that it is not supposed to cast stencil shadows.

    想要使用Stencil的shadow,必须要有一个'edge list' 的信息,我们可以从OgreMax中勾选让它导出这个信息。

    可以看到最下面的Generate Edge Lists。勾选它就可以导出edge list信息了。

    最后就可以得到想要的结果了。

  • 相关阅读:
    867-转置矩阵
    704-二分查找
    选择排序
    999-车的可用捕获量
    66-加一
    观察者模式(1)
    命令模式(3)-宏命令
    命令模式(2)-命令接口中的撤销方法
    接口测试
    移动端测试
  • 原文地址:https://www.cnblogs.com/gameprogram/p/2428832.html
Copyright © 2020-2023  润新知