scale random 3d model to fit in a viewport

Posted by John Qualis on Stack Overflow See other posts from Stack Overflow or by John Qualis
Published on 2010-04-03T15:20:26Z Indexed on 2010/04/03 15:23 UTC
Read the original article Hit count: 184

Filed under:

How can I scale a random 3d model to fit in an opengl viewport? I am able to center the model in the middle of the view port. How do I scale it to fit it in the viewport. The model could be an airplane, a cone, an 3d object or any other random model.

Appreciate any help.

© Stack Overflow or respective owner

Related posts about opengl