[osg-users] Is the Z-Buffer linear or non-linear?

2011-08-24 Thread Martin Großer
Hello, I am completely confused about the Z-Buffer. I thought it is non-linear but now I read a lot in forums and now I am not sure about that. The reason about this question is I want render linear depth values into a texture. I think, I can do it with this shader: varying float depth;

Re: [osg-users] Is the Z-Buffer linear or non-linear?

2011-08-24 Thread Martin Großer
Großer grosser.mar...@gmx.de An: osg-users@lists.openscenegraph.org Betreff: [osg-users] Is the Z-Buffer linear or non-linear? Hello, I am completely confused about the Z-Buffer. I thought it is non-linear but now I read a lot in forums and now I am not sure about that. The reason about

Re: [osg-users] Is the Z-Buffer linear or non-linear?

2011-08-24 Thread Tomlinson, Gordon
10:01:23 +0200 Von: Martin Großer grosser.mar...@gmx.de An: osg-users@lists.openscenegraph.org Betreff: [osg-users] Is the Z-Buffer linear or non-linear? Hello, I am completely confused about the Z-Buffer. I thought it is non-linear but now I read a lot in forums and now I am not sure about

Re: [osg-users] Is the Z-Buffer linear or non-linear?

2011-08-24 Thread Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC
-Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Martin Großer Sent: Wednesday, August 24, 2011 5:58 AM To: OpenSceneGraph Users Subject: Re: [osg-users] Is the Z-Buffer linear or non-linear? Hello, I