How to place the camera so that my main subject is fully visible and fit the screen?

The object is in the center of the 3D plane. I know the boundaries of the object.

For the three-dimensional plane X from left to right, Y - from bottom to top, and Z - from the inside of the screen to the outside. The object has a positive direction Z.

I want to place my camera in X = 0, Y = 0 and Z = somewhere so that the camera can see the entire object from the left to the right, the top to the very bottom and its front side.

So guys, please help me here, Z = ...?

+3
source share
1 answer

Formula

R - .
V - , 0 < V < 90 .
H - , 0 < H < 90 .

, , Z = R/sin (min (V, H)).

Z, . Z, Z = R/sin (V).

Derivation

Z, , Z = R/sin (H). , , Z = max (R/sin (V), R/sin (H)) = R/sin (min (V, H)).

+2

All Articles