|
In lugnet.cad.dev, Orion Pobursky writes:
> Maybe someone can point me in the right direction...
>
> I have an object with a known bounding box, how do I calculate the position
> of the camera so that the whole object is shown on a screen of known
> dimentions? In other words, how to I determine the amount I should the
> camera away from the object so that the entire object is shown in the viewport?
This document describes a method of scaling to fit a bounding sphere
into a viewport, starting somewhere around page 30.
http://www-lmr.usc.edu/~requicha/ch2.pdf
I would think you'd have to pick a camera angle first, or fix one
of the other variables like the distance to the camera.
Don
|
|
Message is in Reply To:
| | Camera Positioning
|
| Maybe someone can point me in the right direction... I have an object with a known bounding box, how do I calculate the position of the camera so that the whole object is shown on a screen of known dimentions? In other words, how to I determine the (...) (22 years ago, 25-Mar-03, to lugnet.cad.dev, lugnet.cad.ray)
|
3 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|