POV-Ray : Newsgroups : povray.newusers : Compute camera position Server Time16 Jun 2024 12:14:40 EDT (-0400)
 Compute camera position (Message 1 to 3 of 3)
 From: kurtz le pirate Subject: Compute camera position Date: 10 Jul 2016 11:14:46 Message: <57826666\$1@news.povray.org>
Hello,

I have datas to plot in <y,z> plane from 0..max(MaxY,MaxZ).
Image ratio is 1:1.

To see full image, camera position is <???, max/2, max/2>
and look at <0, max/2, max/2> ok.

But how to compute the x part of camera location ?

thanks

--
Kurtz le pirate
Compagnie de la Banquise
 From: kurtz le pirate Subject: Re: Compute camera position Date: 10 Jul 2016 11:51:05 Message: <57826ee9\$1@news.povray.org>
Le 10/07/2016 à 17:14, kurtz le pirate a écrit :
>
> Hello,
>
> I have datas to plot in <y,z> plane from 0..max(MaxY,MaxZ).
> Image ratio is 1:1.
>
> To see full image, camera position is <???, max/2, max/2>
> and look at <0, max/2, max/2> ok.
>
> But how to compute the x part of camera location ?

Found :

--
Kurtz le pirate
Compagnie de la Banquise
 From: William F Pokorny Subject: Re: Compute camera position Date: 10 Jul 2016 12:02:01 Message: <57827179\$1@news.povray.org>
On 07/10/2016 11:14 AM, kurtz le pirate wrote:
>
> Hello,
>
> I have datas to plot in <y,z> plane from 0..max(MaxY,MaxZ).
> Image ratio is 1:1.
>
> To see full image, camera position is <???, max/2, max/2>
> and look at <0, max/2, max/2> ok.
>
> But how to compute the x part of camera location ?
>

You could, I think, use the orthographic camera without the angle
keyword. Just some offset +-x, a direction vector toward your "data"
and in your case, symmetric adjustment of the up and right vector
magnitudes to encompass your data if need be.

Bill P.