def getPixelDepth(x,y):
    z = BGL.Buffer(BGL.GL_FLOAT, [1])
    glReadPixels (x,y, 1, 1, GL_DEPTH_COMPONENT, GL_FLOAT, z);
    print "value from depth buffer is",z
    return z[0]

in blender 2.49 this function returns the z coordinate since the pair (x, y), 
but what I can do it in 2.5 because those functions do not recognize them

Thanks.

-- 








Yuniel 
_______________________________________________
Bf-committers mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-committers

Reply via email to