|
|
SharkD schrieb:
> gregjohn wrote:
>> It took me 13 years of povving to understand the camera. That is, to
>> come up
>> with the code for a box which exactly fills the screen, regardless of
>> camera
>> angle/ distance and image aspect ratio.
>
> I don't see what the difficulty is. It's as simple as this:
>
> ...
>
> The trick here is to not use the angle and look_at keywords. In this
> case, they're more trouble than they're worth. Also, if you omit the
> image_width/image_height stuff, then it fills the viewport *exactly*,
> regardless of the aspect ratio.
What you're doing is designing camera parameters so that a certain
"friendly" box fills the entire screen.
The OP's challenge, however, was quite different: From a given arbitrary
(potentially "unfriendly") camera perspective, compute parameters for a
box to fill the screen (possibly to overlay a border, signature or
whatever onto the image).
Post a reply to this message
|
|