zoukankan      html  css  js  c++  java
  • 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信息了。

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

  • 相关阅读:
    day9文件处理
    day8字符编码
    js小数乘法精确率问题
    webstorm上传vue代码至git
    vue项目关闭eslint检查
    MongoDB相关操作
    Redis持久化存储
    Redis 数据类型
    linux常用命令
    初识NoSQL
  • 原文地址:https://www.cnblogs.com/gameprogram/p/2428832.html
Copyright © 2011-2022 走看看