  | 
  | 
 
 | 
  | 
 | 
  | 
 
 |   |  
 |   |  
 | 
  | 
 | 
  | 
 
 |   |  
 |   |  
 | 
  | 
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
 
 Post a reply to this message 
 | 
  | 
 
 |   |  
 |   |  
 | 
  | 
 | 
  | 
 
 |   |  
 |   |  
 | 
  | 
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 :
	ceil((max*0.50)/tan(radians(cameraAngle*0.50)))
-- 
Kurtz le pirate
Compagnie de la Banquise
 
 Post a reply to this message 
 | 
  | 
 
 |   |  
 |   |  
 | 
  | 
 | 
  | 
 
 |   |  
 |   |  
 | 
  | 
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.
 
 Post a reply to this message 
 | 
  | 
 
 |   |  
 |   |  
 | 
  | 
 | 
  | 
 
 |   |  
 
 | 
  |