Can someone PLEASE tell me how to find the coord (Vertex) that

can be used to calcuate my object’s distance from the camera?

I know how to do depth sorting once I have an array of depths,

I know how to build the array of depths, find distances from

a point to another point, and every thing except for one step

that I have tried absolutely everything I can think of but all

have failed.

Its just one simple small little step but I can’t work it out

because I don’t know what OpenGL does inside.

I just want to find the coord (vertex) that can be used to

calculate the distance of any object to the camera.

Eg, if I transform all vertexes by +7 in the x direction, then

I need to use that in my 3d pythagoras function. The problem

comes from when I rotate. Then I’m totally and completely lost,

and I get incorrect visual results no matter what I try.

Can someone help please?