PDA

View Full Version : How do you Find Precision of Depth Buffer?



rangers99
11-13-2002, 06:12 PM
I want to know how many bits of precsion my depth buffer uses. How do I find this?

What is the typical value?

cheers.

yakuza
11-13-2002, 06:37 PM
Depth buffer precision is set when you create your window. Typical values are 16, 24, or 32 bit.

Here's a link to MSDN that describes:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/opengl/ntopnglr_73jm.asp

You can also look at the code in Nehe tutorials, or other tutorials.

Hope that helps.

rangers99
11-13-2002, 07:59 PM
yazuka, it certainly helps. many thanks.