O you are looking for the auto fit values, sorry I thought you wanted a simple movable camera.
Simplest way to do auto fit is to calculate the bounding sphere of the model and based on it's radius and the lookat point calculate the eye position.
An exact auto fit is something very different though, I'm still not happy with mine (which is the 3rd version or so).
Simplest way to do auto fit is to calculate the bounding sphere of the model and based on it's radius and the lookat point calculate the eye position.
An exact auto fit is something very different though, I'm still not happy with mine (which is the 3rd version or so).