[Bf-committers] 2.49 to 2.5

Yuniel Castro González ycastrog at estudiantes.uci.cu
Tue Apr 26 17:47:09 CEST 2011


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 


More information about the Bf-committers mailing list