How to set Bit width/precision of the depth buffer(z buffer) in OGRE? -


i read zbuffer_value can found using

z_buffer_value = (1<<n) * ( + b / z ) 

where:

n = number of bits of z precision = zfar / ( zfar - znear ) b = zfar * znear / ( znear - zfar ) z = distance eye object 

i using ogre 1.82. how set/know number "n" ? checked ogre::depthbuffer class found no hint number n. using nvidia gtx titanx

cross-post: same question ogre3d.org/forums


you can bit depth of depth buffer via method:

uint16 depthbuffer::getbitdepth() const 

api link


Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -