【问题标题】:How to set Bit width/precision of the depth buffer(z buffer) in OGRE?如何在 OGRE 中设置深度缓冲区(z 缓冲区)的位宽/精度?
【发布时间】:2016-09-22 11:35:10
【问题描述】:

我读到 zbuffer_value 可以使用

z_buffer_value = (1<<N) * ( a + b / z )

地点:

N = number of bits of Z precision
a = zFar / ( zFar - zNear )
b = zFar * zNear / ( zNear - zFar )
z = distance from the eye to the object

我正在使用 OGRE 1.82。我如何设置/知道数字“N”?我检查了 OGRE::depthbuffer 类,但没有发现数字 N 的提示。 我正在使用 Nvidia GTX TitanX

【问题讨论】:

    标签: precision ogre depth-buffer


    【解决方案1】:

    转帖:Same question ogre3d.org/forums


    您可以通过此方法获取深度缓冲区的位深度:

    uint16 DepthBuffer::getBitDepth() const
    

    API link

    【讨论】:

      猜你喜欢
      • 2014-04-12
      • 2012-04-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-09-19
      相关资源
      最近更新 更多