I'm new to opengl. As a learning exercise I started manually building some basic shapes, then moved to writing a generic .off file viewer.
My question is how "size" the "window" to fit arbitrarily sized models. I had been trying to "pull back" from the model by translating in the -z direction by some factor based on the range of x, y, or z coords, and this works, usually, but not always and seems like the wrong approach. sorry for the quotes, like i said i'm new and am lacking some terminology.
This happens to be on an android platform using opengl es 1.0 if that makes a difference.
Can anyone point me to a best practice for achieving this?
You should get familiar with the OpenGL functions for setting of your view volume/frustum.
Here's an article specific to OpenGL ES (iPhone) that should get you started, however the standard OpenGL programming guide and references both apply for these concepts, too.