POV-Ray : Newsgroups : povray.newusers : Camera algorithm : Re: Camera algorithm Server Time
30 Jul 2024 22:25:20 EDT (-0400)
  Re: Camera algorithm  
From: POVeddie
Date: 23 Jun 2003 21:20:01
Message: <web.3ef7a61ebb1225819768675c0@news.povray.org>
Chris Amshey wrote:
>Chris Amshey wrote:
>
>>For a camera on the Z-axis, pointing along the Z-axis,
>>the edge-to-edge view at distance D should be (if my trig skills aren't
>>totally
>>miserable):
>>2 * D * tan(CameraAngle)
>>
>Err, that should be 2*D*tan(CameraAngle/2), actually, so I guess my trig
>skills
>are totally miserable (but at least I found my own error...)

Thanks for responding.

The POV Ray 3.1 docs did not give the camera angle.

I had a look at the POV 3.5 docs and found the algorithm:
direction_length=0.5*right_length/tan(angle/2)
which works.

Thanks for pointing me in the right direction.

Cheers
Eddie


Post a reply to this message

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