POV-Ray : Newsgroups : povray.binaries.images : Flat Cat [~50 kB] : Re: Flat Cat [~50 kB] Server Time
5 Nov 2024 02:18:56 EST (-0500)
  Re: Flat Cat [~50 kB]  
From: Mark Donovan
Date: 29 Jan 2000 02:03:10
Message: <389290B0.58D1D188@email.com>
Let me take a stab at this. The "formula" that Bob (good memory for the
angle 67 is nearly the same as direction 1, Bob) was looking for is:

direction_len = 0.5*right_len/tan(radians(ang)/2.0)

If we solve for angle, we get:

ang = degrees(2.0 * atan(0.5*right_len/direction_len))

direction          nearest
 length    angle   degree
---------  ------  -------
 0.500     106.3     106 
 0.625      93.7      94 
 0.750      83.3      83 
 0.875      74.6      75 
 1.000      67.4      67 
 1.125      61.3      61 
 1.250      56.1      56 
 1.375      51.7      52 
 1.500      47.9      48 
 1.625      44.6      45 
 1.750      41.7      42 
 1.875      39.1      39 
 2.000      36.9      37 
 2.125      34.8      35 
 2.250      33.0      33 
 2.375      31.4      31 
 2.500      29.9      30 
 2.625      28.5      29 
 2.750      27.3      27 
 2.875      26.1      26 
 3.000      25.1      25

The default view has a right length of 4/3. Ingo used a camera angle of
40 degrees.
 
right_len = 4/3
ang = 40
direction_len = 0.5*right_len/tan(radians(ang)/2.0) = 1.83165

Let's keep that same camera location. Set width to 2 and height to 400.

right_len = 2/400
ang = degrees(2.0 * atan(0.5*right_len/direction_len)) = 0.15640

Is this what you wanted, Ingo?

Mark


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.