Re: [osg-users] Problem with perspective and depth value

2012-11-07 Thread Peterakos
Hello again. Forgot to mention this picture is the result of float depth_value = gl_FragCoord.z; gl_FragData[0] = vec4(depth_value, depth_value, depth_value, 1); This is how i try to export the depth texture. thnx again. ___ osg-users mailing list

Re: [osg-users] Problem with perspective and depth value

2012-11-07 Thread Thrall, Bryan
Peterakos wrote on 2012-11-07: Hello. I use the following to render a cessna. Viewer viewer; viewer.setSceneData(group); Camera* camera = viewer.getCamera(); camera-setProjectionMatrixAsPerspective(45, 1, 1, 30); viewer.setUpViewInWindow(40,40,width,height); return viewer.run();