Does anyone have any tips or links on how to go about Level of Detail calculation.

I have a bunch of triangles that I need to split into a number of smaller triangles as the camera gets closer, and unsplit as it gets further away.

I know I have do calculate something to do with the camera distance but I'm not sure what...triangle size? Max length of the sides?

Anyone got any tips?

Cheers

Dean