zbuf range

how is the zbuf field encoded in a plugin?
I’m getting some mysterious large numbers and i don’t know what they mean.
Looking at the code for showzbuf suggests that they range from 0 to 64M, but it also has a comment that says “remember that the values are not liniar”, well what are they?

Thanks in advance

[bump]
come on, someone has to know this…

[bump]
/me tries not to get angry that his simple question is being completely ignored :< :<

AFAIK, the values are quadratic inverse, if that makes any sense… :wink:

:smiley:
Thanks for (finally) answering!
I will have a bit of a closer look and see if i can figure it out
i suppose it would make sense for the zbuf somehow be the square of the distance, as that’s a simple formula (compared to just distance)