Hi, I have a problem:
I have a 8 vertex cube in camera space, center is the camera origin viewing to z positive and I need calculate the octree order.
now I search the vertex with less distante to camera (0,0,0) but is expensive.
In the literature, always use object space, center in cube, and is easy calculate comparing the cube center and the camera position.
I try operate about matrix transformation but is expensive too. if invert the matrix and transform the negate center of cube, I get the numbers for comparing like the link, but, transform a vertex is expensive too.
my question is
I need calculate the octree order but in camera space, it can be done more fast?
Thank's in advance