I'm writing a C++ application that outputs POV-Ray scripts of geometric
puzzles. The puzzles come in all concieveble sizes, tiny to humongous.
What I'm trying to do is calculate the location of the camera based on
the size of the object so that the object fills the view. I intend to
leave the camera angle set at 50 all the time.
Does anybody know the equation for this?
Thanks!
Steve
Post a reply to this message
|