Fit 3d model inside a window
问题 I want to display models of different sizes fitted into a view, so that the whole model is visible inside the screen. What is the best way to do it? I tried scaling (using glScale) the model using this formula scaleFactor = ( screenSize / (maxModelSize * constant) ) Where size is height or width, depending on what is bigger. Constant is 1 / (length of one screen pixel in OpenGL units) There are two problems with this: 1. After doing some transformations, I want to be able to return to this